@inkeep/cxkit-js 0.5.117 → 0.5.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/embed.js +2 -2
  2. package/package.json +3 -3
package/dist/embed.js CHANGED
@@ -35,7 +35,7 @@ var Inkeep=function(e){"use strict";var t,n,r,a,o=Object.defineProperty,i=(e,t,n
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */function UT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $T=Symbol.for("react.transitional.element"),VT=Symbol.for("react.portal"),GT=Symbol.for("react.fragment"),WT=Symbol.for("react.strict_mode"),qT=Symbol.for("react.profiler"),YT=Symbol.for("react.provider"),KT=Symbol.for("react.consumer"),XT=Symbol.for("react.context"),QT=Symbol.for("react.forward_ref"),ZT=Symbol.for("react.suspense"),JT=Symbol.for("react.suspense_list"),eC=Symbol.for("react.memo"),tC=Symbol.for("react.lazy"),nC=Symbol.for("react.scope"),rC=Symbol.for("react.debug_trace_mode"),aC=Symbol.for("react.offscreen"),oC=Symbol.for("react.legacy_hidden"),iC=Symbol.for("react.memo_cache_sentinel"),sC=Symbol.iterator,lC=Array.isArray;function cC(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var uC=new MessageChannel,dC=[];function pC(e){dC.push(e),uC.port2.postMessage(null)}function hC(e){setTimeout((function(){throw e}))}uC.port1.onmessage=function(){var e=dC.shift();e&&e()};var fC=Promise,mC="function"==typeof queueMicrotask?queueMicrotask:function(e){fC.resolve(null).then(e).catch(hC)},gC=null,yC=0;function bC(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<yC&&(e.enqueue(new Uint8Array(gC.buffer,0,yC)),gC=new Uint8Array(2048),yC=0),e.enqueue(t);else{var n=gC.length-yC;n<t.byteLength&&(0===n?e.enqueue(gC):(gC.set(t.subarray(0,n),yC),e.enqueue(gC),t=t.subarray(n)),gC=new Uint8Array(2048),yC=0),gC.set(t,yC),yC+=t.byteLength}}function vC(e,t){return bC(e,t),!0}function kC(e){gC&&0<yC&&(e.enqueue(new Uint8Array(gC.buffer,0,yC)),gC=null,yC=0)}var wC=new TextEncoder;function xC(e){return wC.encode(e)}function EC(e){return wC.encode(e)}function _C(e,t){"function"==typeof e.error?e.error(t):e.close()}var SC=Object.assign,TC=Object.prototype.hasOwnProperty,CC=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AC={},NC={};function IC(e){return!!TC.call(NC,e)||!TC.call(AC,e)&&(CC.test(e)?NC[e]=!0:(AC[e]=!0,!1))}var RC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),OC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),PC=/["'&<>]/;function LC(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=PC.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var DC=/([A-Z])/g,MC=/^ms-/,FC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jC(e){return FC.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var BC=HT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,HC=zT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zC={pending:!1,data:null,method:null,action:null},UC=HC.d;HC.d={f:UC.f,r:UC.r,D:function(e){var t=VR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(SI,TI)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(DA(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));CO(t)}}else UC.D(e)},C:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(SI,TI)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(CI,AI)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(DA(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}CO(n)}}else UC.C(e,t)},L:function(e,t,n){var r=VR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=$C,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=_I(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=$C,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(DA(a=[],SC({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;DA(i=[],SC({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$C:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),DA(i,SC({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$C:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=$C,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=_I(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=$C,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(DA(a=[],e=SC({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}CO(r)}}else UC.L(e,t,n)},m:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?$C:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=$C}DA(o,SC({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),CO(n)}}else UC.m(e,t)},X:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=SC({src:e,async:!0},t),o&&(2===o.length&&EI(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),HA(e,t),CO(n))}}else UC.X(e,t)},S:function(e,t,n){var r=VR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:xC(LC(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:SC({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&EI(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),CO(r))}}else UC.S(e,t,n)},M:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=SC({src:e,type:"module",async:!0},t),o&&(2===o.length&&EI(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),HA(e,t),CO(n))}}else UC.M(e,t)}};var $C=[];EC('"></template>');var VC=EC("<script>"),GC=EC("<\/script>"),WC=EC('<script src="'),qC=EC('<script type="module" src="'),YC=EC('" nonce="'),KC=EC('" integrity="'),XC=EC('" crossorigin="'),QC=EC('" async=""><\/script>'),ZC=/(<\/|<)(s)(cript)/gi;function JC(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var eA=EC('<script type="importmap">'),tA=EC("<\/script>");function nA(e,t,n,r,a,o){var i=void 0===t?VC:EC('<script nonce="'+LC(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,xC((""+l).replace(ZC,JC)),GC),l=[],void 0!==r&&(l.push(eA),l.push(xC((""+JSON.stringify(r)).replace(ZC,JC))),l.push(tA)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:EC(s+"P:"),segmentPrefix:EC(s+"S:"),boundaryPrefix:EC(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,DA(d=[],l),a.bootstrapScripts.add(d),n.push(WC,xC(LC(o))),t&&n.push(YC,xC(LC(t))),"string"==typeof s&&n.push(KC,xC(LC(s))),"string"==typeof i&&n.push(XC,xC(LC(i))),n.push(QC)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,DA(l=[],s),a.bootstrapScripts.add(l),n.push(qC,xC(LC(r))),t&&n.push(YC,xC(LC(t))),"string"==typeof i&&n.push(KC,xC(LC(i))),"string"==typeof o&&n.push(XC,xC(LC(o))),n.push(QC);return a}function rA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function aA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function oA(e){return aA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function iA(e,t,n){switch(t){case"noscript":return aA(2,null,1|e.tagScope);case"select":return aA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return aA(3,null,e.tagScope);case"picture":return aA(2,null,2|e.tagScope);case"math":return aA(4,null,e.tagScope);case"foreignObject":return aA(2,null,e.tagScope);case"table":return aA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return aA(6,null,e.tagScope);case"colgroup":return aA(8,null,e.tagScope);case"tr":return aA(7,null,e.tagScope)}return 5<=e.insertionMode?aA(2,null,e.tagScope):0===e.insertionMode?aA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?aA(2,null,e.tagScope):e}var sA=EC("\x3c!-- --\x3e");function lA(e,t,n,r){return""===t?r:(r&&e.push(sA),e.push(xC(LC(t))),!0)}var cA=new Map,uA=EC(' style="'),dA=EC(":"),pA=EC(";");function hA(e,t){if("object"!=typeof t)throw Error(UT(62));var n,r=!0;for(n in t)if(TC.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=xC(LC(n));a=xC(LC((""+a).trim()))}else void 0===(o=cA.get(n))&&(o=EC(LC(n.replace(DC,"-$1").toLowerCase().replace(MC,"-ms-"))),cA.set(n,o)),a="number"==typeof a?0===a||RC.has(n)?xC(""+a):xC(a+"px"):xC(LC((""+a).trim()));r?(r=!1,e.push(uA,o,dA,a)):e.push(pA,o,dA,a)}}r||e.push(gA)}var fA=EC(" "),mA=EC('="'),gA=EC('"'),yA=EC('=""');function bA(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),yA)}function vA(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA)}var kA=EC(LC("javascript:throw new Error('React form unexpectedly submitted.')")),wA=EC('<input type="hidden"');function xA(e,t){this.push(wA),EA(e),vA(this,"name",t),vA(this,"value",e),this.push(AA)}function EA(e){if("string"!=typeof e)throw Error(UT(480))}function _A(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(EA)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function SA(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=_A(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(fA,xC("formAction"),mA,kA,gA),i=o=a=r=s=null,OA(t,n))}return null!=s&&TA(e,"name",s),null!=r&&TA(e,"formAction",r),null!=a&&TA(e,"formEncType",a),null!=o&&TA(e,"formMethod",o),null!=i&&TA(e,"formTarget",i),l}function TA(e,t,n){switch(t){case"className":vA(e,"class",n);break;case"tabIndex":vA(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vA(e,t,n);break;case"style":hA(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=jC(""+n),e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":bA(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=jC(""+n),e.push(fA,xC("xlink:href"),mA,xC(LC(n)),gA);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),yA);break;case"capture":case"download":!0===n?e.push(fA,xC(t),yA):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"xlinkActuate":vA(e,"xlink:actuate",n);break;case"xlinkArcrole":vA(e,"xlink:arcrole",n);break;case"xlinkRole":vA(e,"xlink:role",n);break;case"xlinkShow":vA(e,"xlink:show",n);break;case"xlinkTitle":vA(e,"xlink:title",n);break;case"xlinkType":vA(e,"xlink:type",n);break;case"xmlBase":vA(e,"xml:base",n);break;case"xmlLang":vA(e,"xml:lang",n);break;case"xmlSpace":vA(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&IC(t=OC.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(fA,xC(t),mA,xC(LC(n)),gA)}}}var CA=EC(">"),AA=EC("/>");function NA(e,t,n){if(null!=t){if(null!=n)throw Error(UT(60));if("object"!=typeof t||!("__html"in t))throw Error(UT(61));null!=(t=t.__html)&&e.push(xC(""+t))}}var IA=EC(' selected=""'),RA=EC('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function OA(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,RA,GC))}var PA=EC("\x3c!--F!--\x3e"),LA=EC("\x3c!--F--\x3e");function DA(e,t){for(var n in e.push(GA("link")),t)if(TC.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"link"));default:TA(e,n,r)}}return e.push(AA),null}var MA=/(<\/|<)(s)(tyle)/gi;function FA(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function jA(e,t,n){for(var r in e.push(GA(n)),t)if(TC.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,n));default:TA(e,r,a)}}return e.push(AA),null}function BA(e,t){e.push(GA("title"));var n,r=null,a=null;for(n in t)if(TC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,n,o)}}return e.push(CA),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(xC(LC(""+t))),NA(e,a,r),e.push(KA("title")),null}function HA(e,t){e.push(GA("script"));var n,r=null,a=null;for(n in t)if(TC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,n,o)}}return e.push(CA),NA(e,a,r),"string"==typeof r&&e.push(xC((""+r).replace(ZC,JC))),e.push(KA("script")),null}function zA(e,t,n){e.push(GA(n));var r,a=n=null;for(r in t)if(TC.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,r,o)}}return e.push(CA),NA(e,a,n),"string"==typeof n?(e.push(xC(LC(n))),null):n}var UA=EC("\n"),$A=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,VA=new Map;function GA(e){var t=VA.get(e);if(void 0===t){if(!$A.test(e))throw Error(UT(65,e));t=EC("<"+e),VA.set(e,t)}return t}var WA=EC("<!DOCTYPE html>");function qA(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(GA("a"));var c,u=null,d=null;for(c in n)if(TC.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?vA(e,"href",""):TA(e,c,p);break;default:TA(e,c,p)}}if(e.push(CA),NA(e,d,u),"string"==typeof u){e.push(xC(LC(u)));var h=null}else h=u;return h;case"select":e.push(GA("select"));var f,m=null,g=null;for(f in n)if(TC.call(n,f)){var y=n[f];if(null!=y)switch(f){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:TA(e,f,y)}}return e.push(CA),NA(e,g,m),m;case"option":var b=i.selectedValue;e.push(GA("option"));var v,k=null,w=null,x=null,E=null;for(v in n)if(TC.call(n,v)){var _=n[v];if(null!=_)switch(v){case"children":k=_;break;case"selected":x=_;break;case"dangerouslySetInnerHTML":E=_;break;case"value":w=_;default:TA(e,v,_)}}if(null!=b){var S=null!==w?""+w:function(e){var t="";return HT.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(lC(b)){for(var T=0;T<b.length;T++)if(""+b[T]===S){e.push(IA);break}}else""+b===S&&e.push(IA)}else x&&e.push(IA);return e.push(CA),NA(e,E,k),k;case"textarea":e.push(GA("textarea"));var C,A=null,N=null,I=null;for(C in n)if(TC.call(n,C)){var R=n[C];if(null!=R)switch(C){case"children":I=R;break;case"value":A=R;break;case"defaultValue":N=R;break;case"dangerouslySetInnerHTML":throw Error(UT(91));default:TA(e,C,R)}}if(null===A&&null!==N&&(A=N),e.push(CA),null!=I){if(null!=A)throw Error(UT(92));if(lC(I)){if(1<I.length)throw Error(UT(93));A=""+I[0]}A=""+I}return"string"==typeof A&&"\n"===A[0]&&e.push(UA),null!==A&&e.push(xC(LC(""+A))),null;case"input":e.push(GA("input"));var O,P=null,L=null,D=null,M=null,F=null,j=null,B=null,H=null,z=null;for(O in n)if(TC.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":z=U;break;case"defaultValue":B=U;break;case"checked":H=U;break;case"value":j=U;break;default:TA(e,O,U)}}var $=SA(e,r,a,L,D,M,F,P);return null!==H?bA(e,"checked",H):null!==z&&bA(e,"checked",z),null!==j?TA(e,"value",j):null!==B&&TA(e,"value",B),e.push(AA),null!=$&&$.forEach(xA,e),null;case"button":e.push(GA("button"));var V,G=null,W=null,q=null,Y=null,K=null,X=null,Q=null;for(V in n)if(TC.call(n,V)){var Z=n[V];if(null!=Z)switch(V){case"children":G=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":K=Z;break;case"formMethod":X=Z;break;case"formTarget":Q=Z;break;default:TA(e,V,Z)}}var J=SA(e,r,a,Y,K,X,Q,q);if(e.push(CA),null!=J&&J.forEach(xA,e),NA(e,W,G),"string"==typeof G){e.push(xC(LC(G)));var ee=null}else ee=G;return ee;case"form":e.push(GA("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(TC.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:TA(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=_A(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(fA,xC("action"),mA,kA,gA),se=ie=oe=ae=null,OA(r,a))}if(null!=ae&&TA(e,"action",ae),null!=oe&&TA(e,"encType",oe),null!=ie&&TA(e,"method",ie),null!=se&&TA(e,"target",se),e.push(CA),null!==ue&&(e.push(wA),vA(e,"name",ue),e.push(AA),null!=ce&&ce.forEach(xA,e)),NA(e,re,ne),"string"==typeof ne){e.push(xC(LC(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var he in e.push(GA("menuitem")),n)if(TC.call(n,he)){var fe=n[he];if(null!=fe)switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(UT(400));default:TA(e,he,fe)}}return e.push(CA),null;case"object":e.push(GA("object"));var me,ge=null,ye=null;for(me in n)if(TC.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=jC(""+be);if(""===ve)break;e.push(fA,xC("data"),mA,xC(LC(ve)),gA);break;default:TA(e,me,be)}}if(e.push(CA),NA(e,ye,ge),"string"==typeof ge){e.push(xC(LC(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=BA(e,n);else l?we=null:(BA(a.hoistableChunks,n),we=void 0);return we;case"link":var xe=n.rel,Ee=n.href,_e=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof xe||"string"!=typeof Ee||""===Ee){DA(e,n);var Se=null}else if("stylesheet"===n.rel)if("string"!=typeof _e||null!=n.disabled||n.onLoad||n.onError)Se=DA(e,n);else{var Te=a.styles.get(_e),Ce=r.styleResources.hasOwnProperty(Ee)?r.styleResources[Ee]:void 0;if(null!==Ce){r.styleResources[Ee]=null,Te||(Te={precedence:xC(LC(_e)),rules:[],hrefs:[],sheets:new Map},a.styles.set(_e,Te));var Ae={state:0,props:SC({},n,{"data-precedence":n.precedence,precedence:null})};if(Ce){2===Ce.length&&EI(Ae.props,Ce);var Ne=a.preloads.stylesheets.get(Ee);Ne&&0<Ne.length?Ne.length=0:Ae.state=1}Te.sheets.set(Ee,Ae),o&&o.stylesheets.add(Ae)}else if(Te){var Ie=Te.sheets.get(Ee);Ie&&o&&o.stylesheets.add(Ie)}s&&e.push(sA),Se=null}else n.onLoad||n.onError?Se=DA(e,n):(s&&e.push(sA),Se=l?null:DA(a.hoistableChunks,n));return Se;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=HA(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&EI(Fe=SC({},n),Me);var je=De.get(Pe);je&&(je.length=0)}var Be=[];a.scripts.add(Be),HA(Be,Fe)}s&&e.push(sA),Oe=null}return Oe;case"style":var He=n.precedence,ze=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof ze||""===ze){e.push(GA("style"));var Ue,$e=null,Ve=null;for(Ue in n)if(TC.call(n,Ue)){var Ge=n[Ue];if(null!=Ge)switch(Ue){case"children":$e=Ge;break;case"dangerouslySetInnerHTML":Ve=Ge;break;default:TA(e,Ue,Ge)}}e.push(CA);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(xC((""+We).replace(MA,FA))),NA(e,Ve,$e),e.push(KA("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(ze)?r.styleResources[ze]:void 0)){r.styleResources[ze]=null,Ye?Ye.hrefs.push(xC(LC(ze))):(Ye={precedence:xC(LC(He)),rules:[],hrefs:[xC(LC(ze))],sheets:new Map},a.styles.set(He,Ye));var Ke,Xe=Ye.rules,Qe=null,Ze=null;for(Ke in n)if(TC.call(n,Ke)){var Je=n[Ke];if(null!=Je)switch(Ke){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Xe.push(xC((""+et).replace(MA,FA))),NA(Xe,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(sA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=jA(e,n,"meta");else s&&e.push(sA),tt=l?null:"string"==typeof n.charSet?jA(a.charsetChunks,n,"meta"):"viewport"===n.name?jA(a.viewportChunks,n,"meta"):jA(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(GA(t));var nt,rt=null,at=null;for(nt in n)if(TC.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:TA(e,nt,ot)}}if(e.push(CA),null!=at){if(null!=rt)throw Error(UT(60));if("object"!=typeof at||!("__html"in at))throw Error(UT(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(UA,xC(it)):e.push(xC(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(UA),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=$C;var ht,ft=n.crossOrigin,mt="string"==typeof ft?"use-credentials"===ft?ft:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ht=_I(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ht.length+2))?(a.resets.image[ut]=$C,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ht):(DA(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return jA(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return jA(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=zA(a.headChunks,n,"head")}else yt=zA(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[WA];var bt=zA(a.htmlChunks,n,"html")}else bt=zA(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(GA(t));var vt,kt=null,wt=null;for(vt in n)if(TC.call(n,vt)){var xt=n[vt];if(null!=xt){var Et=vt;switch(vt){case"children":kt=xt;break;case"dangerouslySetInnerHTML":wt=xt;break;case"style":hA(e,xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Et="class";default:if(IC(vt)&&"function"!=typeof xt&&"symbol"!=typeof xt&&!1!==xt){if(!0===xt)xt="";else if("object"==typeof xt)continue;e.push(fA,xC(Et),mA,xC(LC(xt)),gA)}}}}return e.push(CA),NA(e,wt,kt),kt}}return zA(e,n,t)}var YA=new Map;function KA(e){var t=YA.get(e);return void 0===t&&(t=EC("</"+e+">"),YA.set(e,t)),t}function XA(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)bC(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,vC(e,n))}var QA=EC('<template id="'),ZA=EC('"></template>'),JA=EC("\x3c!--$--\x3e"),eN=EC('\x3c!--$?--\x3e<template id="'),tN=EC('"></template>'),nN=EC("\x3c!--$!--\x3e"),rN=EC("\x3c!--/$--\x3e"),aN=EC("<template"),oN=EC('"'),iN=EC(' data-dgst="');EC(' data-msg="'),EC(' data-stck="'),EC(' data-cstck="');var sN=EC("></template>");function lN(e,t,n){if(bC(e,eN),null===n)throw Error(UT(395));return bC(e,t.boundaryPrefix),bC(e,xC(n.toString(16))),vC(e,tN)}var cN=EC('<div hidden id="'),uN=EC('">'),dN=EC("</div>"),pN=EC('<svg aria-hidden="true" style="display:none" id="'),hN=EC('">'),fN=EC("</svg>"),mN=EC('<math aria-hidden="true" style="display:none" id="'),gN=EC('">'),yN=EC("</math>"),bN=EC('<table hidden id="'),vN=EC('">'),kN=EC("</table>"),wN=EC('<table hidden><tbody id="'),xN=EC('">'),EN=EC("</tbody></table>"),_N=EC('<table hidden><tr id="'),SN=EC('">'),TN=EC("</tr></table>"),CN=EC('<table hidden><colgroup id="'),AN=EC('">'),NN=EC("</colgroup></table>");var IN=EC('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),RN=EC('$RS("'),ON=EC('","'),PN=EC('")<\/script>');EC('<template data-rsi="" data-sid="'),EC('" data-pid="');var LN=EC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),DN=EC('$RC("'),MN=EC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),FN=EC('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),jN=EC('$RR("'),BN=EC('","'),HN=EC('",'),zN=EC('"'),UN=EC(")<\/script>");EC('<template data-rci="" data-bid="'),EC('<template data-rri="" data-bid="'),EC('" data-sid="'),EC('" data-sty="');var $N=EC('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),VN=EC('$RX("'),GN=EC('"'),WN=EC(","),qN=EC(")<\/script>");EC('<template data-rxi="" data-bid="'),EC('" data-dgst="'),EC('" data-msg="'),EC('" data-stck="'),EC('" data-cstck="');var YN=/[<\u2028\u2029]/g;var KN=/[&><\u2028\u2029]/g;function XN(e){return JSON.stringify(e).replace(KN,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var QN=EC('<style media="not all" data-precedence="'),ZN=EC('" data-href="'),JN=EC('">'),eI=EC("</style>"),tI=!1,nI=!0;function rI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(bC(this,QN),bC(this,e.precedence),bC(this,ZN);r<n.length-1;r++)bC(this,n[r]),bC(this,dI);for(bC(this,n[r]),bC(this,JN),r=0;r<t.length;r++)bC(this,t[r]);nI=vC(this,eI),tI=!0,t.length=0,n.length=0}}function aI(e){return 2!==e.state&&(tI=!0)}function oI(e,t,n){return tI=!1,nI=!0,t.styles.forEach(rI,e),t.stylesheets.forEach(aI),tI&&(n.stylesToHoist=!0),nI}function iI(e){for(var t=0;t<e.length;t++)bC(this,e[t]);e.length=0}var sI=[];function lI(e){DA(sI,e.props);for(var t=0;t<sI.length;t++)bC(this,sI[t]);sI.length=0,e.state=2}var cI=EC('<style data-precedence="'),uI=EC('" data-href="'),dI=EC(" "),pI=EC('">'),hI=EC("</style>");function fI(e){var t=0<e.sheets.size;e.sheets.forEach(lI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(bC(this,cI),bC(this,e.precedence),e=0,r.length){for(bC(this,uI);e<r.length-1;e++)bC(this,r[e]),bC(this,dI);bC(this,r[e])}for(bC(this,pI),e=0;e<n.length;e++)bC(this,n[e]);bC(this,hI),n.length=0,r.length=0}}function mI(e){if(0===e.state){e.state=1;var t=e.props;for(DA(sI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<sI.length;e++)bC(this,sI[e]);sI.length=0}}function gI(e){e.sheets.forEach(mI,this),e.sheets.clear()}var yI=EC("["),bI=EC(",["),vI=EC(","),kI=EC("]");function wI(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=jC(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!IC(t))return;t=""+n}bC(e,vI),bC(e,xC(XN(r))),bC(e,vI),bC(e,xC(XN(t)))}function xI(){return{styles:new Set,stylesheets:new Set}}function EI(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function _I(e,t,n){for(var r in t="<"+(e=(""+e).replace(SI,TI))+'>; rel=preload; as="'+(t=(""+t).replace(CI,AI))+'"',n)TC.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(CI,AI)+'"'));return t}var SI=/[<>\r\n]/g;function TI(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var CI=/["';,\r\n]/g;function AI(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function NI(e){this.styles.add(e)}function II(e){this.stylesheets.add(e)}var RI=Function.prototype.bind,OI=Symbol.for("react.client.reference");function PI(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===OI?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case GT:return"Fragment";case VT:return"Portal";case qT:return"Profiler";case WT:return"StrictMode";case ZT:return"Suspense";case JT:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case XT:return(e.displayName||"Context")+".Provider";case KT:return(e._context.displayName||"Context")+".Consumer";case QT:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case eC:return null!==(t=e.displayName||null)?t:PI(e.type)||"Memo";case tC:t=e._payload,e=e._init;try{return PI(e(t))}catch(n){}}return null}var LI={},DI=null;function MI(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(UT(401))}else{if(null===n)throw Error(UT(401));MI(e,n)}t.context._currentValue=t.value}}function FI(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&FI(e)}function jI(e){var t=e.parent;null!==t&&jI(t),e.context._currentValue=e.value}function BI(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(UT(402));e.depth===t.depth?MI(e,t):BI(e,t)}function HI(e,t){var n=t.parent;if(null===n)throw Error(UT(402));e.depth===n.depth?MI(e,n):HI(e,n),t.context._currentValue=t.value}function zI(e){var t=DI;t!==e&&(null===t?jI(e):null===e?FI(t):t.depth===e.depth?MI(t,e):t.depth>e.depth?BI(t,e):HI(t,e),DI=e)}var UI={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},$I={id:1,overflow:""};function VI(e,t,n){var r=e.id;e=e.overflow;var a=32-GI(r)-1;r&=~(1<<a),n+=1;var o=32-GI(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-GI(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var GI=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(WI(e)/qI|0)|0},WI=Math.log,qI=Math.LN2;var YI=Error(UT(460));function KI(){}var XI=null;function QI(){if(null===XI)throw Error(UT(459));var e=XI;return XI=null,e}var ZI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},JI=null,eR=null,tR=null,nR=null,rR=null,aR=null,oR=!1,iR=!1,sR=0,lR=0,cR=-1,uR=0,dR=null,pR=null,hR=0;function fR(){if(null===JI)throw Error(UT(321));return JI}function mR(){if(0<hR)throw Error(UT(312));return{memoizedState:null,queue:null,next:null}}function gR(){return null===aR?null===rR?(oR=!1,rR=aR=mR()):(oR=!0,aR=rR):null===aR.next?(oR=!1,aR=aR.next=mR()):(oR=!0,aR=aR.next),aR}function yR(){var e=dR;return dR=null,e}function bR(){nR=tR=eR=JI=null,iR=!1,rR=null,hR=0,aR=pR=null}function vR(e,t){return"function"==typeof t?t(e):t}function kR(e,t,n){if(JI=fR(),aR=gR(),oR){var r=aR.queue;if(t=r.dispatch,null!==pR&&void 0!==(n=pR.get(r))){pR.delete(r),r=aR.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return aR.memoizedState=r,[r,t]}return[aR.memoizedState,t]}return e=e===vR?"function"==typeof t?t():t:void 0!==n?n(t):t,aR.memoizedState=e,e=(e=aR.queue={last:null,dispatch:null}).dispatch=xR.bind(null,JI,e),[aR.memoizedState,e]}function wR(e,t){if(JI=fR(),t=void 0===t?null:t,null!==(aR=gR())){var n=aR.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!ZI(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),aR.memoizedState=[e,t],e}function xR(e,t,n){if(25<=hR)throw Error(UT(301));if(e===JI)if(iR=!0,e={action:n,next:null},null===pR&&(pR=new Map),void 0===(n=pR.get(t)))pR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ER(){throw Error(UT(394))}function _R(){throw Error(UT(479))}function SR(e,t,n){fR();var r=lR++,a=tR;if("function"==typeof e.$$FORM_ACTION){var o=null,i=nR;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+cC(JSON.stringify([i,null,r]),0))&&(cR=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+cC(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function TR(e){var t=uR;return uR+=1,null===dR&&(dR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(KI,KI),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(KI,KI):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw XI=t,YI}}(dR,e,t)}function CR(){throw Error(UT(393))}function AR(){}var NR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return TR(e);if(e.$$typeof===XT)return e._currentValue}throw Error(UT(438,String(e)))},useContext:function(e){return fR(),e._currentValue},useMemo:wR,useReducer:kR,useRef:function(e){JI=fR();var t=(aR=gR()).memoizedState;return null===t?(e={current:e},aR.memoizedState=e):t},useState:function(e){return kR(vR,e)},useInsertionEffect:AR,useLayoutEffect:AR,useCallback:function(e,t){return wR((function(){return e}),t)},useImperativeHandle:AR,useEffect:AR,useDebugValue:AR,useDeferredValue:function(e,t){return fR(),void 0!==t?t:e},useTransition:function(){return fR(),[!1,ER]},useId:function(){var e=eR.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-GI(e)-1)).toString(32)+t;var n=OR;if(null===n)throw Error(UT(404));return t=sR++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(UT(407));return n()},useCacheRefresh:function(){return CR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=iC;return t},useHostTransitionStatus:function(){return fR(),zC},useOptimistic:function(e){return fR(),[e,_R]}};NR.useFormState=SR,NR.useActionState=SR;var IR,RR,OR=null,PR={getCacheForType:function(){throw Error(UT(248))}};function LR(e){if(void 0===IR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);IR=t&&t[1]||"",RR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+IR+e+RR}var DR=!1;function MR(e,t){if(!e||DR)return"";DR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{DR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?LR(n):""}function FR(e){if("string"==typeof e)return LR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=MR(e,!0):MR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case QT:return MR(e.render,!1);case eC:return MR(e.type,!1);case tC:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return LR("Lazy")}return FR(e)}if("string"==typeof e.name)return n=e.env,LR(e.name+(n?" ["+n+"]":""))}switch(e){case JT:return LR("SuspenseList");case ZT:return LR("Suspense")}return""}function jR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=RI.apply(console.error,e))()}else console.error(e);return null}function BR(){}function HR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?jR:a,this.onPostpone=void 0===c?BR:c,this.onAllReady=void 0===o?BR:o,this.onShellReady=void 0===i?BR:i,this.onShellError=void 0===s?BR:s,this.onFatalError=void 0===l?BR:l,this.formState=void 0===u?null:u}function zR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=KR(t=new HR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,XR(e=qR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,$I,null,!1)),t.pingedTasks.push(e),t}var UR,$R,VR=null;function GR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?mC((function(){return vO(e)})):pC((function(){return vO(e)})))}function WR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:xI(),fallbackState:xI(),trackedContentKeyPath:null,trackedFallbackNode:null}}function qR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var f={replay:null,node:n,childIndex:r,ping:function(){return GR(e,f)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function YR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var f={replay:n,node:r,childIndex:a,ping:function(){return GR(e,f)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function KR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function XR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===$T)e.componentStack={parent:e.componentStack,type:t.type}}function QR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=FR(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function ZR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function JR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,_C(e.destination,t)):(e.status=13,e.fatalError=t)}function eO(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,JI={},eR=t,tR=e,nR=n,lR=sR=0,cR=-1,uR=0,dR=i,e=r(a,o);iR;)iR=!1,lR=sR=0,cR=-1,uR=0,hR+=1,aR=null,e=r(a,o);return bR(),e}function tO(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(PA):l.push(LA)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=VI(n,1,0),uO(e,t,r,-1),t.treeContext=n):s?uO(e,t,r,-1):aO(e,t,r,-1),t.keyPath=o}function nO(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=SC({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=LI,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=UI,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:LI,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:SC({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&UI.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=SC({},l,c)):SC(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,aO(e,t,r,-1),t.keyPath=a}else{if(r=eO(e,t,n,r,a,void 0),12===e.status)throw null;tO(e,t,n,r,0!==sR,lR,cR)}else{if("string"!=typeof r){switch(r){case oC:case rC:case WT:case qT:case GT:return r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),void(t.keyPath=r);case aC:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),t.keyPath=r));case JT:return r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),void(t.keyPath=r);case nC:throw Error(UT(343));case ZT:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{uO(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var h=new Set;s=WR(0,h),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var f=KR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(f),o.lastPushedText=!1;var m=KR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=f,t.keyPath=i,f.status=6;try{uO(e,t,c,-1),f.lastPushedText&&f.textEmbedded&&f.chunks.push(sA),f.status=1}catch(g){throw f.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}XR(t=qR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(uO(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(sA),m.status=1,yO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=ZR(e,i,l=QR(t.componentStack)),s.errorDigest=u,sO(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}XR(t=qR(e,null,c,-1,d,f,s.fallbackState,h,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case QT:if("ref"in a)for(f in i={},a)"ref"!==f&&(i[f]=a[f]);else i=a;return void tO(e,t,n,r=eO(e,t,n,r.render,i,o),0!==sR,lR,cR);case eC:return void nO(e,t,n,r.type,a,o);case YT:case XT:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,DI=r={parent:o=DI,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,aO(e,t,l,-1),null===(e=DI))throw Error(UT(403));return e.context._currentValue=e.parentValue,e=DI=e.parent,t.context=e,void(t.keyPath=i);case KT:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,aO(e,t,r,-1),void(t.keyPath=a);case tC:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void nO(e,t,n,r,a,o)}throw Error(UT(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=iA(l,r,a),t.keyPath=n,uO(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=qA(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=iA(l,r,a),t.keyPath=n,uO(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(KA(r))}i.lastPushedText=!1}}}function rO(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=KR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,uO(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(yO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function aO(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?rO(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,XR(t),oO(e,t),t.componentStack=n)}function oO(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case $T:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=PI(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(UT(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(nO(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===YI||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=QR(t.componentStack),pO(e,o=t.blockedBoundary,p,l,a=k,i=ZR(e,a,i))}t.replay=u}else{if(a!==ZT)throw Error(UT(490,"Suspense",PI(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var h=t.keyPath,f=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=WR(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(uO(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=ZR(e,w,p=QR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=f,t.keyPath=h}XR(t=YR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else nO(e,t,o,a,i,s);return;case VT:throw Error(UT(257));case tC:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void aO(e,t,n,r)}if(lC(n))return void iO(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=sC&&n[sC]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);iO(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,aO(e,t,TR(n),r);if(n.$$typeof===XT)return aO(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(UT(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=lA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=lA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function iO(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=VI(o,i,r),"number"==typeof(c=s[r])?(rO(e,t,c,l,r),delete s[r]):uO(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=VI(o,i,s),uO(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(iO(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===YI||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=QR(t.componentStack);var c=t.blockedBoundary;pO(e,c,r,l,u,n=ZR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function sO(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function lO(e,t,n){return YR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function cO(e,t,n){var r=t.blockedSegment,a=KR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,qR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function uO(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return aO(e,t,n,r)}catch(p){if(bR(),"object"==typeof(n=p===YI?QI():p)&&null!==n){if("function"==typeof n.then)return e=lO(e,t,r=yR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o);if("Maximum call stack size exceeded"===n.message)return n=lO(e,t,n=yR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o)}}else{var u=c.children.length,d=c.chunks.length;try{return aO(e,t,n,r)}catch(h){if(bR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=h===YI?QI():h)&&null!==n){if("function"==typeof n.then)return e=cO(e,t,r=yR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o);if("Maximum call stack size exceeded"===n.message)return n=cO(e,t,n=yR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,zI(o),n}function dO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,bO(this,t,e))}function pO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)pO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=WR(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(UT(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function hO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=QR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return ZR(t,n,a),void JR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=ZR(t,n,a),pO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&mO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=ZR(t,n,a),r.status=4,r.errorDigest=e,sO(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return hO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&gO(t)}function fO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,h=u.props,f=_I(h.href,"style",{crossOrigin:h.crossOrigin,integrity:h.integrity,nonce:h.nonce,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.referrerPolicy,media:h.media});if(!(0<=(a.remainingCapacity-=f.length+2)))break e;n.resets.style[p]=$C,o&&(o+=", "),o+=f,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:$C}}r(o?{Link:o}:{})}}}catch(m){ZR(e,m,{})}}function mO(e){null===e.trackedPostpones&&fO(e,!0),e.onShellError=BR,(e=e.onShellReady)()}function gO(e){fO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function yO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&yO(e,n)}else e.completedSegments.push(t)}function bO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(UT(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&mO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&yO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(dO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(yO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&gO(e)}function vO(e){if(14!==e.status&&13!==e.status){var t=DI,n=BC.H;BC.H=NR;var r=BC.A;BC.A=PR;var a=VR;VR=e;var o=OR;OR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){zI(l.context);try{if("number"==typeof l.replay.slots?rO(d,l,l.replay.slots,l.node,l.childIndex):oO(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(UT(488));l.replay.pendingTasks--,l.abortSet.delete(l),bO(d,l.blockedBoundary,null)}catch(_){bR();var p=_===YI?QI():_;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=l.ping;p.then(h,h),l.thenableState=yR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var f=QR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;pO(m,g,l.replay.nodes,l.replay.slots,y,c=ZR(m,y,f)),d.pendingRootTasks--,0===d.pendingRootTasks&&mO(d),d.allPendingTasks--,0===d.allPendingTasks&&gO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,zI(l.context);var b=m.children.length,v=m.chunks.length;try{oO(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(sA),l.abortSet.delete(l),m.status=1,bO(c,l.blockedBoundary,m)}catch(_){bR(),m.children.length=b,m.chunks.length=v;var k=_===YI?QI():12===c.status?c.fatalError:_;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=yR();var w=l.ping;k.then(w,w)}else{var x=QR(l.componentStack);l.abortSet.delete(l),m.status=4;var E=l.blockedBoundary;d=ZR(c,k,x),null===E?JR(c,k):(E.pendingTasks--,4!==E.status&&(E.status=4,E.errorDigest=d,sO(c,E),E.parentFlushed&&c.clientRenderedBoundaries.push(E))),c.allPendingTasks--,0===c.allPendingTasks&&gO(c)}}}}s.splice(0,i),null!==e.destination&&SO(e,e.destination)}catch(S){ZR(e,S,{}),JR(e,S)}finally{OR=o,BC.H=n,BC.A=r,n===NR&&zI(t),VR=a}}}function kO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,bC(t,QA),bC(t,e.placeholderPrefix),bC(t,e=xC(r.toString(16))),vC(t,ZA);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)bC(t,o[i]);a=wO(e,t,a,r)}for(;i<o.length-1;i++)bC(t,o[i]);return i<o.length&&(a=vC(t,o[i])),a;default:throw Error(UT(390))}}function wO(e,t,n,r){var a=n.boundary;if(null===a)return kO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,vC(t,nN),bC(t,aN),a&&(bC(t,iN),bC(t,xC(LC(a))),bC(t,oN)),vC(t,sN),kO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),lN(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(NI,r),a.stylesheets.forEach(II,r)),kO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),lN(t,e.renderState,a.rootSegmentID),kO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(NI,r),n.stylesheets.forEach(II,r)),vC(t,JA),1!==(n=a.completedSegments).length)throw Error(UT(391));wO(e,t,n[0],r)}return vC(t,rN)}function xO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return bC(e,cN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,uN);case 3:return bC(e,pN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,hN);case 4:return bC(e,mN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,gN);case 5:return bC(e,bN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,vN);case 6:return bC(e,wN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,xN);case 7:return bC(e,_N),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,SN);case 8:return bC(e,CN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,AN);default:throw Error(UT(397))}}(t,e.renderState,n.parentFormatContext,n.id),wO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return vC(e,dN);case 3:return vC(e,fN);case 4:return vC(e,yN);case 5:return vC(e,kN);case 6:return vC(e,EN);case 7:return vC(e,TN);case 8:return vC(e,NN);default:throw Error(UT(397))}}(t,n.parentFormatContext)}function EO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)_O(e,t,n,r[a]);r.length=0,oI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,bC(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?bC(t,jN):(r.instructions|=8,bC(t,FN)):(r.instructions|=10,bC(t,MN)):2&r.instructions?bC(t,DN):(r.instructions|=2,bC(t,LN)),r=xC(a.toString(16)),bC(t,e.boundaryPrefix),bC(t,r),bC(t,BN),bC(t,e.segmentPrefix),bC(t,r),o?(bC(t,HN),function(e,t){bC(e,yI);var n=yI;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)bC(e,n),bC(e,xC(XN(""+t.props.href))),bC(e,kI),n=bI;else{bC(e,n);var r=t.props["data-precedence"],a=t.props,o=jC(""+t.props.href);for(var i in bC(e,xC(XN(o))),r=""+r,bC(e,vI),bC(e,xC(XN(r))),a)if(TC.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"link"));default:wI(e,i,r)}bC(e,kI),n=bI,t.state=3}})),bC(e,kI)}(t,n)):bC(t,zN),n=vC(t,UN),XA(t,e)&&n}function _O(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(UT(392));return xO(e,t,r,a)}return o===n.rootSegmentID?xO(e,t,r,a):(xO(e,t,r,a),n=e.resumableState,bC(t,(e=e.renderState).startInlineScript),1&n.instructions?bC(t,RN):(n.instructions|=1,bC(t,IN)),bC(t,e.segmentPrefix),bC(t,o=xC(o.toString(16))),bC(t,ON),bC(t,e.placeholderPrefix),bC(t,o),t=vC(t,PN))}function SO(e,t){gC=new Uint8Array(2048),yC=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)bC(t,i[a]);if(s)for(a=0;a<s.length;a++)bC(t,s[a]);else bC(t,GA("head")),bC(t,CA)}else if(s)for(a=0;a<s.length;a++)bC(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)bC(t,l[a]);l.length=0,o.preconnects.forEach(iI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)bC(t,c[a]);c.length=0,o.fontPreloads.forEach(iI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(iI,t),o.highImagePreloads.clear(),o.styles.forEach(fI,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)bC(t,u[a]);u.length=0,o.bootstrapScripts.forEach(iI,t),o.scripts.forEach(iI,t),o.scripts.clear(),o.bulkPreloads.forEach(iI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)bC(t,d[a]);d.length=0,i&&null===s&&bC(t,KA("head")),wO(e,t,r,null),e.completedRootSegment=null,XA(t,e.renderState)}var p=e.renderState;r=0;var h=p.viewportChunks;for(r=0;r<h.length;r++)bC(t,h[r]);h.length=0,p.preconnects.forEach(iI,t),p.preconnects.clear(),p.fontPreloads.forEach(iI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(iI,t),p.highImagePreloads.clear(),p.styles.forEach(gI,t),p.scripts.forEach(iI,t),p.scripts.clear(),p.bulkPreloads.forEach(iI,t),p.bulkPreloads.clear();var f=p.hoistableChunks;for(r=0;r<f.length;r++)bC(t,f[r]);f.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;bC(p,b.startInlineScript),4&y.instructions?bC(p,VN):(y.instructions|=4,bC(p,$N)),bC(p,b.boundaryPrefix),bC(p,xC(v.toString(16))),bC(p,GN),k&&(bC(p,WN),bC(p,xC((A=k||"",JSON.stringify(A).replace(YN,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=vC(p,qN);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var x=e.completedBoundaries;for(n=0;n<x.length;n++)if(!EO(e,t,x[n]))return e.destination=null,n++,void x.splice(0,n);x.splice(0,n),kC(t),gC=new Uint8Array(2048),yC=0;var E=e.partialBoundaries;for(n=0;n<E.length;n++){var _=E[n];e:{m=e,g=t;var S=_.completedSegments;for(w=0;w<S.length;w++)if(!_O(m,g,_,S[w])){w++,S.splice(0,w);var T=!1;break e}S.splice(0,w),T=oI(g,_.contentState,m.renderState)}if(!T)return e.destination=null,n++,void E.splice(0,n)}E.splice(0,n);var C=e.completedBoundaries;for(n=0;n<C.length;n++)if(!EO(e,t,C[n]))return e.destination=null,n++,void C.splice(0,n);C.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&bC(t,KA("body")),n.hasHtml&&bC(t,KA("html")),kC(t),e.status=14,t.close(),e.destination=null):kC(t)}var A}function TO(e){e.flushScheduled=null!==e.destination,mC((function(){return vO(e)})),pC((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&fO(e,0===e.pendingRootTasks)}))}function CO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,pC((function(){var t=e.destination;t?SO(e,t):e.flushScheduled=!1})))}function AO(e,t){if(13===e.status)e.status=14,_C(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{SO(e,t)}catch(n){ZR(e,n,{}),JR(e,n)}}}function NO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(UT(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(UT(530)):t;e.fatalError=r,n.forEach((function(t){return hO(t,e,r)})),n.clear()}null!==e.destination&&SO(e,e.destination)}catch(a){ZR(e,a,{}),JR(e,a)}}function IO(){var e=HT.version;if("19.0.0"!==e)throw Error(UT(527,e,"19.0.0"))}IO(),IO(),BT.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=rA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=zR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,nA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),oA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){AO(s,e)},cancel:function(e){s.destination=null,NO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)NO(s,l.reason);else{var c=function(){NO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}TO(s)}))},BT.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=rA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=zR(e,c,nA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),oA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){AO(u,e)},cancel:function(e){u.destination=null,NO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)NO(u,d.reason);else{var p=function(){NO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}TO(u)}))},BT.version="19.0.0",$R=BT,(UR=Xx).version;var RO=UR.renderToString;function OO({children:e="",...t}){let n="";return X.isValidElement(e)?n=RO(e):"string"==typeof e&&(n=e),qh.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function PO({root:e,children:t=null}){return se.createPortal(t,e)}function LO(e){return K.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=K.useRef(null==e?void 0:e.current);return K.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=K.useState(null),d=`node_${t}${n}`;return K.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),qh.jsx(e.tag,{ref:l,...i,children:(c||a)&&qh.jsx(Kx.Provider,{value:c,children:a?qh.jsx(OO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):qh.jsx(PO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}UR.renderToStaticMarkup,$R.renderToReadableStream,$R.resume&&$R.resume;const DO=new Map;const MO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=Yx.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!DO.has(o)){const e=LO({tag:a,render:n});DO.set(o,e)}return DO.get(o)}})}();var FO=(null==globalThis?void 0:globalThis.document)?K.useLayoutEffect:()=>{},jO=Q[" useId ".trim().toString()]||(()=>{}),BO=0;function HO(e){const[t,n]=K.useState(jO());return FO((()=>{n((e=>e??String(BO++)))}),[e]),t?`radix-${t}`:""}const zO=K.createContext(void 0),UO=()=>K.useContext(zO);function $O({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=K.useState(null),[i,s]=K.useState(null),l=K.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=HO(),u=MO.div;return qh.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${r}`}}),n,qh.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:qh.jsx(zO.Provider,{value:l,children:a&&i&&t})})]})}const VO=e=>UO()?e.children:qh.jsx($O,{...e}),GO="ChatButton",WO="CustomTrigger",qO="SearchBar",YO="EmbeddedChat",KO="EmbeddedSearch",XO="EmbeddedSearchAndChat",QO="IntelligentForm",ZO="SidebarChat",JO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:Ix,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:YO},eP=K.createContext(JO),tP=({children:e,value:t})=>{const n=UO(),r=(e,t,n)=>["baseSettings","searchSettings","aiChatSettings"].includes(n)&&!t?e:t,a={baseSettings:n??{}},o=K.useMemo((()=>{const e=function(e,t,...n){return n.reduce(((t,n)=>Oh(t,n,e)),t)}(r,JO,a,t??{});return e.baseSettings.apiKey||console.warn("Inkeep API key is missing."),e}),[t]);return qh.jsx(eP.Provider,{value:o,children:e})},nP=()=>{const e=K.useContext(eP);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},rP="conversationId",aP=K.createContext(null),oP=({children:e})=>{const t=function(){const[e,t]=K.useState(void 0),{aiChatSettings:n}=nP(),{shareChatUrlBasePath:r}=n;return K.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(rP);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=nP(),r=n.chatId||t,[a,o]=K.useState(r);K.useEffect((()=>{o(r)}),[r]);const i={id:"",messages:[]},[s,l]=K.useState(i),c=()=>{l(i),o(void 0)},u=K.useMemo((()=>({conversation:s,setConversation:l,chatId:a,isSharedChat:!!t,resetConversation:c,setExternalChatId:o})),[s,a,t]);return qh.jsx(aP.Provider,{value:u,children:e})},iP=()=>{const e=K.useContext(aP);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};async function sP(e,t,n,r){try{const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}catch(a){console.warn("Error in logConversation:",a)}}const lP="inkeepUsagePreferences",cP={defaultView:null,inkeepChatSessionId:null},uP={hasSwitchModeButtonJiggled:!1,userId:null,...cP},dP={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${lP}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${lP}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${lP}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${lP}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${lP}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},pP=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},hP=K.createContext(void 0),fP=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=nP(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=nP(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!pP()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in cP?`${e}-${o}`:e,s=Object.keys(uP).reduce(((e,t)=>{const n=i(t),r=dP.get(a,n);return{...e,[t]:r}}),{...uP}),[l,c]=K.useState(s);return K.useEffect((()=>{if(r)for(const e of Object.keys(uP)){const t=i(e);dP.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);dP.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=K.useMemo((()=>pP()),[]),l=K.useMemo((()=>!r&&!a&&s),[r,a,s]),c=K.useMemo((()=>{const e=r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",n=r?void 0:t.id||l&&o.userId||Zh();return{identificationType:e,...r?{}:t,id:n}}),[t,r,l,o.userId]);return K.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),qh.jsx(hP.Provider,{value:{userProperties:c},children:e})},mP=()=>{const e=K.useContext(hP);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const gP=K.createContext(void 0),yP=({children:e})=>{const{baseSettings:t,componentType:n}=nP(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s,analyticsProperties:l}=t,{userProperties:c}=mP(),u=K.useMemo((()=>({widgetLibraryVersion:"0.5.117",componentType:n,tags:o})),[n,o]),d=!i.optOutAllAnalytics&&"development"!==s,p={logEvent:K.useCallback((async e=>{var n,o;const i={...u,...e.properties,...l},s={eventName:e.eventName,properties:i,userProperties:c},p=["modal_opened","modal_closed"].includes(e.eventName);if(d&&!p){if("conversation"in i&&!(null==(n=i.conversation)?void 0:n.id))return;!async function(e,t,n){try{const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}catch(r){console.warn("Error in logEvent:",r)}}(s,r,a)}null==(o=t.onEvent)||o.call(t,s)}),[d,t,r,a,c,u,l])};return qh.jsx(gP.Provider,{value:p,children:e})},bP=()=>{const e=K.useContext(gP);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e},vP=K.createContext(void 0),kP=({children:e})=>{const{baseSettings:t,aiChatSettings:n}=nP(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:{optOutAllAnalytics:i},env:s,analyticsProperties:l}=t,{conversationVisibility:c}=n,{userProperties:u}=mP(),{logEvent:d}=bP(),{conversation:p,setConversation:h,chatId:f,isSharedChat:m,setExternalChatId:g}=iP(),y=K.useRef(p),b=K.useRef(m?f:void 0);K.useEffect((()=>{y.current=p}),[p]),K.useEffect((()=>{b.current=m?f:void 0}),[f,m]);const v=K.useCallback((async e=>{const t=y.current;b.current&&(t.id="",g(void 0),b.current=void 0);const n=!i&&"development"!==s;let d=Object.assign({},t,{messages:e});if(n){const n=await sP(t.id,{messages:e,tags:o,userProperties:u,properties:l,visibility:c},r,a);n&&(d=n)}else d.id="conv_"+Zh(16);return d}),[a,r,o,u,i,s,l,g,c]),k=K.useCallback((async(e,t)=>{let n=y.current;if(t){const e=y.current.messages||[];(t.length!==e.length||t.some(((t,n)=>{var r;return t.id!==(null==(r=e[n])?void 0:r.id)})))&&(n=await v(t),h(n),y.current=n)}const r={...e,properties:{conversation:n,...e.properties}};d(r)}),[d,v,i,s,l]),w=K.useCallback((()=>y.current),[]),x={logEvent:k,logConversation:v,getLatestConversation:w};return qh.jsx(vP.Provider,{value:x,children:e})},wP=()=>{const e=K.useContext(vP);if(!e)throw new Error("useChatEvents must be used within a ChatEventsProvider");return e};function xP(e){const{displayName:t,goals:n,informationToCollect:r,guidance:a,botPersona:o,context:i}=e,s=SP({title:"Guidance",content:[EP(a)],note:o,depth:2}),l=_P(null==r?void 0:r.filter((e=>e.required)).map((e=>e.description))),c=_P(null==r?void 0:r.filter((e=>!e.required)).map((e=>e.description))),u=SP({title:"Required",content:[l],note:"IMPORTANT: This information is REQUIRED for this workflow. If not provided in the conversation, prompt the user to provide it and don't otherwise answer their question.",depth:3}),d=SP({title:"Optional",content:[c],depth:3}),p=SP({title:"Information to collect",content:[u,d],note:"This is information that should be collected from the user.",depth:2}),h=SP({title:"Context",content:[_P(i)],depth:2}),f=SP({title:"Workflow Name",content:[t],depth:2}),m=SP({title:"Goals",content:[EP(n)],depth:2});return SP({title:"Workflow",content:["I am a user being guided through a “workflow” defined by the organization that provides this chat experience.","**IMPORTANT: Follow the instructions outlined in this workflow. Follow the instructions in the workflow configuration below. Do not answer questions unrelated to the workflow.**",f,m,h,p,s],depth:1})}function EP(e){if(IP(e))return e.filter((e=>null!=e)).map(((e,t)=>`${t+1}. ${e}`)).join("\n")}function _P(e){if(IP(e))return e.filter((e=>null!=e)).map((e=>`- ${e}`)).join("\n")}function SP({title:e,content:t,note:n,depth:r=2}){const a=NP(t);if(!a&&!n)return;const o=`${"#".repeat(r)} ${e}\n`,i=NP([n,a]);return i?`${o}${i}\n`:void 0}function TP(e){if(!e)return;if(!IP(e))return;const t=e.map(((e,t)=>function({attachment:e,index:t}){const{title:n,content:r,contentType:a,context:o}=e,{contentInputLabel:i,type:s}=a,l=function(e){if("CODE"===(null==e?void 0:e.type))return e.language||"";return}(a),c=function(e,t){return t?`\`\`\`${t}\n${e}\n\`\`\``:e}(r,l),u=IP(o)?["\nAdditional Context:",NP(o)]:[],d=[`#### ATTACHMENT #${t+1}`,`Title: ${n}`,`Label: ${i}`,`Type: ${s}`,"Content:",c,...u].join("\n");return d}({attachment:e,index:t})));return NP(t)}function CP(e){return SP({title:"User-provided Attachments",content:["The user has provided the following attachments to their message:",TP(e)],depth:1})}function AP(e){if(!e.supportedInputs)return e;const t={...e};return t.supportedInputs=e.supportedInputs.map((e=>{const t={...e};return"MODAL"===t.type&&(t.workflowModalProps=void 0),t})),t}function NP(e){if(IP(e))return e.filter((e=>null!=e)).join("\n")}function IP(e){return Array.isArray(e)&&e.length>0}const RP=()=>{const e="undefined"==typeof window?new URL(""):new URL(window.location.href),t=new URLSearchParams(e.search);if(t.has(rP)){t.delete(rP);const n=t.toString(),r=n?`${e.origin}${e.pathname}?${n}`:`${e.origin}${e.pathname}`;"undefined"!=typeof window&&window.history.pushState({},"",r)}};var OP=e=>"checkbox"===e.type,PP=e=>e instanceof Date,LP=e=>null==e;const DP=e=>"object"==typeof e;var MP=e=>!LP(e)&&!Array.isArray(e)&&DP(e)&&!PP(e),FP=e=>MP(e)&&e.target?OP(e.target)?e.target.checked:e.target.value:e,jP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),BP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function HP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(BP&&(e instanceof Blob||r)||!n&&!MP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return MP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=HP(e[n]));else t=e}return t}var zP=e=>Array.isArray(e)?e.filter(Boolean):[],UP=e=>void 0===e,$P=(e,t,n)=>{if(!t||!MP(e))return n;const r=zP(t.split(/[,[\].]+?/)).reduce(((e,t)=>LP(e)?e:e[t]),e);return UP(r)||r===e?UP(e[t])?n:e[t]:r},VP=e=>"boolean"==typeof e,GP=e=>/^\w*$/.test(e),WP=e=>zP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),qP=(e,t,n)=>{let r=-1;const a=GP(t)?[t]:WP(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=MP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const YP="blur",KP="focusout",XP="change",QP="onBlur",ZP="onChange",JP="onSubmit",eL="onTouched",tL="all",nL="max",rL="min",aL="maxLength",oL="minLength",iL="pattern",sL="required",lL="validate",cL=X.createContext(null),uL=()=>X.useContext(cL);var dL=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==tL&&(t._proxyFormState[a]=!r||tL),n&&(n[a]=!0),e[a]}});return a},pL=e=>MP(e)&&!Object.keys(e).length,hL=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return pL(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||tL)))},fL=e=>Array.isArray(e)?e:[e],mL=(e,t,n)=>!e||!t||e===t||fL(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function gL(e){const t=X.useRef(e);t.current=e,X.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var yL=e=>"string"==typeof e,bL=(e,t,n,r,a)=>yL(e)?(r&&t.watch.add(e),$P(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),$P(n,e)))):(r&&(t.watchAll=!0),n);function vL(e){const t=uL(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=jP(a._names.array,n),s=function(e){const t=uL(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=X.useRef(r);s.current=r,gL({disabled:o,subject:n._subjects.values,next:e=>{mL(s.current,e.name,i)&&c(HP(bL(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=X.useState(n._getWatch(r,a));return X.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:$P(a._formValues,n,$P(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=uL(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=X.useState(n._formState),l=X.useRef(!0),c=X.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=X.useRef(a);return u.current=a,gL({disabled:r,next:e=>l.current&&mL(u.current,e.name,o)&&hL(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),X.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),X.useMemo((()=>dL(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=X.useRef(a.register(n,{...e.rules,value:s,...VP(e.disabled)?{disabled:e.disabled}:{}})),u=X.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$P(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!$P(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$P(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$P(l.validatingFields,n)},error:{enumerable:!0,get:()=>$P(l.errors,n)}})),[l,n]),d=X.useMemo((()=>({name:n,value:s,...VP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:FP(e),name:n},type:XP}),onBlur:()=>c.current.onBlur({target:{value:$P(a._formValues,n),name:n},type:YP}),ref:e=>{const t=$P(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return X.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=$P(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=HP($P(a._options.defaultValues,n));qP(a._defaultValues,n,e),UP($P(a._formValues,n))&&qP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),X.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),X.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const kL=e=>e.render(vL(e));var wL=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},xL=e=>({isOnSubmit:!e||e===JP,isOnBlur:e===QP,isOnChange:e===ZP,isOnAll:e===tL,isOnTouch:e===eL}),EL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const _L=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=$P(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(_L(o,t))break}else if(MP(o)&&_L(o,t))break}}};var SL=(e,t,n)=>{const r=fL($P(e,n));return qP(r,"root",t[n]),qP(e,n,r),e},TL=e=>"file"===e.type,CL=e=>"function"==typeof e,AL=e=>{if(!BP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},NL=e=>yL(e),IL=e=>"radio"===e.type,RL=e=>e instanceof RegExp;const OL={value:!1,isValid:!1},PL={value:!0,isValid:!0};var LL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!UP(e[0].attributes.value)?UP(e[0].value)||""===e[0].value?PL:{value:e[0].value,isValid:!0}:PL:OL}return OL};const DL={isValid:!1,value:null};var ML=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),DL):DL;function FL(e,t,n="validate"){if(NL(e)||Array.isArray(e)&&e.every(NL)||VP(e)&&!e)return{type:n,message:NL(e)?e:"",ref:t}}var jL=e=>MP(e)&&!RL(e)?e:{value:e,message:""},BL=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:y}=e._f,b=$P(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(VP(e)?"":e||""),v.reportValidity())},w={},x=IL(i),E=OP(i),_=x||E,S=(g||TL(i))&&UP(i.value)&&UP(b)||AL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,T=wL.bind(null,m,r,w),C=(e,t,n,r=aL,a=oL)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,...T(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!_&&(S||LP(b))||VP(b)&&!b||E&&!LL(s).isValid||x&&!ML(s).isValid)){const{value:e,message:t}=NL(l)?{value:!!l,message:l}:jL(l);if(e&&(w[m]={type:sL,message:t,ref:v,...T(sL,t)},!r))return k(t),w}if(!(S||LP(d)&&LP(p))){let e,t;const n=jL(p),a=jL(d);if(LP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;yL(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),yL(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);LP(n.value)||(e=r>n.value),LP(a.value)||(t=r<a.value)}if((e||t)&&(C(!!e,n.message,a.message,nL,rL),!r))return k(w[m].message),w}if((c||u)&&!S&&(yL(b)||o&&Array.isArray(b))){const e=jL(c),t=jL(u),n=!LP(e.value)&&b.length>+e.value,a=!LP(t.value)&&b.length<+t.value;if((n||a)&&(C(n,e.message,t.message),!r))return k(w[m].message),w}if(h&&!S&&yL(b)){const{value:e,message:t}=jL(h);if(RL(e)&&!b.match(e)&&(w[m]={type:iL,message:t,ref:i,...T(iL,t)},!r))return k(t),w}if(f)if(CL(f)){const e=FL(await f(b,n),v);if(e&&(w[m]={...e,...T(lL,e.message)},!r))return k(e.message),w}else if(MP(f)){let e={};for(const t in f){if(!pL(e)&&!r)break;const a=FL(await f[t](b,n),v,t);a&&(e={...a,...T(t,a.message)},k(a.message),r&&(w[m]=e))}if(!pL(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function HL(e,t){const n=Array.isArray(t)?t:GP(t)?[t]:WP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=UP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(MP(r)&&pL(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!UP(e[t]))return!1;return!0}(r))&&HL(e,n.slice(0,-1)),e}var zL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},UL=e=>LP(e)||!DP(e);function $L(e,t){if(UL(e)||UL(t))return e===t;if(PP(e)&&PP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(PP(n)&&PP(e)||MP(n)&&MP(e)||Array.isArray(n)&&Array.isArray(e)?!$L(n,e):n!==e)return!1}}return!0}var VL=e=>"select-multiple"===e.type,GL=e=>AL(e)&&e.isConnected,WL=e=>{for(const t in e)if(CL(e[t]))return!0;return!1};function qL(e,t={}){const n=Array.isArray(e);if(MP(e)||n)for(const r in e)Array.isArray(e[r])||MP(e[r])&&!WL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},qL(e[r],t[r])):LP(e[r])||(t[r]=!0);return t}function YL(e,t,n){const r=Array.isArray(e);if(MP(e)||r)for(const a in e)Array.isArray(e[a])||MP(e[a])&&!WL(e[a])?UP(t)||UL(n[a])?n[a]=Array.isArray(e[a])?qL(e[a],[]):{...qL(e[a])}:YL(e[a],LP(t)?{}:t[a],n[a]):n[a]=!$L(e[a],t[a]);return n}var KL=(e,t)=>YL(e,t,qL(t)),XL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>UP(e)?e:t?""===e?NaN:e?+e:e:n&&yL(e)?new Date(e):r?r(e):e;function QL(e){const t=e.ref;return TL(t)?t.files:IL(t)?ML(e.refs).value:VL(t)?[...t.selectedOptions].map((({value:e})=>e)):OP(t)?LL(e.refs).value:XL(UP(t.value)?e.ref.value:t.value,e)}var ZL=e=>UP(e)?e:RL(e)?e.source:MP(e)?RL(e.value)?e.value.source:e.value:e;const JL="AsyncFunction";function eD(e,t,n){const r=$P(e,n);if(r||GP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=$P(t,r),i=$P(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const tD={mode:JP,reValidateMode:ZP,shouldFocusError:!0};function nD(e={}){let t,n={...tD,...e},r={submitCount:0,isDirty:!1,isLoading:CL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(MP(n.defaultValues)||MP(n.values))&&HP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:HP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:zL(),array:zL(),state:zL()},p=xL(n.mode),h=xL(n.reValidateMode),f=n.criteriaMode===tL,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?pL((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?qP(r.validatingFields,e,t):HL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!pL(r.validatingFields)}))},y=(e,t,n,r)=>{const l=$P(a,e);if(l){const a=$P(i,e,UP(n)?$P(o,e):n);UP(a)||r&&r.defaultChecked||t?qP(i,e,t?a:QL(l._f)):_(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const h={name:e};if(!n.disabled){const n=!!($P(a,e)&&$P(a,e)._f&&$P(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=h.isDirty=x(),c=p!==h.isDirty);const a=n||$L($P(o,e),t);p=!(n||!$P(r.dirtyFields,e)),a||n?HL(r.dirtyFields,e):qP(r.dirtyFields,e,!0),h.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=$P(r.touchedFields,e);t||(qP(r.touchedFields,e,i),h.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(h)}return c?h:{}},v=(e,a,o,i)=>{const s=$P(r.errors,e),l=u.isValid&&VP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{qP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?qP(r.errors,e,o):HL(r.errors,e)),(o?!$L(s,o):s)||!pL(i)||l){const t={...i,...l&&VP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=$P(t,o);e&&qP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(CL(o.validate)&&o.validate.constructor.name===JL||MP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===JL))));p&&u.validatingFields&&g([s],!0);const h=await BL(c,l.disabled,i,f,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),h[e.name]&&(a.valid=!1,t))break;!t&&($P(h,e.name)?d?SL(r.errors,h,e.name):qP(r.errors,e.name,h[e.name]):HL(r.errors,e.name))}!pL(d)&&await w(d,t,a)}}var o;return a.valid},x=(e,t)=>!n.disabled&&(e&&t&&qP(i,e,t),!$L(I(),o)),E=(e,t,n)=>bL(e,l,{...s.mount?i:UP(t)?o:yL(e)?{[e]:t}:t},n,t),_=(e,t,n={})=>{const r=$P(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&qP(i,e,XL(t,n)),o=AL(n.ref)&&LP(t)?"":t,VL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?OP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):TL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},S=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=$P(a,i);(l.array.has(e)||MP(o)||s&&!s._f)&&!PP(o)?S(i,o,n):_(i,o,n)}},T=(e,t,n={})=>{const c=$P(a,e),p=l.array.has(e),h=HP(t);qP(i,e,h),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:KL(o,i),isDirty:x(e,h)})):!c||c._f||LP(h)?_(e,h,n):S(e,h,n),EL(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},C=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const x=$P(a,c),E=e=>{y=Number.isNaN(e)||PP(e)&&isNaN(e.getTime())||$L(e,$P(i,c,e))};if(x){let s,S;const T=o.type?QL(x._f):FP(e),C=e.type===YP||e.type===KP,A=!((_=x._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||$P(r.errors,c)||x._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(C,$P(r.touchedFields,c),r.isSubmitted,h,p),I=EL(c,l,C);qP(i,c,T),C?(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const R=b(c,T,C,!1),O=!pL(R)||I;if(!C&&d.values.next({name:c,type:e.type,values:{...i}}),A)return u.isValid&&("onBlur"===n.mode&&C?m():C||m()),O&&d.state.next({name:c,...I?{}:R});if(!C&&I&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(E(T),y){const t=eD(r.errors,a,c),n=eD(e,a,t.name||c);s=n.error,c=n.name,S=pL(e)}}else g([c],!0),s=(await BL(x,l.disabled,i,f,n.shouldUseNativeValidation))[c],g([c]),E(T),y&&(s?S=!1:u.isValid&&(S=await w(a,!0)));y&&(x._f.deps&&N(x._f.deps),v(c,S,s,R))}var _},A=(e,t)=>{if($P(r.errors,t)&&e.focus)return e.focus(),1},N=async(e,t={})=>{let o,i;const s=fL(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=$P(t,n);e?qP(r.errors,n,e):HL(r.errors,n)}else r.errors=t;return t})(UP(e)?e:s);o=pL(t),i=e?!s.some((e=>$P(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=$P(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!yL(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&_L(a,A,e?s:l.mount),i},I=e=>{const t={...s.mount?i:o};return UP(e)?t:yL(e)?$P(t,e):e.map((e=>$P(t,e)))},R=(e,t)=>({invalid:!!$P((t||r).errors,e),isDirty:!!$P((t||r).dirtyFields,e),error:$P((t||r).errors,e),isValidating:!!$P(r.validatingFields,e),isTouched:!!$P((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=($P(a,e,{_f:{}})._f||{}).ref,i=$P(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;qP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?fL(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(HL(a,s),HL(i,s)),!t.keepError&&HL(r.errors,s),!t.keepDirty&&HL(r.dirtyFields,s),!t.keepTouched&&HL(r.touchedFields,s),!t.keepIsValidating&&HL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&HL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(VP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,QL(n?n._f:$P(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=$P(a,e);const i=VP(t.disabled)||VP(n.disabled);return qP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:VP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:ZL(t.min),max:ZL(t.max),minLength:ZL(t.minLength),maxLength:ZL(t.maxLength),pattern:ZL(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:i=>{if(i){D(e,t),r=$P(a,e);const n=UP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>IL(e)||OP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;qP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(GL),n,...Array.isArray($P(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=$P(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!jP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&_L(a,A,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=HP(i);if(l.disabled.size)for(const e of l.disabled)qP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(HL(r.errors,"root"),pL(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pL(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(e,t={})=>{const c=e?HP(e):o,p=HP(c),h=pL(e),f=h?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(KL(o,i))]);for(const t of Array.from(e))$P(r.dirtyFields,t)?qP(f,t,$P(i,t)):T(t,$P(f,t))}else{if(BP&&UP(e))for(const e of l.mount){const t=$P(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(AL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?HP(o):{}:HP(f),d.array.next({values:{...f}}),d.values.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!h&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||$L(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&i?KL(o,i):r.dirtyFields:t.keepDefaultValues&&e?KL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>j(CL(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=$P(a,e);t&&(t._f.refs?t._f.refs.every((e=>!GL(e))):!GL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,h=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,h&&Array.isArray($P(a,e))){const t=l($P(a,e),c.argA,c.argB);p&&qP(a,e,t)}if(h&&Array.isArray($P(r.errors,e))){const t=l($P(r.errors,e),c.argA,c.argB);p&&qP(r.errors,e,t),((e,t)=>{!zP($P(e,t)).length&&HL(e,t)})(r.errors,e)}if(u.touchedFields&&h&&Array.isArray($P(r.touchedFields,e))){const t=l($P(r.touchedFields,e),c.argA,c.argB);p&&qP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=KL(o,i)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else qP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>zP($P(s.mount?i:o,e,n.shouldUnregister?$P(o,e,[]):[])),_reset:j,_resetDefaultValues:()=>CL(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{VP(e)&&(d.state.next({disabled:e}),_L(a,((t,n)=>{const r=$P(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:N,register:D,handleSubmit:F,watch:(e,t)=>CL(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:T,getValues:I,reset:B,resetField:(e,t={})=>{$P(a,e)&&(UP(t.defaultValue)?T(e,HP($P(o,e))):(T(e,t.defaultValue),qP(o,e,HP(t.defaultValue))),t.keepTouched||HL(r.touchedFields,e),t.keepDirty||(HL(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,HP($P(o,e))):x()),t.keepError||(HL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&fL(e).forEach((e=>HL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=$P(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&CL(e.select)&&e.select())}},getFieldState:R}}function rD(e={}){const t=X.useRef(void 0),n=X.useRef(void 0),[r,a]=X.useState({isDirty:!1,isValidating:!1,isLoading:CL(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:CL(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...nD(e),formState:r});const o=t.current.control;return o._options=e,gL({subject:o._subjects.state,next:e=>{hL(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),X.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),X.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),X.useEffect((()=>{e.values&&!$L(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),X.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),X.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),X.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=dL(r,o),t.current}const aD=K.createContext(void 0),oD=({children:e,modal:t})=>qh.jsx(aD.Provider,{value:t,children:e}),iD=()=>K.useContext(aD);var sD=(e,t=[])=>({parts:(...n)=>{if(cD(t))return sD(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>sD(e,[...t,...n]),omit:(...n)=>sD(e,t.filter((e=>!n.includes(e)))),rename:e=>sD(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce(((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${lD(e)}"][data-part="${lD(n)}"]`,`& [data-scope="${lD(e)}"][data-part="${lD(n)}"]`].join(", "),attrs:{"data-scope":lD(e),"data-part":lD(n)}}})),{})}),lD=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),cD=e=>0===e.length;var uD=(e,...t)=>e.filter((e=>!t.includes(e))),dD=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?uD(e,t):((e,...t)=>e.concat(t))(e,t),pD=e=>"Array"===(null==e?void 0:e.constructor.name),hD=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof(null==e?void 0:e.isEqual)&&"function"==typeof(null==t?void 0:t.isEqual))return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(pD(e)&&pD(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hD(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let a=0;a<r;a++){if(!Reflect.has(e,n[a]))return!1}for(let a=0;a<r;a++){const r=n[a];if(!hD(e[r],t[r]))return!1}return!0},fD=e=>null!=e&&"object"==typeof e,mD=e=>fD(e)&&!(e=>Array.isArray(e))(e),gD=e=>"function"==typeof e,yD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bD=Function.prototype.toString,vD=bD.call(Object),kD=e=>{if(!fD(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||wD(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=yD(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bD.call(n)==vD},wD=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),xD=e=>e(),ED=()=>{},_D=(...e)=>(...t)=>{e.forEach((function(e){null==e||e(...t)}))};function SD(e,t,...n){var r;if(e in t){const r=t[e];return gD(r)?r(...n):r}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw null==(r=Error.captureStackTrace)||r.call(Error,a,SD),a}function TD(e){if(!kD(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter((e=>"string"==typeof e)),n={};for(const r of t){const t=e[r];void 0!==t&&(n[r]=TD(t))}return n}function CD(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function AD(e,t){if(null==e)throw new Error(t())}var ND=Object.defineProperty,ID=(e,t,n)=>((e,t,n)=>t in e?ND(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),RD={itemToValue:e=>"string"==typeof e?e:mD(e)&&yD(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:mD(e)&&yD(e,"label")?e.label:RD.itemToValue(e),isItemDisabled:e=>!(!mD(e)||!yD(e,"disabled"))&&!!e.disabled},OD=class e{constructor(t){this.options=t,ID(this,"items"),ID(this,"indexMap",null),ID(this,"copy",(t=>new e({...this.options,items:t??[...this.items]}))),ID(this,"isEqual",(e=>hD(this.items,e.items))),ID(this,"setItems",(e=>this.copy(e))),ID(this,"getValues",((e=this.items)=>{const t=[];for(const n of e){const e=this.getItemValue(n);null!=e&&t.push(e)}return t})),ID(this,"find",(e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null})),ID(this,"findMany",(e=>{const t=[];for(const n of e){const e=this.find(n);null!=e&&t.push(e)}return t})),ID(this,"at",(e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const n=this.group();for(const[,r]of n)for(const n of r){if(t===e)return n;t++}return null})),ID(this,"sortFn",((e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0))),ID(this,"sort",(e=>[...e].sort(this.sortFn.bind(this)))),ID(this,"getItemValue",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToValue)?void 0:n.call(t,e))??RD.itemToValue(e)})),ID(this,"getItemDisabled",(e=>{var t,n;return null!=e&&((null==(n=(t=this.options).isItemDisabled)?void 0:n.call(t,e))??RD.isItemDisabled(e))})),ID(this,"stringifyItem",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToString)?void 0:n.call(t,e))??RD.itemToString(e)})),ID(this,"stringify",(e=>null==e?null:this.stringifyItem(this.find(e)))),ID(this,"stringifyItems",((e,t=", ")=>{const n=[];for(const r of e){const e=this.stringifyItem(r);null!=e&&n.push(e)}return n.join(t)})),ID(this,"stringifyMany",((e,t)=>this.stringifyItems(this.findMany(e),t))),ID(this,"has",(e=>-1!==this.indexOf(e))),ID(this,"hasItem",(e=>null!=e&&this.has(this.getItemValue(e)))),ID(this,"group",(()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const n=new Map;this.items.forEach(((t,r)=>{const a=e(t,r);n.has(a)||n.set(a,[]),n.get(a).push(t)}));let r=Array.from(n.entries());return t&&r.sort((([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){const r=t.indexOf(e),a=t.indexOf(n);return-1===r?1:-1===a?-1:r-a}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0})),r})),ID(this,"getNextValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))})),ID(this,"getPreviousValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))})),ID(this,"indexOf",(e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex((t=>this.getItemValue(t)===e));if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,n]of t)for(const t of n){const n=this.getItemValue(t);null!=n&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1})),ID(this,"getByText",((e,t)=>{const n=null!=t?this.indexOf(t):-1,r=1===e.length;for(let a=0;a<this.items.length;a++){const o=this.items[(n+a+1)%this.items.length];if((!r||this.getItemValue(o)!==t)&&(!this.getItemDisabled(o)&&PD(this.stringifyItem(o),e)))return o}})),ID(this,"search",((e,t)=>{const{state:n,currentValue:r,timeout:a=350}=t,o=n.keysSoFar+e,i=o.length>1&&Array.from(o).every((e=>e===o[0]))?o[0]:o,s=this.getByText(i,r),l=this.getItemValue(s);function c(){clearTimeout(n.timer),n.timer=-1}return function e(t){n.keysSoFar=t,c(),""!==t&&(n.timer=+setTimeout((()=>{e(""),c()}),a))}(o),l})),ID(this,"update",((e,t)=>{let n=this.indexOf(e);return-1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])})),ID(this,"upsert",((e,t,n="append")=>{let r=this.indexOf(e);if(-1===r){return("append"===n?this.append:this.prepend)(t)}return this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])})),ID(this,"insert",((e,...t)=>this.copy(LD(this.items,e,...t)))),ID(this,"insertBefore",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(LD(this.items,n,...t))})),ID(this,"insertAfter",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(LD(this.items,n+1,...t))})),ID(this,"prepend",((...e)=>this.copy(LD(this.items,0,...e)))),ID(this,"append",((...e)=>this.copy(LD(this.items,this.items.length,...e)))),ID(this,"filter",(e=>{const t=this.items.filter(((t,n)=>e(this.stringifyItem(t),n,t)));return this.copy(t)})),ID(this,"remove",((...e)=>{const t=e.map((e=>"string"==typeof e?e:this.getItemValue(e)));return this.copy(this.items.filter((e=>{const n=this.getItemValue(e);return null!=n&&!t.includes(n)})))})),ID(this,"move",((e,t)=>{const n=this.indexOf(e);return-1===n?this:this.copy(DD(this.items,[n],t))})),ID(this,"moveBefore",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(DD(this.items,r,n))})),ID(this,"moveAfter",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(DD(this.items,r,n+1))})),ID(this,"reorder",((e,t)=>this.copy(DD(this.items,[e],t)))),ID(this,"compareValue",((e,t)=>{const n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:n>r?1:0})),ID(this,"range",((e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]})),ID(this,"getValueRange",((e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[])),ID(this,"toString",(()=>{let e="";for(const t of this.items){e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e})),ID(this,"toJSON",(()=>({size:this.size,first:this.firstValue,last:this.lastValue}))),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},PD=(e,t)=>!!(null==e?void 0:e.toLowerCase().startsWith(t.toLowerCase()));function LD(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function DD(e,t,n){const r=(t=[...t].sort(((e,t)=>e-t))).map((t=>e[t]));for(let a=t.length-1;a>=0;a--)e=[...e.slice(0,t[a]),...e.slice(t[a]+1)];return n=Math.max(0,n-t.filter((e=>e<n)).length),[...e.slice(0,n),...r,...e.slice(n)]}var MD=Object.defineProperty,FD=(e,t,n)=>((e,t,n)=>t in e?MD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);var jD=()=>{},BD=e=>"object"==typeof e&&null!==e,HD=e=>e?"":void 0,zD=e=>e?"true":void 0,UD=e=>BD(e)&&1===e.nodeType&&"string"==typeof e.nodeName,$D=e=>BD(e)&&9===e.nodeType,VD=e=>UD(e)?e.localName||"":"#document";var GD=e=>(e=>BD(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function WD(e){if(!e)return!1;return ZD(e.getRootNode())===e}var qD=/(textarea|select)/;function YD(e){if(null==e||!UD(e))return!1;try{return(e=>UD(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||qD.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function KD(e,t){var n;if(!e||!t)return!1;if(!UD(e)||!UD(t))return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e===t)return!0;if(e.contains(t))return!0;if(r&&GD(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function XD(e){return $D(e)?e:(e=>BD(e)&&e===e.window)(e)?e.document:(null==e?void 0:e.ownerDocument)??document}function QD(e){var t;return GD(e)?QD(e.host):$D(e)?e.defaultView??window:UD(e)?(null==(t=e.ownerDocument)?void 0:t.defaultView)??window:window}function ZD(e){let t=e.activeElement;for(;null==t?void 0:t.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function JD(e){if("html"===VD(e))return e;const t=e.assignedSlot||e.parentNode||GD(e)&&e.host||XD(e).documentElement;return GD(t)?t.host:t}function eM(e){let t;try{if(t=e.getRootNode({composed:!0}),$D(t)||GD(t))return t}catch{}return e.ownerDocument??document}var tM=new WeakMap;function nM(e){return tM.has(e)||tM.set(e,QD(e).getComputedStyle(e)),tM.get(e)}var rM=new Set(["menu","listbox","dialog","grid","tree","region"]),aM=e=>rM.has(e),oM=e=>{var t;return(null==(t=e.getAttribute("aria-controls"))?void 0:t.split(" "))||[]};function iM(e,t){const n=new Set,r=eM(e),a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=oM(i);for(const o of e){if(!o||n.has(o))continue;n.add(o);const e=r.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");if(n&&aM(n)&&!r){if(e===t||e.contains(t))return!0;if(a(e))return!0}}}}return!1};return a(e)}function sM(e){const t=new Set;return function(e,t){const n=eM(e),r=new Set,a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=oM(i);for(const o of e){if(!o||r.has(o))continue;r.add(o);const e=n.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");n&&rM.has(n)&&!r&&(t(e),a(e))}}}};a(e)}(e,(n=>{e.contains(n)||t.add(n)})),Array.from(t)}function lM(e){if(!e.id)return!1;const t=eM(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`,a=t.querySelector(r);return Boolean(a&&function(e){const t=e.getAttribute("role");return Boolean(t&&rM.has(t))}(e))}var cM=()=>"undefined"!=typeof document;var uM=e=>cM()&&e.test(function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)??navigator.platform}()),dM=e=>cM()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((({brand:e,version:t})=>`${e}/${t}`)).join(" "):navigator.userAgent}()),pM=()=>cM()&&!!navigator.maxTouchPoints,hM=()=>uM(/^Mac/i);function fM(e){const t=function(e){var t,n,r;return(null==(t=e.composedPath)?void 0:t.call(e))??(null==(r=null==(n=e.nativeEvent)?void 0:n.composedPath)?void 0:r.call(n))}(e);return(null==t?void 0:t[0])??e.target}function mM(e){const t=e.currentTarget;if(!t)return!1;if(!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=1===e.button,r=(a=e,hM()?a.metaKey:a.ctrlKey);var a;return n||r}var gM=e=>0===e.button,yM=e=>2===e.button||hM()&&e.ctrlKey&&0===e.button,bM={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},vM={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function kM(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let a=e.key;a=bM[a]??a;return"rtl"===n&&"horizontal"===r&&a in vM&&(a=vM[a]),a}var wM=(e,t,n,r)=>{const a="function"==typeof e?e():e;return null==a||a.addEventListener(t,n,r),()=>{null==a||a.removeEventListener(t,n,r)}},xM=e=>UD(e)&&"IFRAME"===e.tagName,EM=/^(audio|video|details)$/;function _M(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}function SM(e,t){if(!t)return null;if(!0===t)return e.shadowRoot||null;const n=t(e);return(!0===n?e.shadowRoot:n)||null}function TM(e,t,n){const r=[...e],a=[...e],o=new Set,i=new Map;e.forEach(((e,t)=>i.set(e,t)));let s=0;for(;s<a.length;){const e=a[s++];if(!e||o.has(e))continue;o.add(e);const l=SM(e,t);if(l){const t=Array.from(l.querySelectorAll(CM)).filter(n),o=i.get(e);if(void 0!==o){const e=o+1;r.splice(e,0,...t),t.forEach(((t,n)=>{i.set(t,e+n)}));for(let n=e+t.length;n<r.length;n++)i.set(r[n],n)}else{const e=r.length;r.push(...t),t.forEach(((t,n)=>{i.set(t,e+n)}))}a.push(...t)}}return r}var CM="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",AM=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(CM));(1==n||"if-empty"==n&&0===a.length)&&UD(e)&&NM(e)&&a.unshift(e);const o=[];for(const i of a)if(NM(i))if(xM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...AM(e,{getShadowRoot:r}))}else o.push(i);return r?TM(o,r,NM):o};function NM(e){return!(!UD(e)||e.closest("[inert]"))&&(e.matches(CM)&&(!!UD(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)));var t}function IM(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(CM));n&&RM(e)&&a.unshift(e);const o=[];for(const i of a)if(RM(i))if(xM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...IM(e,{getShadowRoot:r}))}else o.push(i);if(r){const e=TM(o,r,RM);return!e.length&&n?a:e}return!o.length&&n?a:o}function RM(e){return!!(UD(e)&&e.tabIndex>0)||NM(e)&&!(e=>_M(e)<0)(e)}function OM(e){return e.tabIndex<0&&(EM.test(e.localName)||YD(e))&&(t=e,Number.isNaN(_M(t)))?0:e.tabIndex;var t}var PM=class e{constructor(){FD(this,"id",null),FD(this,"fn_cleanup"),FD(this,"cleanup",(()=>{this.cancel()}))}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame((()=>{this.id=null,this.fn_cleanup=null==e?void 0:e()}))}cancel(){var e;null!==this.id&&(globalThis.cancelAnimationFrame(this.id),this.id=null),null==(e=this.fn_cleanup)||e.call(this),this.fn_cleanup=void 0}isActive(){return null!==this.id}};function LM(e){const t=PM.create();return t.request(e),t.cleanup}function DM(e){const t=new Set;function n(e){const n=globalThis.requestAnimationFrame(e);t.add((()=>globalThis.cancelAnimationFrame(n)))}return n((()=>n(e))),function(){t.forEach((e=>e()))}}function MM(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(function(e,t){if(!e)return;const{attributes:n,callback:r}=t,a=new(e.ownerDocument.defaultView||window).MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)}));return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function FM(e){const t=()=>{const t=QD(e);e.dispatchEvent(new t.MouseEvent("click"))};dM(/Firefox/i)?function(e,t,n){const r=LM((()=>{e.removeEventListener(t,a,!0),n()})),a=()=>{r(),n()};e.addEventListener(t,a,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function jM(e){const t=JD(e);return["html","body","#document"].includes(VD(t))?XD(t).body:UD(t)&&zM(t)?t:jM(t)}var BM=/auto|scroll|overlay|hidden|clip/,HM=new Set(["inline","contents"]);function zM(e){const t=QD(e),{overflow:n,overflowX:r,overflowY:a,display:o}=t.getComputedStyle(e);return BM.test(n+a+r)&&!HM.has(o)}function UM(e,t){const{rootEl:n,...r}=t||{};e&&n&&zM(n)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(n)&&e.scrollIntoView(r)}function $M(e,t){if(!e)return jD;const n=Object.keys(t).reduce(((t,n)=>(t[n]=e.style.getPropertyValue(n),t)),{});return r=n,a=t,Object.keys(r).every((e=>r[e]===a[e]))?jD:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")});var r,a}function VM(e,t){const{timeout:n,rootNode:r}=t,a=QD(r),o=XD(r),i=new a.AbortController;return function(e,t,n){const{signal:r}=t;return[new Promise(((t,a)=>{const o=setTimeout((()=>{a(new Error(`Timeout of ${n}ms exceeded`))}),n);r.addEventListener("abort",(()=>{clearTimeout(o),a(new Error("Promise aborted"))})),e.then((e=>{r.aborted||(clearTimeout(o),t(e))})).catch((e=>{r.aborted||(clearTimeout(o),a(e))}))})),()=>t.abort()]}(new Promise((t=>{const n=e();if(n)return void t(n);const r=new a.MutationObserver((()=>{const n=e();n&&n.isConnected&&(r.disconnect(),t(n))}));r.observe(o.body,{childList:!0,subtree:!0})})),i,n)}const GM=["top","right","bottom","left"],WM=Math.min,qM=Math.max,YM=Math.round,KM=Math.floor,XM=e=>({x:e,y:e}),QM={left:"right",right:"left",bottom:"top",top:"bottom"},ZM={start:"end",end:"start"};function JM(e,t,n){return qM(e,WM(t,n))}function eF(e,t){return"function"==typeof e?e(t):e}function tF(e){return e.split("-")[0]}function nF(e){return e.split("-")[1]}function rF(e){return"x"===e?"y":"x"}function aF(e){return"y"===e?"height":"width"}const oF=new Set(["top","bottom"]);function iF(e){return oF.has(tF(e))?"y":"x"}function sF(e){return rF(iF(e))}function lF(e){return e.replace(/start|end/g,(e=>ZM[e]))}const cF=["left","right"],uF=["right","left"],dF=["top","bottom"],pF=["bottom","top"];function hF(e,t,n,r){const a=nF(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?uF:cF:t?cF:uF;case"left":case"right":return t?dF:pF;default:return[]}}(tF(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(lF)))),o}function fF(e){return e.replace(/left|right|bottom|top/g,(e=>QM[e]))}function mF(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gF(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function yF(e,t,n){let{reference:r,floating:a}=e;const o=iF(t),i=sF(t),s=aF(i),l=tF(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(nF(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function bF(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=eF(t,e),f=mF(h),m=s[p?"floating"===d?"reference":"floating":d],g=gF(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=gF(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function vF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kF(e){return GM.some((t=>e[t]>=0))}const wF=new Set(["left","top"]);function xF(){return"undefined"!=typeof window}function EF(e){return TF(e)?(e.nodeName||"").toLowerCase():"#document"}function _F(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function SF(e){var t;return null==(t=(TF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function TF(e){return!!xF()&&(e instanceof Node||e instanceof _F(e).Node)}function CF(e){return!!xF()&&(e instanceof Element||e instanceof _F(e).Element)}function AF(e){return!!xF()&&(e instanceof HTMLElement||e instanceof _F(e).HTMLElement)}function NF(e){return!(!xF()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _F(e).ShadowRoot)}const IF=new Set(["inline","contents"]);function RF(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=$F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!IF.has(a)}const OF=new Set(["table","td","th"]);function PF(e){return OF.has(EF(e))}const LF=[":popover-open",":modal"];function DF(e){return LF.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}const MF=["transform","translate","scale","rotate","perspective"],FF=["transform","translate","scale","rotate","perspective","filter"],jF=["paint","layout","strict","content"];function BF(e){const t=HF(),n=CF(e)?$F(e):e;return MF.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||FF.some((e=>(n.willChange||"").includes(e)))||jF.some((e=>(n.contain||"").includes(e)))}function HF(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const zF=new Set(["html","body","#document"]);function UF(e){return zF.has(EF(e))}function $F(e){return _F(e).getComputedStyle(e)}function VF(e){return CF(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function GF(e){if("html"===EF(e))return e;const t=e.assignedSlot||e.parentNode||NF(e)&&e.host||SF(e);return NF(t)?t.host:t}function WF(e){const t=GF(e);return UF(t)?e.ownerDocument?e.ownerDocument.body:e.body:AF(t)&&RF(t)?t:WF(t)}function qF(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=WF(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=_F(a);if(o){const e=YF(i);return t.concat(i,i.visualViewport||[],RF(a)?a:[],e&&n?qF(e):[])}return t.concat(a,qF(a,[],n))}function YF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function KF(e){const t=$F(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=AF(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=YM(n)!==o||YM(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function XF(e){return CF(e)?e:e.contextElement}function QF(e){const t=XF(e);if(!AF(t))return XM(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=KF(t);let i=(o?YM(n.width):n.width)/r,s=(o?YM(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ZF=XM(0);function JF(e){const t=_F(e);return HF()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ZF}function ej(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=XF(e);let i=XM(1);t&&(r?CF(r)&&(i=QF(r)):i=QF(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==_F(e))&&t}(o,n,r)?JF(o):XM(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=_F(o),t=r&&CF(r)?_F(r):r;let n=e,a=YF(n);for(;a&&r&&t!==n;){const e=QF(a),t=a.getBoundingClientRect(),r=$F(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=_F(a),a=YF(n)}}return gF({width:u,height:d,x:l,y:c})}function tj(e,t){const n=VF(e).scrollLeft;return t?t.left+n:ej(SF(e)).left+n}function nj(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tj(e,n),y:n.top+t.scrollTop}}const rj=new Set(["absolute","fixed"]);function aj(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=_F(e),r=SF(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=HF();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const c=tj(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=SF(e),n=VF(e),r=e.ownerDocument.body,a=qM(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qM(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+tj(e);const s=-n.scrollTop;return"rtl"===$F(r).direction&&(i+=qM(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(SF(e));else if(CF(t))r=function(e,t){const n=ej(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=AF(e)?QF(e):XM(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=JF(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gF(r)}function oj(e,t){const n=GF(e);return!(n===t||!CF(n)||UF(n))&&("fixed"===$F(n).position||oj(n,t))}function ij(e,t,n){const r=AF(t),a=SF(t),o="fixed"===n,i=ej(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=XM(0);function c(){l.x=tj(a)}if(r||!r&&!o)if(("body"!==EF(t)||RF(a))&&(s=VF(t)),r){const e=ej(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();o&&!r&&a&&c();const u=!a||r||o?XM(0):nj(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function sj(e){return"static"===$F(e).position}function lj(e,t){if(!AF(e)||"fixed"===$F(e).position)return null;if(t)return t(e);let n=e.offsetParent;return SF(e)===n&&(n=n.ownerDocument.body),n}function cj(e,t){const n=_F(e);if(DF(e))return n;if(!AF(e)){let t=GF(e);for(;t&&!UF(t);){if(CF(t)&&!sj(t))return t;t=GF(t)}return n}let r=lj(e,t);for(;r&&PF(r)&&sj(r);)r=lj(r,t);return r&&UF(r)&&sj(r)&&!BF(r)?n:r||function(e){let t=GF(e);for(;AF(t)&&!UF(t);){if(BF(t))return t;if(DF(t))return null;t=GF(t)}return null}(e)||n}const uj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=SF(r),s=!!t&&DF(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=XM(1);const u=XM(0),d=AF(r);if((d||!d&&!o)&&(("body"!==EF(r)||RF(i))&&(l=VF(r)),AF(r))){const e=ej(r);c=QF(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?XM(0):nj(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:SF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?DF(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=qF(e,[],!1).filter((e=>CF(e)&&"body"!==EF(e))),a=null;const o="fixed"===$F(e).position;let i=o?GF(e):e;for(;CF(i)&&!UF(i);){const t=$F(i),n=BF(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&rj.has(a.position)||RF(i)&&!n&&oj(e,i))?r=r.filter((e=>e!==i)):a=t,i=GF(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=aj(t,n,a);return e.top=qM(r.top,e.top),e.right=WM(r.right,e.right),e.bottom=WM(r.bottom,e.bottom),e.left=qM(r.left,e.left),e}),aj(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:cj,getElementRects:async function(e){const t=this.getOffsetParent||cj,n=this.getDimensions,r=await n(e.floating);return{reference:ij(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=KF(e);return{width:t,height:n}},getScale:QF,isElement:CF,isRTL:function(e){return"rtl"===$F(e).direction}};function dj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=XF(e),u=a||o?[...c?qF(c):[],...qF(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=SF(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-KM(d)+"px "+-KM(a.clientWidth-(u+p))+"px "+-KM(a.clientHeight-(d+h))+"px "+-KM(u)+"px",threshold:qM(0,WM(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||dj(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(y){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?ej(e):null;return l&&function t(){const r=ej(e);m&&!dj(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const hj=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=tF(n),s=nF(n),l="y"===iF(n),c=wF.has(i)?-1:1,u=o&&l?-1:1,d=eF(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},fj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eF(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),p=iF(tF(a)),h=rF(p);let f=u[h],m=u[p];if(i){const e="y"===h?"bottom":"right";f=JM(f+d["y"===h?"top":"left"],f,f-d[e])}if(s){const e="y"===p?"bottom":"right";m=JM(m+d["y"===p?"top":"left"],m,m-d[e])}const g=l.fn({...t,[h]:f,[p]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[p]:s}}}}}},mj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=eF(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=tF(a),b=iF(s),v=tF(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[fF(s)]:function(e){const t=fF(e);return[lF(e),t,lF(t)]}(s)),x="none"!==f;!p&&x&&w.push(...hF(s,m,f,k));const E=[s,...w],_=await l.detectOverflow(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=nF(e),a=sF(e),o=aF(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=fF(i)),[i,fF(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&b!==iF(t))||T.every((e=>iF(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=iF(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},gj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=eF(e,t),u=await i.detectOverflow(t,c),d=tF(a),p=nF(a),h="y"===iF(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=WM(m-u[g],b),w=WM(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=qM(u.left,0),t=qM(u.right,0),n=qM(u.top,0),r=qM(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:qM(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:qM(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},yj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=eF(e,t);switch(a){case"referenceHidden":{const e=vF(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:kF(e)}}}case"escaped":{const e=vF(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:kF(e)}}}default:return{}}}}},bj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=eF(e,t)||{};if(null==c)return{};const d=mF(u),p={x:n,y:r},h=sF(a),f=aF(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=WM(d[y],S),C=WM(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=JM(A,I,N),O=!l.arrow&&null!=nF(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),vj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=eF(e,t),u={x:n,y:r},d=iF(a),p=rF(d);let h=u[p],f=u[d];const m=eF(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=wF.has(tF(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},kj=(e,t,n)=>{const r=new Map,a={platform:uj,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=yF(c,r,l),p=r,h={},f=0;for(let g=0;g<s.length;g++){var m;const{name:n,fn:o}=s[g],{x:y,y:b,data:v,reset:k}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:bF},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=b?b:d,h={...h,[n]:{...h[n],...v}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(p=k.placement),k.rects&&(c=!0===k.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:u,y:d}=yF(c,p,l))),g=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};function wj(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const a={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...a,toJSON:()=>a}}function xj(e,t){return{contextElement:UD(e)?e:null==e?void 0:e.contextElement,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return wj();const{x:t,y:n,width:r,height:a}=e;return wj(t,n,r,a)}(r):n.getBoundingClientRect()}}}var Ej=e=>({variable:e,reference:`var(${e})`}),_j={arrowSize:Ej("--arrow-size"),arrowSizeHalf:Ej("--arrow-size-half"),arrowBg:Ej("--arrow-background"),transformOrigin:Ej("--transform-origin"),arrowOffset:Ej("--arrow-offset")};function Sj(e,t){return{name:"transformOrigin",fn(n){var r,a,o,i;const{elements:s,middlewareData:l,placement:c,rects:u,y:d}=n,p=c.split("-")[0],h=(e=>"top"===e||"bottom"===e?"y":"x")(p),f=(null==(r=l.arrow)?void 0:r.x)||0,m=(null==(a=l.arrow)?void 0:a.y)||0,g=(null==t?void 0:t.clientWidth)||0,y=(null==t?void 0:t.clientHeight)||0,b=f+g/2,v=m+y/2,k=Math.abs((null==(o=l.shift)?void 0:o.y)||0),w=u.reference.height/2,x=y/2,E=(null==(i=e.offset)?void 0:i.mainAxis)??e.gutter,_="number"==typeof E?E+x:E??x,S=k>_,T={top:`${b}px calc(100% + ${_}px)`,bottom:`${b}px ${-_}px`,left:`calc(100% + ${_}px) ${v}px`,right:`${-_}px ${v}px`}[p],C=`${b}px ${u.reference.y+w-d}px`,A=Boolean(e.overlap)&&"y"===h&&S;return s.floating.style.setProperty(_j.transformOrigin.variable,A?C:T),{data:{transformOrigin:A?C:T}}}}}var Tj={name:"rects",fn:({rects:e})=>({data:e})},Cj=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:a}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=a?`${a}px`:"",[o]:`calc(100% + ${_j.arrowOffset.reference})`}),{}}}};var Aj={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Nj(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ij(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function Rj(e,t,n){const r=e||t.createElement("div");return bj({element:r,padding:n.arrowPadding})}function Oj(e,t){if(null!=(t.offset??t.gutter))return hj((({placement:n})=>{var r,a;const o=((null==e?void 0:e.clientHeight)||0)/2,i=(null==(r=t.offset)?void 0:r.mainAxis)??t.gutter,s="number"==typeof i?i+o:i??o,{hasAlign:l}=function(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),c=l?void 0:t.shift;return TD({crossAxis:(null==(a=t.offset)?void 0:a.crossAxis)??c,mainAxis:s,alignmentAxis:t.shift})}))}function Pj(e){if(!e.flip)return;const t=Ij(e.boundary);return mj({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function Lj(e){if(!e.slide&&!e.overlap)return;const t=Ij(e.boundary);return fj({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:vj()})}function Dj(e){return gj({padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){const a=e.floating,o=Math.round(t.reference.width),i=Math.round(t.reference.height);r=Math.floor(r),n=Math.floor(n),a.style.setProperty("--reference-width",`${o}px`),a.style.setProperty("--reference-height",`${i}px`),a.style.setProperty("--available-width",`${r}px`),a.style.setProperty("--available-height",`${n}px`)}})}function Mj(e){if(e.hideWhenDetached)return yj({strategy:"referenceHidden",boundary:Ij(e.boundary)??"clippingAncestors"})}function Fj(e,t,n={}){const{defer:r,...a}=n,o=r?LM:e=>e(),i=[];return i.push(o((()=>{const n="function"==typeof e?e():e,r="function"==typeof t?t():t;i.push(function(e,t,n={}){var r;const a=xj((null==(r=n.getAnchorElement)?void 0:r.call(n))??e,n.getAnchorRect);if(!t||!a)return;const o=Object.assign({},Aj,n),i=t.querySelector("[data-part=arrow]"),s=[Oj(i,o),Pj(o),Lj(o),Rj(i,t.ownerDocument,o),Cj(i),Sj({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Dj(o),Mj(o),Tj],{placement:l,strategy:c,onComplete:u,onPositioned:d}=o,p=async()=>{var e;if(!a||!t)return;const n=await kj(a,t,{placement:l,middleware:s,strategy:c});null==u||u(n),null==d||d({placed:!0});const r=QD(t),i=Nj(r,n.x),p=Nj(r,n.y);t.style.setProperty("--x",`${i}px`),t.style.setProperty("--y",`${p}px`),o.hideWhenDetached&&((null==(e=n.middlewareData.hide)?void 0:e.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const h=t.firstElementChild;if(h){const e=nM(h);t.style.setProperty("--z-index",e.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:p,floatingElement:t}),null==d||d({placed:!0})):await p()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(o.listeners),m=o.listeners?pj(a,t,h,f):ED;return h(),()=>{null==m||m(),null==d||d({placed:!1})}}(n,r,a))}))),()=>{i.forEach((e=>null==e?void 0:e()))}}var jj={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};var Bj=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Bj||{}),Hj="__init__";var zj="pointerdown.outside",Uj="focus.outside";function $j(e){for(const t of e)if(UD(t)&&NM(t))return!0;return!1}var Vj=e=>"clientY"in e;function Gj(e,t){if(!t||!Vj(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,a=t.scrollWidth>t.clientWidth,o=a&&e.clientY>t.offsetTop+t.clientHeight;return!!function(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(a?16:0)},{x:e.clientX,y:e.clientY})&&(r||o)}function Wj(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:o,defer:i,followControlledElements:s=!0}=t;if(!e)return;const l=XD(e),c=QD(e),u=function(e){const t={each(t){var n;for(let r=0;r<(null==(n=e.frames)?void 0:n.length);r+=1){const n=e.frames[r];n&&t(n)}},addEventListener:(e,n,r)=>(t.each((t=>{try{t.document.addEventListener(e,n,r)}catch{}})),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each((t=>{try{t.document.removeEventListener(e,n,r)}catch{}}))}};return t}(c),d=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{null==t||t.addEventListener(e,n,r)}catch{}return()=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}}}(c);function p(t,r){if(!UD(r))return!1;if(!r.isConnected)return!1;if(KD(e,r))return!1;if(function(e,t){if(!Vj(t)||!e)return!1;const n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;if(s&&iM(e,r))return!1;const a=l.querySelector(`[aria-controls="${e.id}"]`);if(a){if(Gj(t,jM(a)))return!1}return!Gj(t,jM(e))&&!(null==n?void 0:n(r))}const h=new Set,f=GD(null==e?void 0:e.getRootNode());function m(t){function n(n){var r;const s=i&&!pM()?LM:e=>e(),l=n??t,c=(null==(r=null==l?void 0:l.composedPath)?void 0:r.call(l))??[null==l?void 0:l.target];s((()=>{const n=f?c[0]:fM(t);if(e&&p(t,n)){if(a||o){const t=_D(a,o);e.addEventListener(zj,t,{once:!0})}Yj(e,zj,{bubbles:!1,cancelable:!0,detail:{originalEvent:l,contextmenu:yM(l),focusable:$j(c),target:n}})}}))}"touch"===t.pointerType?(h.forEach((e=>e())),h.add(wM(l,"click",n,{once:!0})),h.add(d.addEventListener("click",n,{once:!0})),h.add(u.addEventListener("click",n,{once:!0}))):n()}const g=new Set,y=setTimeout((()=>{g.add(wM(l,"pointerdown",m,!0)),g.add(d.addEventListener("pointerdown",m,!0)),g.add(u.addEventListener("pointerdown",m,!0))}),0);function b(t){(i?LM:e=>e())((()=>{var n;const a=(null==(n=null==t?void 0:t.composedPath)?void 0:n.call(t))??[null==t?void 0:t.target],i=f?a[0]:fM(t);if(e&&p(t,i)){if(r||o){const t=_D(r,o);e.addEventListener(Uj,t,{once:!0})}Yj(e,Uj,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:NM(i),target:i}})}}))}return pM()||(g.add(wM(l,"focusin",b,!0)),g.add(d.addEventListener("focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0))),()=>{clearTimeout(y),h.forEach((e=>e())),g.forEach((e=>e()))}}function qj(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(Wj(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function Yj(e,t,n){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function Kj(e,t){return wM(XD(e),"keydown",(e=>{"Escape"===e.key&&(e.isComposing||null==t||t(e))}),{capture:!0})}var Xj,Qj="layer:request-dismiss",Zj={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter((e=>e.pointerBlocking))},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var t;return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(null==(t=this.topMostPointerBlockingLayer())?void 0:t.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return(null==t?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter((t=>t.type===e))},getNestedLayersByType(e,t){const n=this.indexOf(e);return-1===n?[]:this.layers.slice(n+1).filter((e=>e.type===t))},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find((e=>e.type===t))},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!this.getNestedLayers(e).some((e=>KD(e.node,t)))||this.recentlyRemoved.size>0},isInBranch(e){return Array.from(this.branches).some((t=>KD(t,e)))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);if(!(t<0)){if(this.recentlyRemoved.add(e),DM((()=>this.recentlyRemoved.delete(e))),t<this.count()-1){this.getNestedLayers(e).forEach((t=>Zj.dismiss(t.node,e)))}this.layers.splice(t,1),this.syncLayers()}},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach(((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested");this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)}))},indexOf(e){return this.layers.findIndex((t=>t.node===e))},dismiss(e,t){const n=this.indexOf(e);if(-1===n)return;const r=this.layers[n];var a,o;a=Qj,o=e=>{var t;null==(t=r.requestDismiss)||t.call(r,e),e.defaultPrevented||null==r||r.dismiss()},e.addEventListener(a,o,{once:!0}),function(e,t,n){const r=e.ownerDocument.defaultView||window,a=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});e.dispatchEvent(a)}(e,Qj,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Jj(){Zj.layers.forEach((({node:e})=>{e.style.pointerEvents=Zj.isBelowPointerBlockingLayer(e)?"none":"auto"}))}function eB(e,t){const n=XD(e),r=[];return Zj.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Xj=document.body.style.pointerEvents,queueMicrotask((()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")}))),null==t||t.forEach((e=>{const[t,n]=VM((()=>{const t=e();return UD(t)?t:null}),{timeout:1e3});t.then((e=>r.push($M(e,{pointerEvents:"auto"})))),r.push(n)})),()=>{Zj.hasPointerBlockingLayer()||(queueMicrotask((()=>{n.body.style.pointerEvents=Xj,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")})),r.forEach((e=>e())))}}function tB(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n=gD(e)?e():e;a.push(function(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e)return void CD("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:r,onRequestDismiss:a,pointerBlocking:o,exclude:i,debug:s,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:o,requestDismiss:a};Zj.add(c),Jj();const u=[o?eB(e,t.persistentElements):void 0,Kj(e,(function(n){var a;Zj.isTopMost(e)&&(null==(a=t.onEscapeKeyDown)||a.call(t,n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))})),qj(e,{exclude:function(n){var r;if(!e)return!1;const a="function"==typeof i?i():i,o=Array.isArray(a)?a:[a],s=null==(r=t.persistentElements)?void 0:r.map((e=>e())).filter(UD);return s&&o.push(...s),o.some((e=>KD(e,n)))||Zj.isInNestedLayer(e,n)},onFocusOutside:function(e){var n,a;const o=fM(e.detail.originalEvent);Zj.isInBranch(o)||(null==(n=t.onFocusOutside)||n.call(t,e),null==(a=t.onInteractOutside)||a.call(t,e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),null==r||r()))},onPointerDownOutside:function(n){var a,o;const i=fM(n.detail.originalEvent);Zj.isBelowPointerBlockingLayer(e)||Zj.isInBranch(i)||(null==(a=t.onPointerDownOutside)||a.call(t,n),null==(o=t.onInteractOutside)||o.call(t,n),n.defaultPrevented||(s&&console.log("onPointerDownOutside:",n.detail.originalEvent),null==r||r()))},defer:t.defer})];return()=>{Zj.remove(e),Jj(),function(e){e.style.pointerEvents=""}(e),u.forEach((e=>null==e?void 0:e()))}}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}var nB=()=>e=>Array.from(new Set(e)),rB=sD("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger").build(),aB=e=>new OD(e);aB.empty=()=>new OD({items:[]});var oB=e=>{var t;return(null==(t=e.ids)?void 0:t.label)??`combobox:${e.id}:label`},iB=e=>{var t;return(null==(t=e.ids)?void 0:t.control)??`combobox:${e.id}:control`},sB=e=>{var t;return(null==(t=e.ids)?void 0:t.input)??`combobox:${e.id}:input`},lB=e=>{var t;return(null==(t=e.ids)?void 0:t.content)??`combobox:${e.id}:content`},cB=e=>{var t;return(null==(t=e.ids)?void 0:t.positioner)??`combobox:${e.id}:popper`},uB=e=>{var t;return(null==(t=e.ids)?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},dB=e=>{var t;return(null==(t=e.ids)?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},pB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroup)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup:${t}`},hB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroupLabel)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup-label:${t}`},fB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.item)?void 0:r.call(n,t))??`combobox:${e.id}:option:${t}`},mB=e=>e.getById(lB(e)),gB=e=>e.getById(sB(e)),yB=e=>e.getById(cB(e)),bB=e=>e.getById(iB(e)),vB=e=>e.getById(uB(e)),kB=(e,t)=>{if(null==t)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return function(e,t){return(null==e?void 0:e.querySelector(t))??null}(mB(e),n)},wB=e=>{const t=gB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})};function xB(e,t){const{context:n,prop:r,state:a,send:o,scope:i,computed:s,event:l}=e,c=r("translations"),u=r("collection"),d=!!r("disabled"),p=s("isInteractive"),h=!!r("invalid"),f=!!r("required"),m=!!r("readOnly"),g=a.hasTag("open"),y=a.hasTag("focused"),b=r("composite"),v=n.get("highlightedValue"),k=function(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:a="absolute"}=e;return{arrow:{position:"absolute",width:_j.arrowSize.reference,height:_j.arrowSize.reference,[_j.arrowSizeHalf.variable]:`calc(${_j.arrowSize.reference} / 2)`,[_j.arrowOffset.variable]:`calc(${_j.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?jj[t.split("-")[0]]:void 0,background:_j.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:a,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}({...r("positioning"),placement:n.get("currentPlacement")});function w(e){const t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return AD(r,(()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`)),{value:r,disabled:Boolean(t||t),highlighted:v===r,selected:n.get("value").includes(r)}}return{focused:y,open:g,inputValue:n.get("inputValue"),highlightedValue:v,highlightedItem:n.get("highlightedItem"),value:n.get("value"),valueAsString:s("valueAsString"),hasSelectedItems:s("hasSelectedItems"),selectedItems:n.get("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){o({type:"SELECTED_ITEMS.SYNC"})},reposition(e={}){o({type:"POSITIONING.SET",options:e})},setHighlightValue(e){o({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){o({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(e){o({type:"ITEM.SELECT",value:e})},setValue(e){o({type:"VALUE.SET",value:e})},setInputValue(e,t="script"){o({type:"INPUT_VALUE.SET",value:e,src:t})},clearValue(e){o(null!=e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},focus(){var e;null==(e=gB(i))||e.focus()},setOpen(e,t="script"){a.hasTag("open")!==e&&o({type:e?"OPEN":"CLOSE",src:t})},getRootProps(){return t.element({...rB.root.attrs,dir:r("dir"),id:(e=i,(null==(n=e.ids)?void 0:n.root)??`combobox:${e.id}`),"data-invalid":HD(h),"data-readonly":HD(m)});var e,n},getLabelProps:()=>t.label({...rB.label.attrs,dir:r("dir"),htmlFor:sB(i),id:oB(i),"data-readonly":HD(m),"data-disabled":HD(d),"data-invalid":HD(h),"data-required":HD(f),"data-focus":HD(y),onClick(e){var t;b||(e.preventDefault(),null==(t=vB(i))||t.focus({preventScroll:!0}))}}),getControlProps:()=>t.element({...rB.control.attrs,dir:r("dir"),id:iB(i),"data-state":g?"open":"closed","data-focus":HD(y),"data-disabled":HD(d),"data-invalid":HD(h)}),getPositionerProps:()=>t.element({...rB.positioner.attrs,dir:r("dir"),id:cB(i),style:k.floating}),getInputProps:()=>t.input({...rB.input.attrs,dir:r("dir"),"aria-invalid":zD(h),"data-invalid":HD(h),"data-autofocus":HD(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:m,placeholder:r("placeholder"),id:sB(i),type:"text",role:"combobox",defaultValue:n.get("inputValue"),"aria-autocomplete":s("autoComplete")?"both":"list","aria-controls":lB(i),"aria-expanded":g,"data-state":g?"open":"closed","aria-activedescendant":v?fB(i,v):void 0,onClick(e){e.defaultPrevented||r("openOnClick")&&p&&o({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||o({type:"INPUT.FOCUS"})},onBlur(){d||o({type:"INPUT.BLUR"})},onChange(e){o({type:"INPUT.CHANGE",value:e.currentTarget.value,src:"input-change"})},onKeyDown(e){if(e.defaultPrevented)return;if(!p)return;if(e.ctrlKey||e.shiftKey||function(e){return function(e){return e.nativeEvent??e}(e).isComposing||229===e.keyCode}(e))return;const t=r("openOnKeyPress"),n=e.ctrlKey||e.metaKey||e.shiftKey,a=!0,l={ArrowDown(e){(t||g)&&(o({type:e.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:a,src:"arrow-key"}),e.preventDefault())},ArrowUp(){(t||g)&&(o({type:e.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:a,src:"arrow-key"}),e.preventDefault())},Home(e){n||(o({type:"INPUT.HOME",keypress:a}),g&&e.preventDefault())},End(e){n||(o({type:"INPUT.END",keypress:a}),g&&e.preventDefault())},Enter(e){var t;o({type:"INPUT.ENTER",keypress:a,src:"item-select"});const n=s("isCustomValue")&&r("allowCustomValue"),l=null!=v,c=r("alwaysSubmitOnEnter");if(g&&!n&&!c&&l&&e.preventDefault(),null==v)return;const u=kB(i,v);var d;(null==(d=u)?void 0:d.matches("a[href]"))&&(null==(t=r("navigate"))||t({value:v,node:u,href:u.href}))},Escape(){o({type:"INPUT.ESCAPE",keypress:a,src:"escape-key"}),e.preventDefault()}}[kM(e,{dir:r("dir")})];null==l||l(e)}}),getTriggerProps:(e={})=>t.button({...rB.trigger.attrs,dir:r("dir"),id:uB(i),"aria-haspopup":b?"listbox":"dialog",type:"button",tabIndex:e.focusable?void 0:-1,"aria-label":c.triggerLabel,"aria-expanded":g,"data-state":g?"open":"closed","aria-controls":g?lB(i):void 0,disabled:d,"data-invalid":HD(h),"data-focusable":HD(e.focusable),"data-readonly":HD(m),"data-disabled":HD(d),onFocus(){e.focusable&&o({type:"INPUT.FOCUS",src:"trigger"})},onClick(e){e.defaultPrevented||p&&gM(e)&&o({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(e){p&&"touch"!==e.pointerType&&gM(e)&&(e.preventDefault(),queueMicrotask((()=>{var e;null==(e=gB(i))||e.focus({preventScroll:!0})})))},onKeyDown(e){if(e.defaultPrevented)return;if(b)return;const t={ArrowDown(){o({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){o({type:"INPUT.ARROW_UP",src:"arrow-key"})}}[kM(e,{dir:r("dir")})];t&&(t(e),e.preventDefault())}}),getContentProps:()=>t.element({...rB.content.attrs,dir:r("dir"),id:lB(i),role:b?"listbox":"dialog",tabIndex:-1,hidden:!g,"data-state":g?"open":"closed","data-placement":n.get("currentPlacement"),"aria-labelledby":oB(i),"aria-multiselectable":!(!r("multiple")||!b)||void 0,"data-empty":HD(0===u.size),onPointerDown(e){gM(e)&&e.preventDefault()}}),getListProps:()=>t.element({...rB.list.attrs,role:b?void 0:"listbox","data-empty":HD(0===u.size),"aria-labelledby":oB(i),"aria-multiselectable":!(!r("multiple")||b)||void 0}),getClearTriggerProps:()=>t.button({...rB.clearTrigger.attrs,dir:r("dir"),id:dB(i),type:"button",tabIndex:-1,disabled:d,"data-invalid":HD(h),"aria-label":c.clearTriggerLabel,"aria-controls":sB(i),hidden:!n.get("value").length,onPointerDown(e){gM(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||p&&o({type:"VALUE.CLEAR",src:"clear-trigger"})}}),getItemState:w,getItemProps(e){const n=w(e),a=n.value;return t.element({...rB.item.attrs,dir:r("dir"),id:fB(i,a),role:"option",tabIndex:-1,"data-highlighted":HD(n.highlighted),"data-state":n.selected?"checked":"unchecked","aria-selected":zD(n.highlighted),"aria-disabled":zD(n.disabled),"data-disabled":HD(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||o({type:"ITEM.POINTER_MOVE",value:a})},onPointerLeave(){if(e.persistFocus)return;if(n.disabled)return;const t=l.previous();(null==t?void 0:t.type.includes("POINTER"))&&o({type:"ITEM.POINTER_LEAVE",value:a})},onClick(e){(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)})(e)||mM(e)||yM(e)||n.disabled||o({type:"ITEM.CLICK",src:"item-select",value:a})}})},getItemTextProps(e){const n=w(e);return t.element({...rB.itemText.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked","data-disabled":HD(n.disabled),"data-highlighted":HD(n.highlighted)})},getItemIndicatorProps(e){const n=w(e);return t.element({"aria-hidden":!0,...rB.itemIndicator.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked",hidden:!n.selected})},getItemGroupProps(e){const{id:n}=e;return t.element({...rB.itemGroup.attrs,dir:r("dir"),id:pB(i,n),"aria-labelledby":hB(i,n),"data-empty":HD(0===u.size),role:"group"})},getItemGroupLabelProps(e){const{htmlFor:n}=e;return t.element({...rB.itemGroupLabel.attrs,dir:r("dir"),id:hB(i,n),role:"presentation"})}}}var{guards:EB,createMachine:_B,choose:SB}={guards:{and:(...e)=>function(t){return e.every((e=>t.guard(e)))},or:(...e)=>function(t){return e.some((e=>t.guard(e)))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){var n;return null==(n=t(e))?void 0:n.actions}},{and:TB,not:CB}=EB,AB=_B({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){FM(e)},collection:aB.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n,getEvent:r})=>({currentPlacement:t((()=>({defaultValue:void 0}))),value:t((()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:hD,hash:e=>e.join(","),onChange(t){var r;const a=n(),o=a.get("selectedItems"),i=e("collection"),s=t.map((e=>o.find((t=>i.getItemValue(t)===e))||i.find(e)));a.set("selectedItems",s),null==(r=e("onValueChange"))||r({value:t,items:s})}}))),highlightedValue:t((()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){var n;const r=e("collection").find(t);null==(n=e("onHighlightChange"))||n({highlightedValue:t,highlightedItem:r})}}))),inputValue:t((()=>{let t=e("inputValue")||e("defaultInputValue");const n=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){const r=e("collection").stringifyMany(n);t=SD(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){var n;const a=r(),o=(a.previousEvent||a).src;null==(n=e("onInputValueChange"))||n({inputValue:t,reason:o})}}})),highlightedItem:t((()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}})),selectedItems:t((()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}}))}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:a}){n([()=>e.hash("value")],(()=>{r(["syncSelectedItems"])})),n([()=>e.get("inputValue")],(()=>{r(["syncInputValue"])})),n([()=>e.get("highlightedValue")],(()=>{r(["syncHighlightedItem","autofillInputValue"])})),n([()=>t("open")],(()=>{r(["toggleVisibility"])})),n([()=>t("collection").toString()],(()=>{a({type:"CHILDREN_CHANGE"})}))},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:SB([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:TB("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:TB("isCustomValue",CB("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:TB("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:TB("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:TB("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:TB("isOpenControlled","isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:TB("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:TB("isOpenControlled","isCustomValue",CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:TB("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:TB("isOpenControlled","isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:TB("isOpenControlled","isCustomValue",CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return!0===(r=n)||!1===r?n:!!(null==n?void 0:n({inputValue:t.get("inputValue")}));var r},restoreFocus:({event:e})=>{var t;const n=e.restoreFocus??(null==(t=e.previousEvent)?void 0:t.restoreFocus);return null==n||!!n},isChangeEvent:({event:e})=>{var t;return"INPUT.CHANGE"===(null==(t=e.previousEvent)?void 0:t.type)},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(t("disableLayer"))return;return tB((()=>mB(n)),{type:"listbox",defer:!0,exclude:()=>{return[gB(n),vB(n),(e=n,e.getById(dB(e)))];var e},onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),Fj((()=>bB(n)||vB(n)),(()=>yB(n)),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const a=gB(n);let o=[];const i=a=>{const i=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(i||!s)return;const l=mB(n),c=t("scrollToIndexFn");if(c){return void c({index:t("collection").indexOf(s),immediate:a,getElement:()=>kB(n,s)})}const u=kB(n,s),d=LM((()=>{UM(u,{rootEl:l,block:"nearest"})}));o.push(d)},s=LM((()=>i(!0)));o.push(s);const l=MM(a,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return o.push(l),()=>{o.forEach((e=>e()))}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Fj((()=>bB(n)),(()=>yB(n)),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var t;const{context:n,prop:r}=e,a=r("collection"),o=n.get("highlightedValue");if(!o||!a.has(o))return;const i=r("multiple")?dD(n.get("value"),o):[o];null==(t=r("onSelect"))||t({value:i,itemValue:o}),n.set("value",i);const s=SD(r("selectionBehavior"),{preserve:n.get("inputValue"),replace:a.stringifyMany(i),clear:""});n.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){DM((()=>{const r=e.get("highlightedValue");if(null==r)return;const a=kB(n,r),o=mB(n),i=t("scrollToIndexFn");if(i){i({index:t("collection").indexOf(r),immediate:!0,getElement:()=>kB(n,r)})}else UM(a,{rootEl:o,block:"nearest"})}))},selectItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{var e;const r=a("multiple")?dD(t.get("value"),n.value):[n.value];null==(e=a("onSelect"))||e({value:r,itemValue:n.value}),t.set("value",r);const o=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r),clear:""});t.set("inputValue",o)}))},clearItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{const e=uD(t.get("value"),n.value);t.set("value",e);const r=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",r)}))},setInitialFocus({scope:e}){LM((()=>{wB(e)}))},setFinalFocus({scope:e}){LM((()=>{const t=vB(e);null==(null==t?void 0:t.dataset.focusable)?wB(e):(e=>{const t=vB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})})(e)}))},syncInputValue({context:e,scope:t,event:n}){const r=gB(t);r&&(r.value=e.get("inputValue"),queueMicrotask((()=>{"INPUT.CHANGE"!==n.current().type&&function(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;const t=e.value.length;e.setSelectionRange(t,t)}catch{}}(r)})))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=SD(t("selectionBehavior"),{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",r)},setValue(e){const{context:t,flush:n,event:r,prop:a}=e;n((()=>{t.set("value",r.value);const e=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)}))},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n((()=>{t.set("value",[]);const e=SD(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)}))},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>kB(t,r)})}else{const e=mB(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){var r;const a=NB(t);null==(r=e("onOpenChange"))||r({open:!0,reason:a,value:n.get("value")})},invokeOnClose({prop:e,event:t,context:n}){var r;const a=NB(t);null==(r=e("onOpenChange"))||r({open:!1,reason:a,value:n.get("value")})},highlightFirstItem({context:e,prop:t,scope:n}){(mB(n)?queueMicrotask:LM)((()=>{const n=t("collection").firstValue;n&&e.set("highlightedValue",n)}))},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(mB(n)?queueMicrotask:LM)((()=>{const n=t("collection").lastValue;n&&e.set("highlightedValue",n)}))},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getNextValue(r),!n&&t("loopFocus")&&(n=a.firstValue)):n=a.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getPreviousValue(r),!n&&t("loopFocus")&&(n=a.lastValue)):n=a.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){LM((()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)}))},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){LM((()=>{let r=null;r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,r&&e.set("highlightedValue",r)}))},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){LM((()=>{const r=t("collection");let a=null;a=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue,a&&e.set("highlightedValue",a)}))},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:a}){const o=gB(a),i=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const s=i.stringify(e.get("highlightedValue"));LM((()=>{o.value=s||e.get("inputValue")}))},syncSelectedItems(e){queueMicrotask((()=>{const{context:t,prop:n}=e,r=n("collection"),a=t.get("value"),o=a.map((e=>t.get("selectedItems").find((t=>r.getItemValue(t)===e))||r.find(e)));t.set("selectedItems",o);const i=SD(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(a),clear:""});t.set("inputValue",i)}))},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function NB(e){return(e.previousEvent||e).src}nB()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),nB()(["htmlFor"]),nB()(["id"]),nB()(["item","persistFocus"]);var IB=void 0!==globalThis.document?K.useLayoutEffect:K.useEffect;function RB(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=K.useState(t),[a,o]=K.useState(r),i=void 0!==e().value,s=K.useRef(a);s.current=i?e().value:a;const l=K.useRef(s.current);IB((()=>{l.current=s.current}),[a,e().value]);return{initial:r,ref:s,get:function(){return i?e().value:a},set(t){(e().sync?se.flushSync:xD)((()=>(t=>{var r,a;const s=l.current,c=gD(t)?t(s):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:s}),i||o(c),n(c,s)||null==(a=(r=e()).onChange)||a.call(r,c,s)})(t)))},invoke(t,n){var r,a;null==(a=(r=e()).onChange)||a.call(r,t,n)},hash(t){var n,r;return(null==(r=(n=e()).hash)?void 0:r.call(n,t))??String(t)}}}RB.cleanup=e=>{K.useEffect((()=>e),[])},RB.ref=e=>{const t=K.useRef(e);return{get:()=>t.current,set:e=>{t.current=e}}};var OB=(e,t)=>{const n=K.useRef(!1),r=K.useRef(!1);K.useEffect((()=>{if(n.current&&r.current)return t();r.current=!0}),[...(e??[]).map((e=>"function"==typeof e?e():e))]),K.useEffect((()=>(n.current=!0,()=>{n.current=!1})),[])};function PB(e,t={}){var n,r,a,o;const i=K.useMemo((()=>{const{id:e,ids:n,getRootNode:r}=t;return function(e){const t=()=>{var t;return(null==(t=e.getRootNode)?void 0:t.call(e))??document},n=()=>XD(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>ZD(t()),isActiveElement:WD,getById:e=>t().getElementById(e)}}({id:e,ids:n,getRootNode:r})}),[t]),s=(...t)=>{e.debug&&console.log(...t)},l=function(e){const t=LB(e);return function(e){return t.current[e]}}((null==(n=e.props)?void 0:n.call(e,{props:TD(t),scope:i}))??t),c=LB(null==(r=e.context)?void 0:r.call(e,{prop:l,bindable:RB,scope:i,flush:DB,getContext:()=>u,getComputed:()=>E,getRefs:()=>y,getEvent:()=>m()})),u={get(e){var t;return null==(t=c.current)?void 0:t[e].ref.current},set(e,t){var n;null==(n=c.current)||n[e].set(t)},initial(e){var t;return null==(t=c.current)?void 0:t[e].initial},hash(e){var t,n;const r=null==(t=c.current)?void 0:t[e].get();return null==(n=c.current)?void 0:n[e].hash(r)}},d=K.useRef(new Map),p=K.useRef(null),h=K.useRef(null),f=K.useRef({type:""}),m=()=>({...f.current,current:()=>f.current,previous:()=>h.current}),g=()=>({..._,matches:(...e)=>e.includes(_.ref.current),hasTag(t){var n,r;return!!(null==(r=null==(n=e.states[_.ref.current])?void 0:n.tags)?void 0:r.includes(t))}}),y=function(e){const t=K.useRef(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}((null==(a=e.refs)?void 0:a.call(e,{prop:l,context:u}))??{}),b=()=>({state:g(),context:u,event:m(),prop:l,send:C,action:v,guard:k,track:OB,refs:y,computed:E,flush:DB,scope:i,choose:x}),v=t=>{const n=gD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.actions)?void 0:r[t];return a||CD(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),a}));for(const e of r)null==e||e(b())},k=t=>{var n,r;return gD(t)?t(b()):null==(r=null==(n=e.implementations)?void 0:n.guards)?void 0:r[t](b())},w=t=>{const n=gD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.effects)?void 0:r[t];return a||CD(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),a})),a=[];for(const e of r){const t=null==e?void 0:e(b());t&&a.push(t)}return()=>a.forEach((e=>null==e?void 0:e()))},x=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find((e=>{let t=!e.guard;return(e=>"string"==typeof e)(e.guard)?t=!!k(e.guard):gD(e.guard)&&(t=e.guard(b())),t}));var t},E=t=>{AD(e.computed,(()=>"[zag-js] No computed object found on machine"));return(0,e.computed[t])({context:u,event:m(),prop:l,refs:y,scope:i,computed:E})},_=RB((()=>({defaultValue:e.initialState({prop:l}),onChange(t,n){var r,a,o,i;if(n){const e=d.current.get(n);null==e||e(),d.current.delete(n)}n&&v(null==(r=e.states[n])?void 0:r.exit),v(null==(a=p.current)?void 0:a.actions);const s=w(null==(o=e.states[t])?void 0:o.effects);if(s&&d.current.set(t,s),n===Hj){v(e.entry);const t=w(e.effects);t&&d.current.set(Hj,t)}v(null==(i=e.states[t])?void 0:i.entry)}}))),S=K.useRef(void 0),T=K.useRef(Bj.NotStarted);IB((()=>{queueMicrotask((()=>{const e=T.current===Bj.Started;T.current=Bj.Started,s(e?"rehydrating...":"initializing...");const t=S.current??_.initial;_.invoke(t,e?_.get():Hj)}));const t=d.current,n=_.ref.current;return()=>{s("unmounting..."),S.current=n,T.current=Bj.Stopped,t.forEach((e=>null==e?void 0:e())),d.current=new Map,p.current=null,queueMicrotask((()=>{v(e.exit)}))}}),[]);const C=t=>{queueMicrotask((()=>{var n,r;if(T.current!==Bj.Started)return;h.current=f.current,f.current=t;let a="ref"in _?_.ref.current:_.get();const o=(null==(n=e.states[a].on)?void 0:n[t.type])??(null==(r=e.on)?void 0:r[t.type]),i=x(o);if(!i)return;p.current=i;const l=i.target??a;s("transition",t.type,i.target||a,`(${i.actions})`);const c=l!==a;c?se.flushSync((()=>_.set(l))):i.reenter&&!c?_.invoke(a,a):v(i.actions??[])}))};return null==(o=e.watch)||o.call(e,b()),{state:g(),send:C,context:u,prop:l,scope:i,refs:y,computed:E,event:m(),getStatus:()=>T.current}}function LB(e){const t=K.useRef(e);return t.current=e,t}function DB(e){queueMicrotask((()=>{se.flushSync((()=>e()))}))}var MB,FB=(MB=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>MB({style:e}).style:MB}));function jB(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function BB(...e){return t=>{let n=!1;const r=e.map((e=>{const r=jB(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():jB(e[t],null)}}}}function HB(...e){return K.useCallback(BB(...e),e)}function zB(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function UB(){return UB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UB.apply(null,arguments)}function $B(e,t){return($B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var VB=function(){return VB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},VB.apply(this,arguments)};function GB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function WB(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
38
+ */function UT(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $T=Symbol.for("react.transitional.element"),VT=Symbol.for("react.portal"),GT=Symbol.for("react.fragment"),WT=Symbol.for("react.strict_mode"),qT=Symbol.for("react.profiler"),YT=Symbol.for("react.provider"),KT=Symbol.for("react.consumer"),XT=Symbol.for("react.context"),QT=Symbol.for("react.forward_ref"),ZT=Symbol.for("react.suspense"),JT=Symbol.for("react.suspense_list"),eC=Symbol.for("react.memo"),tC=Symbol.for("react.lazy"),nC=Symbol.for("react.scope"),rC=Symbol.for("react.debug_trace_mode"),aC=Symbol.for("react.offscreen"),oC=Symbol.for("react.legacy_hidden"),iC=Symbol.for("react.memo_cache_sentinel"),sC=Symbol.iterator,lC=Array.isArray;function cC(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var uC=new MessageChannel,dC=[];function pC(e){dC.push(e),uC.port2.postMessage(null)}function hC(e){setTimeout((function(){throw e}))}uC.port1.onmessage=function(){var e=dC.shift();e&&e()};var fC=Promise,mC="function"==typeof queueMicrotask?queueMicrotask:function(e){fC.resolve(null).then(e).catch(hC)},gC=null,yC=0;function bC(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<yC&&(e.enqueue(new Uint8Array(gC.buffer,0,yC)),gC=new Uint8Array(2048),yC=0),e.enqueue(t);else{var n=gC.length-yC;n<t.byteLength&&(0===n?e.enqueue(gC):(gC.set(t.subarray(0,n),yC),e.enqueue(gC),t=t.subarray(n)),gC=new Uint8Array(2048),yC=0),gC.set(t,yC),yC+=t.byteLength}}function vC(e,t){return bC(e,t),!0}function kC(e){gC&&0<yC&&(e.enqueue(new Uint8Array(gC.buffer,0,yC)),gC=null,yC=0)}var wC=new TextEncoder;function xC(e){return wC.encode(e)}function EC(e){return wC.encode(e)}function _C(e,t){"function"==typeof e.error?e.error(t):e.close()}var SC=Object.assign,TC=Object.prototype.hasOwnProperty,CC=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AC={},NC={};function IC(e){return!!TC.call(NC,e)||!TC.call(AC,e)&&(CC.test(e)?NC[e]=!0:(AC[e]=!0,!1))}var RC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),OC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),PC=/["'&<>]/;function LC(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=PC.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var DC=/([A-Z])/g,MC=/^ms-/,FC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jC(e){return FC.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var BC=HT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,HC=zT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zC={pending:!1,data:null,method:null,action:null},UC=HC.d;HC.d={f:UC.f,r:UC.r,D:function(e){var t=VR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(SI,TI)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(DA(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));CO(t)}}else UC.D(e)},C:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(SI,TI)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(CI,AI)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(DA(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}CO(n)}}else UC.C(e,t)},L:function(e,t,n){var r=VR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=$C,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=_I(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=$C,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(DA(a=[],SC({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;DA(i=[],SC({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$C:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),DA(i,SC({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?$C:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=$C,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=_I(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=$C,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(DA(a=[],e=SC({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}CO(r)}}else UC.L(e,t,n)},m:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?$C:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=$C}DA(o,SC({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),CO(n)}}else UC.m(e,t)},X:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=SC({src:e,async:!0},t),o&&(2===o.length&&EI(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),HA(e,t),CO(n))}}else UC.X(e,t)},S:function(e,t,n){var r=VR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:xC(LC(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:SC({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&EI(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),CO(r))}}else UC.S(e,t,n)},M:function(e,t){var n=VR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=SC({src:e,type:"module",async:!0},t),o&&(2===o.length&&EI(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),HA(e,t),CO(n))}}else UC.M(e,t)}};var $C=[];EC('"></template>');var VC=EC("<script>"),GC=EC("<\/script>"),WC=EC('<script src="'),qC=EC('<script type="module" src="'),YC=EC('" nonce="'),KC=EC('" integrity="'),XC=EC('" crossorigin="'),QC=EC('" async=""><\/script>'),ZC=/(<\/|<)(s)(cript)/gi;function JC(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var eA=EC('<script type="importmap">'),tA=EC("<\/script>");function nA(e,t,n,r,a,o){var i=void 0===t?VC:EC('<script nonce="'+LC(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,xC((""+l).replace(ZC,JC)),GC),l=[],void 0!==r&&(l.push(eA),l.push(xC((""+JSON.stringify(r)).replace(ZC,JC))),l.push(tA)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:EC(s+"P:"),segmentPrefix:EC(s+"S:"),boundaryPrefix:EC(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,DA(d=[],l),a.bootstrapScripts.add(d),n.push(WC,xC(LC(o))),t&&n.push(YC,xC(LC(t))),"string"==typeof s&&n.push(KC,xC(LC(s))),"string"==typeof i&&n.push(XC,xC(LC(i))),n.push(QC)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,DA(l=[],s),a.bootstrapScripts.add(l),n.push(qC,xC(LC(r))),t&&n.push(YC,xC(LC(t))),"string"==typeof i&&n.push(KC,xC(LC(i))),"string"==typeof o&&n.push(XC,xC(LC(o))),n.push(QC);return a}function rA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function aA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function oA(e){return aA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function iA(e,t,n){switch(t){case"noscript":return aA(2,null,1|e.tagScope);case"select":return aA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return aA(3,null,e.tagScope);case"picture":return aA(2,null,2|e.tagScope);case"math":return aA(4,null,e.tagScope);case"foreignObject":return aA(2,null,e.tagScope);case"table":return aA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return aA(6,null,e.tagScope);case"colgroup":return aA(8,null,e.tagScope);case"tr":return aA(7,null,e.tagScope)}return 5<=e.insertionMode?aA(2,null,e.tagScope):0===e.insertionMode?aA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?aA(2,null,e.tagScope):e}var sA=EC("\x3c!-- --\x3e");function lA(e,t,n,r){return""===t?r:(r&&e.push(sA),e.push(xC(LC(t))),!0)}var cA=new Map,uA=EC(' style="'),dA=EC(":"),pA=EC(";");function hA(e,t){if("object"!=typeof t)throw Error(UT(62));var n,r=!0;for(n in t)if(TC.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=xC(LC(n));a=xC(LC((""+a).trim()))}else void 0===(o=cA.get(n))&&(o=EC(LC(n.replace(DC,"-$1").toLowerCase().replace(MC,"-ms-"))),cA.set(n,o)),a="number"==typeof a?0===a||RC.has(n)?xC(""+a):xC(a+"px"):xC(LC((""+a).trim()));r?(r=!1,e.push(uA,o,dA,a)):e.push(pA,o,dA,a)}}r||e.push(gA)}var fA=EC(" "),mA=EC('="'),gA=EC('"'),yA=EC('=""');function bA(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),yA)}function vA(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA)}var kA=EC(LC("javascript:throw new Error('React form unexpectedly submitted.')")),wA=EC('<input type="hidden"');function xA(e,t){this.push(wA),EA(e),vA(this,"name",t),vA(this,"value",e),this.push(AA)}function EA(e){if("string"!=typeof e)throw Error(UT(480))}function _A(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(EA)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function SA(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=_A(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(fA,xC("formAction"),mA,kA,gA),i=o=a=r=s=null,OA(t,n))}return null!=s&&TA(e,"name",s),null!=r&&TA(e,"formAction",r),null!=a&&TA(e,"formEncType",a),null!=o&&TA(e,"formMethod",o),null!=i&&TA(e,"formTarget",i),l}function TA(e,t,n){switch(t){case"className":vA(e,"class",n);break;case"tabIndex":vA(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vA(e,t,n);break;case"style":hA(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=jC(""+n),e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":bA(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=jC(""+n),e.push(fA,xC("xlink:href"),mA,xC(LC(n)),gA);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),yA);break;case"capture":case"download":!0===n?e.push(fA,xC(t),yA):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(fA,xC(t),mA,xC(LC(n)),gA);break;case"xlinkActuate":vA(e,"xlink:actuate",n);break;case"xlinkArcrole":vA(e,"xlink:arcrole",n);break;case"xlinkRole":vA(e,"xlink:role",n);break;case"xlinkShow":vA(e,"xlink:show",n);break;case"xlinkTitle":vA(e,"xlink:title",n);break;case"xlinkType":vA(e,"xlink:type",n);break;case"xmlBase":vA(e,"xml:base",n);break;case"xmlLang":vA(e,"xml:lang",n);break;case"xmlSpace":vA(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&IC(t=OC.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(fA,xC(t),mA,xC(LC(n)),gA)}}}var CA=EC(">"),AA=EC("/>");function NA(e,t,n){if(null!=t){if(null!=n)throw Error(UT(60));if("object"!=typeof t||!("__html"in t))throw Error(UT(61));null!=(t=t.__html)&&e.push(xC(""+t))}}var IA=EC(' selected=""'),RA=EC('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function OA(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,RA,GC))}var PA=EC("\x3c!--F!--\x3e"),LA=EC("\x3c!--F--\x3e");function DA(e,t){for(var n in e.push(GA("link")),t)if(TC.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"link"));default:TA(e,n,r)}}return e.push(AA),null}var MA=/(<\/|<)(s)(tyle)/gi;function FA(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function jA(e,t,n){for(var r in e.push(GA(n)),t)if(TC.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,n));default:TA(e,r,a)}}return e.push(AA),null}function BA(e,t){e.push(GA("title"));var n,r=null,a=null;for(n in t)if(TC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,n,o)}}return e.push(CA),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(xC(LC(""+t))),NA(e,a,r),e.push(KA("title")),null}function HA(e,t){e.push(GA("script"));var n,r=null,a=null;for(n in t)if(TC.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,n,o)}}return e.push(CA),NA(e,a,r),"string"==typeof r&&e.push(xC((""+r).replace(ZC,JC))),e.push(KA("script")),null}function zA(e,t,n){e.push(GA(n));var r,a=n=null;for(r in t)if(TC.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:TA(e,r,o)}}return e.push(CA),NA(e,a,n),"string"==typeof n?(e.push(xC(LC(n))),null):n}var UA=EC("\n"),$A=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,VA=new Map;function GA(e){var t=VA.get(e);if(void 0===t){if(!$A.test(e))throw Error(UT(65,e));t=EC("<"+e),VA.set(e,t)}return t}var WA=EC("<!DOCTYPE html>");function qA(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(GA("a"));var c,u=null,d=null;for(c in n)if(TC.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?vA(e,"href",""):TA(e,c,p);break;default:TA(e,c,p)}}if(e.push(CA),NA(e,d,u),"string"==typeof u){e.push(xC(LC(u)));var h=null}else h=u;return h;case"select":e.push(GA("select"));var f,m=null,g=null;for(f in n)if(TC.call(n,f)){var y=n[f];if(null!=y)switch(f){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:TA(e,f,y)}}return e.push(CA),NA(e,g,m),m;case"option":var b=i.selectedValue;e.push(GA("option"));var v,k=null,w=null,x=null,E=null;for(v in n)if(TC.call(n,v)){var _=n[v];if(null!=_)switch(v){case"children":k=_;break;case"selected":x=_;break;case"dangerouslySetInnerHTML":E=_;break;case"value":w=_;default:TA(e,v,_)}}if(null!=b){var S=null!==w?""+w:function(e){var t="";return HT.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(lC(b)){for(var T=0;T<b.length;T++)if(""+b[T]===S){e.push(IA);break}}else""+b===S&&e.push(IA)}else x&&e.push(IA);return e.push(CA),NA(e,E,k),k;case"textarea":e.push(GA("textarea"));var C,A=null,N=null,I=null;for(C in n)if(TC.call(n,C)){var R=n[C];if(null!=R)switch(C){case"children":I=R;break;case"value":A=R;break;case"defaultValue":N=R;break;case"dangerouslySetInnerHTML":throw Error(UT(91));default:TA(e,C,R)}}if(null===A&&null!==N&&(A=N),e.push(CA),null!=I){if(null!=A)throw Error(UT(92));if(lC(I)){if(1<I.length)throw Error(UT(93));A=""+I[0]}A=""+I}return"string"==typeof A&&"\n"===A[0]&&e.push(UA),null!==A&&e.push(xC(LC(""+A))),null;case"input":e.push(GA("input"));var O,P=null,L=null,D=null,M=null,F=null,j=null,B=null,H=null,z=null;for(O in n)if(TC.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":z=U;break;case"defaultValue":B=U;break;case"checked":H=U;break;case"value":j=U;break;default:TA(e,O,U)}}var $=SA(e,r,a,L,D,M,F,P);return null!==H?bA(e,"checked",H):null!==z&&bA(e,"checked",z),null!==j?TA(e,"value",j):null!==B&&TA(e,"value",B),e.push(AA),null!=$&&$.forEach(xA,e),null;case"button":e.push(GA("button"));var V,G=null,W=null,q=null,Y=null,K=null,X=null,Q=null;for(V in n)if(TC.call(n,V)){var Z=n[V];if(null!=Z)switch(V){case"children":G=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":K=Z;break;case"formMethod":X=Z;break;case"formTarget":Q=Z;break;default:TA(e,V,Z)}}var J=SA(e,r,a,Y,K,X,Q,q);if(e.push(CA),null!=J&&J.forEach(xA,e),NA(e,W,G),"string"==typeof G){e.push(xC(LC(G)));var ee=null}else ee=G;return ee;case"form":e.push(GA("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(TC.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:TA(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=_A(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(fA,xC("action"),mA,kA,gA),se=ie=oe=ae=null,OA(r,a))}if(null!=ae&&TA(e,"action",ae),null!=oe&&TA(e,"encType",oe),null!=ie&&TA(e,"method",ie),null!=se&&TA(e,"target",se),e.push(CA),null!==ue&&(e.push(wA),vA(e,"name",ue),e.push(AA),null!=ce&&ce.forEach(xA,e)),NA(e,re,ne),"string"==typeof ne){e.push(xC(LC(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var he in e.push(GA("menuitem")),n)if(TC.call(n,he)){var fe=n[he];if(null!=fe)switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(UT(400));default:TA(e,he,fe)}}return e.push(CA),null;case"object":e.push(GA("object"));var me,ge=null,ye=null;for(me in n)if(TC.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=jC(""+be);if(""===ve)break;e.push(fA,xC("data"),mA,xC(LC(ve)),gA);break;default:TA(e,me,be)}}if(e.push(CA),NA(e,ye,ge),"string"==typeof ge){e.push(xC(LC(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=BA(e,n);else l?we=null:(BA(a.hoistableChunks,n),we=void 0);return we;case"link":var xe=n.rel,Ee=n.href,_e=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof xe||"string"!=typeof Ee||""===Ee){DA(e,n);var Se=null}else if("stylesheet"===n.rel)if("string"!=typeof _e||null!=n.disabled||n.onLoad||n.onError)Se=DA(e,n);else{var Te=a.styles.get(_e),Ce=r.styleResources.hasOwnProperty(Ee)?r.styleResources[Ee]:void 0;if(null!==Ce){r.styleResources[Ee]=null,Te||(Te={precedence:xC(LC(_e)),rules:[],hrefs:[],sheets:new Map},a.styles.set(_e,Te));var Ae={state:0,props:SC({},n,{"data-precedence":n.precedence,precedence:null})};if(Ce){2===Ce.length&&EI(Ae.props,Ce);var Ne=a.preloads.stylesheets.get(Ee);Ne&&0<Ne.length?Ne.length=0:Ae.state=1}Te.sheets.set(Ee,Ae),o&&o.stylesheets.add(Ae)}else if(Te){var Ie=Te.sheets.get(Ee);Ie&&o&&o.stylesheets.add(Ie)}s&&e.push(sA),Se=null}else n.onLoad||n.onError?Se=DA(e,n):(s&&e.push(sA),Se=l?null:DA(a.hoistableChunks,n));return Se;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=HA(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&EI(Fe=SC({},n),Me);var je=De.get(Pe);je&&(je.length=0)}var Be=[];a.scripts.add(Be),HA(Be,Fe)}s&&e.push(sA),Oe=null}return Oe;case"style":var He=n.precedence,ze=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof ze||""===ze){e.push(GA("style"));var Ue,$e=null,Ve=null;for(Ue in n)if(TC.call(n,Ue)){var Ge=n[Ue];if(null!=Ge)switch(Ue){case"children":$e=Ge;break;case"dangerouslySetInnerHTML":Ve=Ge;break;default:TA(e,Ue,Ge)}}e.push(CA);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(xC((""+We).replace(MA,FA))),NA(e,Ve,$e),e.push(KA("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(ze)?r.styleResources[ze]:void 0)){r.styleResources[ze]=null,Ye?Ye.hrefs.push(xC(LC(ze))):(Ye={precedence:xC(LC(He)),rules:[],hrefs:[xC(LC(ze))],sheets:new Map},a.styles.set(He,Ye));var Ke,Xe=Ye.rules,Qe=null,Ze=null;for(Ke in n)if(TC.call(n,Ke)){var Je=n[Ke];if(null!=Je)switch(Ke){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Xe.push(xC((""+et).replace(MA,FA))),NA(Xe,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(sA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=jA(e,n,"meta");else s&&e.push(sA),tt=l?null:"string"==typeof n.charSet?jA(a.charsetChunks,n,"meta"):"viewport"===n.name?jA(a.viewportChunks,n,"meta"):jA(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(GA(t));var nt,rt=null,at=null;for(nt in n)if(TC.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:TA(e,nt,ot)}}if(e.push(CA),null!=at){if(null!=rt)throw Error(UT(60));if("object"!=typeof at||!("__html"in at))throw Error(UT(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(UA,xC(it)):e.push(xC(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(UA),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=$C;var ht,ft=n.crossOrigin,mt="string"==typeof ft?"use-credentials"===ft?ft:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ht=_I(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ht.length+2))?(a.resets.image[ut]=$C,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ht):(DA(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return jA(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return jA(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=zA(a.headChunks,n,"head")}else yt=zA(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[WA];var bt=zA(a.htmlChunks,n,"html")}else bt=zA(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(GA(t));var vt,kt=null,wt=null;for(vt in n)if(TC.call(n,vt)){var xt=n[vt];if(null!=xt){var Et=vt;switch(vt){case"children":kt=xt;break;case"dangerouslySetInnerHTML":wt=xt;break;case"style":hA(e,xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":Et="class";default:if(IC(vt)&&"function"!=typeof xt&&"symbol"!=typeof xt&&!1!==xt){if(!0===xt)xt="";else if("object"==typeof xt)continue;e.push(fA,xC(Et),mA,xC(LC(xt)),gA)}}}}return e.push(CA),NA(e,wt,kt),kt}}return zA(e,n,t)}var YA=new Map;function KA(e){var t=YA.get(e);return void 0===t&&(t=EC("</"+e+">"),YA.set(e,t)),t}function XA(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)bC(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,vC(e,n))}var QA=EC('<template id="'),ZA=EC('"></template>'),JA=EC("\x3c!--$--\x3e"),eN=EC('\x3c!--$?--\x3e<template id="'),tN=EC('"></template>'),nN=EC("\x3c!--$!--\x3e"),rN=EC("\x3c!--/$--\x3e"),aN=EC("<template"),oN=EC('"'),iN=EC(' data-dgst="');EC(' data-msg="'),EC(' data-stck="'),EC(' data-cstck="');var sN=EC("></template>");function lN(e,t,n){if(bC(e,eN),null===n)throw Error(UT(395));return bC(e,t.boundaryPrefix),bC(e,xC(n.toString(16))),vC(e,tN)}var cN=EC('<div hidden id="'),uN=EC('">'),dN=EC("</div>"),pN=EC('<svg aria-hidden="true" style="display:none" id="'),hN=EC('">'),fN=EC("</svg>"),mN=EC('<math aria-hidden="true" style="display:none" id="'),gN=EC('">'),yN=EC("</math>"),bN=EC('<table hidden id="'),vN=EC('">'),kN=EC("</table>"),wN=EC('<table hidden><tbody id="'),xN=EC('">'),EN=EC("</tbody></table>"),_N=EC('<table hidden><tr id="'),SN=EC('">'),TN=EC("</tr></table>"),CN=EC('<table hidden><colgroup id="'),AN=EC('">'),NN=EC("</colgroup></table>");var IN=EC('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),RN=EC('$RS("'),ON=EC('","'),PN=EC('")<\/script>');EC('<template data-rsi="" data-sid="'),EC('" data-pid="');var LN=EC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),DN=EC('$RC("'),MN=EC('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),FN=EC('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),jN=EC('$RR("'),BN=EC('","'),HN=EC('",'),zN=EC('"'),UN=EC(")<\/script>");EC('<template data-rci="" data-bid="'),EC('<template data-rri="" data-bid="'),EC('" data-sid="'),EC('" data-sty="');var $N=EC('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),VN=EC('$RX("'),GN=EC('"'),WN=EC(","),qN=EC(")<\/script>");EC('<template data-rxi="" data-bid="'),EC('" data-dgst="'),EC('" data-msg="'),EC('" data-stck="'),EC('" data-cstck="');var YN=/[<\u2028\u2029]/g;var KN=/[&><\u2028\u2029]/g;function XN(e){return JSON.stringify(e).replace(KN,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var QN=EC('<style media="not all" data-precedence="'),ZN=EC('" data-href="'),JN=EC('">'),eI=EC("</style>"),tI=!1,nI=!0;function rI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(bC(this,QN),bC(this,e.precedence),bC(this,ZN);r<n.length-1;r++)bC(this,n[r]),bC(this,dI);for(bC(this,n[r]),bC(this,JN),r=0;r<t.length;r++)bC(this,t[r]);nI=vC(this,eI),tI=!0,t.length=0,n.length=0}}function aI(e){return 2!==e.state&&(tI=!0)}function oI(e,t,n){return tI=!1,nI=!0,t.styles.forEach(rI,e),t.stylesheets.forEach(aI),tI&&(n.stylesToHoist=!0),nI}function iI(e){for(var t=0;t<e.length;t++)bC(this,e[t]);e.length=0}var sI=[];function lI(e){DA(sI,e.props);for(var t=0;t<sI.length;t++)bC(this,sI[t]);sI.length=0,e.state=2}var cI=EC('<style data-precedence="'),uI=EC('" data-href="'),dI=EC(" "),pI=EC('">'),hI=EC("</style>");function fI(e){var t=0<e.sheets.size;e.sheets.forEach(lI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(bC(this,cI),bC(this,e.precedence),e=0,r.length){for(bC(this,uI);e<r.length-1;e++)bC(this,r[e]),bC(this,dI);bC(this,r[e])}for(bC(this,pI),e=0;e<n.length;e++)bC(this,n[e]);bC(this,hI),n.length=0,r.length=0}}function mI(e){if(0===e.state){e.state=1;var t=e.props;for(DA(sI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<sI.length;e++)bC(this,sI[e]);sI.length=0}}function gI(e){e.sheets.forEach(mI,this),e.sheets.clear()}var yI=EC("["),bI=EC(",["),vI=EC(","),kI=EC("]");function wI(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=jC(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!IC(t))return;t=""+n}bC(e,vI),bC(e,xC(XN(r))),bC(e,vI),bC(e,xC(XN(t)))}function xI(){return{styles:new Set,stylesheets:new Set}}function EI(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function _I(e,t,n){for(var r in t="<"+(e=(""+e).replace(SI,TI))+'>; rel=preload; as="'+(t=(""+t).replace(CI,AI))+'"',n)TC.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(CI,AI)+'"'));return t}var SI=/[<>\r\n]/g;function TI(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var CI=/["';,\r\n]/g;function AI(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function NI(e){this.styles.add(e)}function II(e){this.stylesheets.add(e)}var RI=Function.prototype.bind,OI=Symbol.for("react.client.reference");function PI(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===OI?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case GT:return"Fragment";case VT:return"Portal";case qT:return"Profiler";case WT:return"StrictMode";case ZT:return"Suspense";case JT:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case XT:return(e.displayName||"Context")+".Provider";case KT:return(e._context.displayName||"Context")+".Consumer";case QT:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case eC:return null!==(t=e.displayName||null)?t:PI(e.type)||"Memo";case tC:t=e._payload,e=e._init;try{return PI(e(t))}catch(n){}}return null}var LI={},DI=null;function MI(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(UT(401))}else{if(null===n)throw Error(UT(401));MI(e,n)}t.context._currentValue=t.value}}function FI(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&FI(e)}function jI(e){var t=e.parent;null!==t&&jI(t),e.context._currentValue=e.value}function BI(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(UT(402));e.depth===t.depth?MI(e,t):BI(e,t)}function HI(e,t){var n=t.parent;if(null===n)throw Error(UT(402));e.depth===n.depth?MI(e,n):HI(e,n),t.context._currentValue=t.value}function zI(e){var t=DI;t!==e&&(null===t?jI(e):null===e?FI(t):t.depth===e.depth?MI(t,e):t.depth>e.depth?BI(t,e):HI(t,e),DI=e)}var UI={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},$I={id:1,overflow:""};function VI(e,t,n){var r=e.id;e=e.overflow;var a=32-GI(r)-1;r&=~(1<<a),n+=1;var o=32-GI(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-GI(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var GI=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(WI(e)/qI|0)|0},WI=Math.log,qI=Math.LN2;var YI=Error(UT(460));function KI(){}var XI=null;function QI(){if(null===XI)throw Error(UT(459));var e=XI;return XI=null,e}var ZI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},JI=null,eR=null,tR=null,nR=null,rR=null,aR=null,oR=!1,iR=!1,sR=0,lR=0,cR=-1,uR=0,dR=null,pR=null,hR=0;function fR(){if(null===JI)throw Error(UT(321));return JI}function mR(){if(0<hR)throw Error(UT(312));return{memoizedState:null,queue:null,next:null}}function gR(){return null===aR?null===rR?(oR=!1,rR=aR=mR()):(oR=!0,aR=rR):null===aR.next?(oR=!1,aR=aR.next=mR()):(oR=!0,aR=aR.next),aR}function yR(){var e=dR;return dR=null,e}function bR(){nR=tR=eR=JI=null,iR=!1,rR=null,hR=0,aR=pR=null}function vR(e,t){return"function"==typeof t?t(e):t}function kR(e,t,n){if(JI=fR(),aR=gR(),oR){var r=aR.queue;if(t=r.dispatch,null!==pR&&void 0!==(n=pR.get(r))){pR.delete(r),r=aR.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return aR.memoizedState=r,[r,t]}return[aR.memoizedState,t]}return e=e===vR?"function"==typeof t?t():t:void 0!==n?n(t):t,aR.memoizedState=e,e=(e=aR.queue={last:null,dispatch:null}).dispatch=xR.bind(null,JI,e),[aR.memoizedState,e]}function wR(e,t){if(JI=fR(),t=void 0===t?null:t,null!==(aR=gR())){var n=aR.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!ZI(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),aR.memoizedState=[e,t],e}function xR(e,t,n){if(25<=hR)throw Error(UT(301));if(e===JI)if(iR=!0,e={action:n,next:null},null===pR&&(pR=new Map),void 0===(n=pR.get(t)))pR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ER(){throw Error(UT(394))}function _R(){throw Error(UT(479))}function SR(e,t,n){fR();var r=lR++,a=tR;if("function"==typeof e.$$FORM_ACTION){var o=null,i=nR;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+cC(JSON.stringify([i,null,r]),0))&&(cR=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+cC(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function TR(e){var t=uR;return uR+=1,null===dR&&(dR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(KI,KI),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(KI,KI):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw XI=t,YI}}(dR,e,t)}function CR(){throw Error(UT(393))}function AR(){}var NR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return TR(e);if(e.$$typeof===XT)return e._currentValue}throw Error(UT(438,String(e)))},useContext:function(e){return fR(),e._currentValue},useMemo:wR,useReducer:kR,useRef:function(e){JI=fR();var t=(aR=gR()).memoizedState;return null===t?(e={current:e},aR.memoizedState=e):t},useState:function(e){return kR(vR,e)},useInsertionEffect:AR,useLayoutEffect:AR,useCallback:function(e,t){return wR((function(){return e}),t)},useImperativeHandle:AR,useEffect:AR,useDebugValue:AR,useDeferredValue:function(e,t){return fR(),void 0!==t?t:e},useTransition:function(){return fR(),[!1,ER]},useId:function(){var e=eR.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-GI(e)-1)).toString(32)+t;var n=OR;if(null===n)throw Error(UT(404));return t=sR++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(UT(407));return n()},useCacheRefresh:function(){return CR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=iC;return t},useHostTransitionStatus:function(){return fR(),zC},useOptimistic:function(e){return fR(),[e,_R]}};NR.useFormState=SR,NR.useActionState=SR;var IR,RR,OR=null,PR={getCacheForType:function(){throw Error(UT(248))}};function LR(e){if(void 0===IR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);IR=t&&t[1]||"",RR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+IR+e+RR}var DR=!1;function MR(e,t){if(!e||DR)return"";DR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{DR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?LR(n):""}function FR(e){if("string"==typeof e)return LR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=MR(e,!0):MR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case QT:return MR(e.render,!1);case eC:return MR(e.type,!1);case tC:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return LR("Lazy")}return FR(e)}if("string"==typeof e.name)return n=e.env,LR(e.name+(n?" ["+n+"]":""))}switch(e){case JT:return LR("SuspenseList");case ZT:return LR("Suspense")}return""}function jR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=RI.apply(console.error,e))()}else console.error(e);return null}function BR(){}function HR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?jR:a,this.onPostpone=void 0===c?BR:c,this.onAllReady=void 0===o?BR:o,this.onShellReady=void 0===i?BR:i,this.onShellError=void 0===s?BR:s,this.onFatalError=void 0===l?BR:l,this.formState=void 0===u?null:u}function zR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=KR(t=new HR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,XR(e=qR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,$I,null,!1)),t.pingedTasks.push(e),t}var UR,$R,VR=null;function GR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?mC((function(){return vO(e)})):pC((function(){return vO(e)})))}function WR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:xI(),fallbackState:xI(),trackedContentKeyPath:null,trackedFallbackNode:null}}function qR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var f={replay:null,node:n,childIndex:r,ping:function(){return GR(e,f)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function YR(e,t,n,r,a,o,i,s,l,c,u,d,p,h){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var f={replay:n,node:r,childIndex:a,ping:function(){return GR(e,f)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:h};return s.add(f),f}function KR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function XR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===$T)e.componentStack={parent:e.componentStack,type:t.type}}function QR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=FR(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function ZR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function JR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,_C(e.destination,t)):(e.status=13,e.fatalError=t)}function eO(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,JI={},eR=t,tR=e,nR=n,lR=sR=0,cR=-1,uR=0,dR=i,e=r(a,o);iR;)iR=!1,lR=sR=0,cR=-1,uR=0,hR+=1,aR=null,e=r(a,o);return bR(),e}function tO(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(PA):l.push(LA)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=VI(n,1,0),uO(e,t,r,-1),t.treeContext=n):s?uO(e,t,r,-1):aO(e,t,r,-1),t.keyPath=o}function nO(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=SC({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=LI,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=UI,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:LI,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:SC({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&UI.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=SC({},l,c)):SC(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,aO(e,t,r,-1),t.keyPath=a}else{if(r=eO(e,t,n,r,a,void 0),12===e.status)throw null;tO(e,t,n,r,0!==sR,lR,cR)}else{if("string"!=typeof r){switch(r){case oC:case rC:case WT:case qT:case GT:return r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),void(t.keyPath=r);case aC:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),t.keyPath=r));case JT:return r=t.keyPath,t.keyPath=n,aO(e,t,a.children,-1),void(t.keyPath=r);case nC:throw Error(UT(343));case ZT:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{uO(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var h=new Set;s=WR(0,h),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var f=KR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(f),o.lastPushedText=!1;var m=KR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=f,t.keyPath=i,f.status=6;try{uO(e,t,c,-1),f.lastPushedText&&f.textEmbedded&&f.chunks.push(sA),f.status=1}catch(g){throw f.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}XR(t=qR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(uO(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(sA),m.status=1,yO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=ZR(e,i,l=QR(t.componentStack)),s.errorDigest=u,sO(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}XR(t=qR(e,null,c,-1,d,f,s.fallbackState,h,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case QT:if("ref"in a)for(f in i={},a)"ref"!==f&&(i[f]=a[f]);else i=a;return void tO(e,t,n,r=eO(e,t,n,r.render,i,o),0!==sR,lR,cR);case eC:return void nO(e,t,n,r.type,a,o);case YT:case XT:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,DI=r={parent:o=DI,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,aO(e,t,l,-1),null===(e=DI))throw Error(UT(403));return e.context._currentValue=e.parentValue,e=DI=e.parent,t.context=e,void(t.keyPath=i);case KT:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,aO(e,t,r,-1),void(t.keyPath=a);case tC:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void nO(e,t,n,r,a,o)}throw Error(UT(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=iA(l,r,a),t.keyPath=n,uO(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=qA(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=iA(l,r,a),t.keyPath=n,uO(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(KA(r))}i.lastPushedText=!1}}}function rO(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=KR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,uO(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(yO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function aO(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?rO(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,XR(t),oO(e,t),t.componentStack=n)}function oO(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case $T:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=PI(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(UT(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(nO(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===YI||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=QR(t.componentStack),pO(e,o=t.blockedBoundary,p,l,a=k,i=ZR(e,a,i))}t.replay=u}else{if(a!==ZT)throw Error(UT(490,"Suspense",PI(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var h=t.keyPath,f=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=WR(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(uO(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=ZR(e,w,p=QR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=f,t.keyPath=h}XR(t=YR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else nO(e,t,o,a,i,s);return;case VT:throw Error(UT(257));case tC:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void aO(e,t,n,r)}if(lC(n))return void iO(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=sC&&n[sC]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);iO(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,aO(e,t,TR(n),r);if(n.$$typeof===XT)return aO(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(UT(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=lA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=lA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function iO(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=VI(o,i,r),"number"==typeof(c=s[r])?(rO(e,t,c,l,r),delete s[r]):uO(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=VI(o,i,s),uO(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(iO(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(UT(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===YI||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=QR(t.componentStack);var c=t.blockedBoundary;pO(e,c,r,l,u,n=ZR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function sO(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function lO(e,t,n){return YR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function cO(e,t,n){var r=t.blockedSegment,a=KR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,qR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function uO(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return aO(e,t,n,r)}catch(p){if(bR(),"object"==typeof(n=p===YI?QI():p)&&null!==n){if("function"==typeof n.then)return e=lO(e,t,r=yR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o);if("Maximum call stack size exceeded"===n.message)return n=lO(e,t,n=yR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o)}}else{var u=c.children.length,d=c.chunks.length;try{return aO(e,t,n,r)}catch(h){if(bR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=h===YI?QI():h)&&null!==n){if("function"==typeof n.then)return e=cO(e,t,r=yR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o);if("Maximum call stack size exceeded"===n.message)return n=cO(e,t,n=yR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void zI(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,zI(o),n}function dO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,bO(this,t,e))}function pO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)pO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=WR(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(UT(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function hO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=QR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return ZR(t,n,a),void JR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=ZR(t,n,a),pO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&mO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=ZR(t,n,a),r.status=4,r.errorDigest=e,sO(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return hO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&gO(t)}function fO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,h=u.props,f=_I(h.href,"style",{crossOrigin:h.crossOrigin,integrity:h.integrity,nonce:h.nonce,type:h.type,fetchPriority:h.fetchPriority,referrerPolicy:h.referrerPolicy,media:h.media});if(!(0<=(a.remainingCapacity-=f.length+2)))break e;n.resets.style[p]=$C,o&&(o+=", "),o+=f,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:$C}}r(o?{Link:o}:{})}}}catch(m){ZR(e,m,{})}}function mO(e){null===e.trackedPostpones&&fO(e,!0),e.onShellError=BR,(e=e.onShellReady)()}function gO(e){fO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function yO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&yO(e,n)}else e.completedSegments.push(t)}function bO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(UT(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&mO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&yO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(dO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(yO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&gO(e)}function vO(e){if(14!==e.status&&13!==e.status){var t=DI,n=BC.H;BC.H=NR;var r=BC.A;BC.A=PR;var a=VR;VR=e;var o=OR;OR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){zI(l.context);try{if("number"==typeof l.replay.slots?rO(d,l,l.replay.slots,l.node,l.childIndex):oO(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(UT(488));l.replay.pendingTasks--,l.abortSet.delete(l),bO(d,l.blockedBoundary,null)}catch(_){bR();var p=_===YI?QI():_;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var h=l.ping;p.then(h,h),l.thenableState=yR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var f=QR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;pO(m,g,l.replay.nodes,l.replay.slots,y,c=ZR(m,y,f)),d.pendingRootTasks--,0===d.pendingRootTasks&&mO(d),d.allPendingTasks--,0===d.allPendingTasks&&gO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,zI(l.context);var b=m.children.length,v=m.chunks.length;try{oO(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(sA),l.abortSet.delete(l),m.status=1,bO(c,l.blockedBoundary,m)}catch(_){bR(),m.children.length=b,m.chunks.length=v;var k=_===YI?QI():12===c.status?c.fatalError:_;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=yR();var w=l.ping;k.then(w,w)}else{var x=QR(l.componentStack);l.abortSet.delete(l),m.status=4;var E=l.blockedBoundary;d=ZR(c,k,x),null===E?JR(c,k):(E.pendingTasks--,4!==E.status&&(E.status=4,E.errorDigest=d,sO(c,E),E.parentFlushed&&c.clientRenderedBoundaries.push(E))),c.allPendingTasks--,0===c.allPendingTasks&&gO(c)}}}}s.splice(0,i),null!==e.destination&&SO(e,e.destination)}catch(S){ZR(e,S,{}),JR(e,S)}finally{OR=o,BC.H=n,BC.A=r,n===NR&&zI(t),VR=a}}}function kO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,bC(t,QA),bC(t,e.placeholderPrefix),bC(t,e=xC(r.toString(16))),vC(t,ZA);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)bC(t,o[i]);a=wO(e,t,a,r)}for(;i<o.length-1;i++)bC(t,o[i]);return i<o.length&&(a=vC(t,o[i])),a;default:throw Error(UT(390))}}function wO(e,t,n,r){var a=n.boundary;if(null===a)return kO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,vC(t,nN),bC(t,aN),a&&(bC(t,iN),bC(t,xC(LC(a))),bC(t,oN)),vC(t,sN),kO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),lN(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(NI,r),a.stylesheets.forEach(II,r)),kO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),lN(t,e.renderState,a.rootSegmentID),kO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(NI,r),n.stylesheets.forEach(II,r)),vC(t,JA),1!==(n=a.completedSegments).length)throw Error(UT(391));wO(e,t,n[0],r)}return vC(t,rN)}function xO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return bC(e,cN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,uN);case 3:return bC(e,pN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,hN);case 4:return bC(e,mN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,gN);case 5:return bC(e,bN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,vN);case 6:return bC(e,wN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,xN);case 7:return bC(e,_N),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,SN);case 8:return bC(e,CN),bC(e,t.segmentPrefix),bC(e,xC(r.toString(16))),vC(e,AN);default:throw Error(UT(397))}}(t,e.renderState,n.parentFormatContext,n.id),wO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return vC(e,dN);case 3:return vC(e,fN);case 4:return vC(e,yN);case 5:return vC(e,kN);case 6:return vC(e,EN);case 7:return vC(e,TN);case 8:return vC(e,NN);default:throw Error(UT(397))}}(t,n.parentFormatContext)}function EO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)_O(e,t,n,r[a]);r.length=0,oI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,bC(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?bC(t,jN):(r.instructions|=8,bC(t,FN)):(r.instructions|=10,bC(t,MN)):2&r.instructions?bC(t,DN):(r.instructions|=2,bC(t,LN)),r=xC(a.toString(16)),bC(t,e.boundaryPrefix),bC(t,r),bC(t,BN),bC(t,e.segmentPrefix),bC(t,r),o?(bC(t,HN),function(e,t){bC(e,yI);var n=yI;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)bC(e,n),bC(e,xC(XN(""+t.props.href))),bC(e,kI),n=bI;else{bC(e,n);var r=t.props["data-precedence"],a=t.props,o=jC(""+t.props.href);for(var i in bC(e,xC(XN(o))),r=""+r,bC(e,vI),bC(e,xC(XN(r))),a)if(TC.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(UT(399,"link"));default:wI(e,i,r)}bC(e,kI),n=bI,t.state=3}})),bC(e,kI)}(t,n)):bC(t,zN),n=vC(t,UN),XA(t,e)&&n}function _O(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(UT(392));return xO(e,t,r,a)}return o===n.rootSegmentID?xO(e,t,r,a):(xO(e,t,r,a),n=e.resumableState,bC(t,(e=e.renderState).startInlineScript),1&n.instructions?bC(t,RN):(n.instructions|=1,bC(t,IN)),bC(t,e.segmentPrefix),bC(t,o=xC(o.toString(16))),bC(t,ON),bC(t,e.placeholderPrefix),bC(t,o),t=vC(t,PN))}function SO(e,t){gC=new Uint8Array(2048),yC=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)bC(t,i[a]);if(s)for(a=0;a<s.length;a++)bC(t,s[a]);else bC(t,GA("head")),bC(t,CA)}else if(s)for(a=0;a<s.length;a++)bC(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)bC(t,l[a]);l.length=0,o.preconnects.forEach(iI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)bC(t,c[a]);c.length=0,o.fontPreloads.forEach(iI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(iI,t),o.highImagePreloads.clear(),o.styles.forEach(fI,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)bC(t,u[a]);u.length=0,o.bootstrapScripts.forEach(iI,t),o.scripts.forEach(iI,t),o.scripts.clear(),o.bulkPreloads.forEach(iI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)bC(t,d[a]);d.length=0,i&&null===s&&bC(t,KA("head")),wO(e,t,r,null),e.completedRootSegment=null,XA(t,e.renderState)}var p=e.renderState;r=0;var h=p.viewportChunks;for(r=0;r<h.length;r++)bC(t,h[r]);h.length=0,p.preconnects.forEach(iI,t),p.preconnects.clear(),p.fontPreloads.forEach(iI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(iI,t),p.highImagePreloads.clear(),p.styles.forEach(gI,t),p.scripts.forEach(iI,t),p.scripts.clear(),p.bulkPreloads.forEach(iI,t),p.bulkPreloads.clear();var f=p.hoistableChunks;for(r=0;r<f.length;r++)bC(t,f[r]);f.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;bC(p,b.startInlineScript),4&y.instructions?bC(p,VN):(y.instructions|=4,bC(p,$N)),bC(p,b.boundaryPrefix),bC(p,xC(v.toString(16))),bC(p,GN),k&&(bC(p,WN),bC(p,xC((A=k||"",JSON.stringify(A).replace(YN,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=vC(p,qN);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var x=e.completedBoundaries;for(n=0;n<x.length;n++)if(!EO(e,t,x[n]))return e.destination=null,n++,void x.splice(0,n);x.splice(0,n),kC(t),gC=new Uint8Array(2048),yC=0;var E=e.partialBoundaries;for(n=0;n<E.length;n++){var _=E[n];e:{m=e,g=t;var S=_.completedSegments;for(w=0;w<S.length;w++)if(!_O(m,g,_,S[w])){w++,S.splice(0,w);var T=!1;break e}S.splice(0,w),T=oI(g,_.contentState,m.renderState)}if(!T)return e.destination=null,n++,void E.splice(0,n)}E.splice(0,n);var C=e.completedBoundaries;for(n=0;n<C.length;n++)if(!EO(e,t,C[n]))return e.destination=null,n++,void C.splice(0,n);C.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&bC(t,KA("body")),n.hasHtml&&bC(t,KA("html")),kC(t),e.status=14,t.close(),e.destination=null):kC(t)}var A}function TO(e){e.flushScheduled=null!==e.destination,mC((function(){return vO(e)})),pC((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&fO(e,0===e.pendingRootTasks)}))}function CO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,pC((function(){var t=e.destination;t?SO(e,t):e.flushScheduled=!1})))}function AO(e,t){if(13===e.status)e.status=14,_C(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{SO(e,t)}catch(n){ZR(e,n,{}),JR(e,n)}}}function NO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(UT(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(UT(530)):t;e.fatalError=r,n.forEach((function(t){return hO(t,e,r)})),n.clear()}null!==e.destination&&SO(e,e.destination)}catch(a){ZR(e,a,{}),JR(e,a)}}function IO(){var e=HT.version;if("19.0.0"!==e)throw Error(UT(527,e,"19.0.0"))}IO(),IO(),BT.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=rA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=zR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,nA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),oA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){AO(s,e)},cancel:function(e){s.destination=null,NO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)NO(s,l.reason);else{var c=function(){NO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}TO(s)}))},BT.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=rA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=zR(e,c,nA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),oA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){AO(u,e)},cancel:function(e){u.destination=null,NO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)NO(u,d.reason);else{var p=function(){NO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}TO(u)}))},BT.version="19.0.0",$R=BT,(UR=Xx).version;var RO=UR.renderToString;function OO({children:e="",...t}){let n="";return X.isValidElement(e)?n=RO(e):"string"==typeof e&&(n=e),qh.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function PO({root:e,children:t=null}){return se.createPortal(t,e)}function LO(e){return K.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=K.useRef(null==e?void 0:e.current);return K.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=K.useState(null),d=`node_${t}${n}`;return K.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),qh.jsx(e.tag,{ref:l,...i,children:(c||a)&&qh.jsx(Kx.Provider,{value:c,children:a?qh.jsx(OO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):qh.jsx(PO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}UR.renderToStaticMarkup,$R.renderToReadableStream,$R.resume&&$R.resume;const DO=new Map;const MO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=Yx.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!DO.has(o)){const e=LO({tag:a,render:n});DO.set(o,e)}return DO.get(o)}})}();var FO=(null==globalThis?void 0:globalThis.document)?K.useLayoutEffect:()=>{},jO=Q[" useId ".trim().toString()]||(()=>{}),BO=0;function HO(e){const[t,n]=K.useState(jO());return FO((()=>{n((e=>e??String(BO++)))}),[e]),t?`radix-${t}`:""}const zO=K.createContext(void 0),UO=()=>K.useContext(zO);function $O({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=K.useState(null),[i,s]=K.useState(null),l=K.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=HO(),u=MO.div;return qh.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${r}`}}),n,qh.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:qh.jsx(zO.Provider,{value:l,children:a&&i&&t})})]})}const VO=e=>UO()?e.children:qh.jsx($O,{...e}),GO="ChatButton",WO="CustomTrigger",qO="SearchBar",YO="EmbeddedChat",KO="EmbeddedSearch",XO="EmbeddedSearchAndChat",QO="IntelligentForm",ZO="SidebarChat",JO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:Ix,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:YO},eP=K.createContext(JO),tP=({children:e,value:t})=>{const n=UO(),r=(e,t,n)=>["baseSettings","searchSettings","aiChatSettings"].includes(n)&&!t?e:t,a={baseSettings:n??{}},o=K.useMemo((()=>{const e=function(e,t,...n){return n.reduce(((t,n)=>Oh(t,n,e)),t)}(r,JO,a,t??{});return e.baseSettings.apiKey||console.warn("Inkeep API key is missing."),e}),[t]);return qh.jsx(eP.Provider,{value:o,children:e})},nP=()=>{const e=K.useContext(eP);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},rP="conversationId",aP=K.createContext(null),oP=({children:e})=>{const t=function(){const[e,t]=K.useState(void 0),{aiChatSettings:n}=nP(),{shareChatUrlBasePath:r}=n;return K.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(rP);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=nP(),r=n.chatId||t,[a,o]=K.useState(r);K.useEffect((()=>{o(r)}),[r]);const i={id:"",messages:[]},[s,l]=K.useState(i),c=()=>{l(i),o(void 0)},u=K.useMemo((()=>({conversation:s,setConversation:l,chatId:a,isSharedChat:!!t,resetConversation:c,setExternalChatId:o})),[s,a,t]);return qh.jsx(aP.Provider,{value:u,children:e})},iP=()=>{const e=K.useContext(aP);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};async function sP(e,t,n,r){try{const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}catch(a){console.warn("Error in logConversation:",a)}}const lP="inkeepUsagePreferences",cP={defaultView:null,inkeepChatSessionId:null},uP={hasSwitchModeButtonJiggled:!1,userId:null,...cP},dP={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${lP}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${lP}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${lP}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${lP}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${lP}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},pP=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},hP=K.createContext(void 0),fP=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=nP(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=nP(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!pP()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in cP?`${e}-${o}`:e,s=Object.keys(uP).reduce(((e,t)=>{const n=i(t),r=dP.get(a,n);return{...e,[t]:r}}),{...uP}),[l,c]=K.useState(s);return K.useEffect((()=>{if(r)for(const e of Object.keys(uP)){const t=i(e);dP.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);dP.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=K.useMemo((()=>pP()),[]),l=K.useMemo((()=>!r&&!a&&s),[r,a,s]),c=K.useMemo((()=>{const e=r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",n=r?void 0:t.id||l&&o.userId||Zh();return{identificationType:e,...r?{}:t,id:n}}),[t,r,l,o.userId]);return K.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),qh.jsx(hP.Provider,{value:{userProperties:c},children:e})},mP=()=>{const e=K.useContext(hP);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const gP=K.createContext(void 0),yP=({children:e})=>{const{baseSettings:t,componentType:n}=nP(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s,analyticsProperties:l}=t,{userProperties:c}=mP(),u=K.useMemo((()=>({widgetLibraryVersion:"0.5.118",componentType:n,tags:o})),[n,o]),d=!i.optOutAllAnalytics&&"development"!==s,p={logEvent:K.useCallback((async e=>{var n,o;const i={...u,...e.properties,...l},s={eventName:e.eventName,properties:i,userProperties:c},p=["modal_opened","modal_closed"].includes(e.eventName);if(d&&!p){if("conversation"in i&&!(null==(n=i.conversation)?void 0:n.id))return;!async function(e,t,n){try{const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}catch(r){console.warn("Error in logEvent:",r)}}(s,r,a)}null==(o=t.onEvent)||o.call(t,s)}),[d,t,r,a,c,u,l])};return qh.jsx(gP.Provider,{value:p,children:e})},bP=()=>{const e=K.useContext(gP);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e},vP=K.createContext(void 0),kP=({children:e})=>{const{baseSettings:t,aiChatSettings:n}=nP(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:{optOutAllAnalytics:i},env:s,analyticsProperties:l}=t,{conversationVisibility:c}=n,{userProperties:u}=mP(),{logEvent:d}=bP(),{conversation:p,setConversation:h,chatId:f,isSharedChat:m,setExternalChatId:g}=iP(),y=K.useRef(p),b=K.useRef(m?f:void 0);K.useEffect((()=>{y.current=p}),[p]),K.useEffect((()=>{b.current=m?f:void 0}),[f,m]);const v=K.useCallback((async e=>{const t=y.current;b.current&&(t.id="",g(void 0),b.current=void 0);const n=!i&&"development"!==s;let d=Object.assign({},t,{messages:e});if(n){const n=await sP(t.id,{messages:e,tags:o,userProperties:u,properties:l,visibility:c},r,a);n&&(d=n)}else d.id="conv_"+Zh(16);return d}),[a,r,o,u,i,s,l,g,c]),k=K.useCallback((async(e,t)=>{let n=y.current;if(t){const e=y.current.messages||[];(t.length!==e.length||t.some(((t,n)=>{var r;return t.id!==(null==(r=e[n])?void 0:r.id)})))&&(n=await v(t),h(n),y.current=n)}const r={...e,properties:{conversation:n,...e.properties}};d(r)}),[d,v,i,s,l]),w=K.useCallback((()=>y.current),[]),x={logEvent:k,logConversation:v,getLatestConversation:w};return qh.jsx(vP.Provider,{value:x,children:e})},wP=()=>{const e=K.useContext(vP);if(!e)throw new Error("useChatEvents must be used within a ChatEventsProvider");return e};function xP(e){const{displayName:t,goals:n,informationToCollect:r,guidance:a,botPersona:o,context:i}=e,s=SP({title:"Guidance",content:[EP(a)],note:o,depth:2}),l=_P(null==r?void 0:r.filter((e=>e.required)).map((e=>e.description))),c=_P(null==r?void 0:r.filter((e=>!e.required)).map((e=>e.description))),u=SP({title:"Required",content:[l],note:"IMPORTANT: This information is REQUIRED for this workflow. If not provided in the conversation, prompt the user to provide it and don't otherwise answer their question.",depth:3}),d=SP({title:"Optional",content:[c],depth:3}),p=SP({title:"Information to collect",content:[u,d],note:"This is information that should be collected from the user.",depth:2}),h=SP({title:"Context",content:[_P(i)],depth:2}),f=SP({title:"Workflow Name",content:[t],depth:2}),m=SP({title:"Goals",content:[EP(n)],depth:2});return SP({title:"Workflow",content:["I am a user being guided through a “workflow” defined by the organization that provides this chat experience.","**IMPORTANT: Follow the instructions outlined in this workflow. Follow the instructions in the workflow configuration below. Do not answer questions unrelated to the workflow.**",f,m,h,p,s],depth:1})}function EP(e){if(IP(e))return e.filter((e=>null!=e)).map(((e,t)=>`${t+1}. ${e}`)).join("\n")}function _P(e){if(IP(e))return e.filter((e=>null!=e)).map((e=>`- ${e}`)).join("\n")}function SP({title:e,content:t,note:n,depth:r=2}){const a=NP(t);if(!a&&!n)return;const o=`${"#".repeat(r)} ${e}\n`,i=NP([n,a]);return i?`${o}${i}\n`:void 0}function TP(e){if(!e)return;if(!IP(e))return;const t=e.map(((e,t)=>function({attachment:e,index:t}){const{title:n,content:r,contentType:a,context:o}=e,{contentInputLabel:i,type:s}=a,l=function(e){if("CODE"===(null==e?void 0:e.type))return e.language||"";return}(a),c=function(e,t){return t?`\`\`\`${t}\n${e}\n\`\`\``:e}(r,l),u=IP(o)?["\nAdditional Context:",NP(o)]:[],d=[`#### ATTACHMENT #${t+1}`,`Title: ${n}`,`Label: ${i}`,`Type: ${s}`,"Content:",c,...u].join("\n");return d}({attachment:e,index:t})));return NP(t)}function CP(e){return SP({title:"User-provided Attachments",content:["The user has provided the following attachments to their message:",TP(e)],depth:1})}function AP(e){if(!e.supportedInputs)return e;const t={...e};return t.supportedInputs=e.supportedInputs.map((e=>{const t={...e};return"MODAL"===t.type&&(t.workflowModalProps=void 0),t})),t}function NP(e){if(IP(e))return e.filter((e=>null!=e)).join("\n")}function IP(e){return Array.isArray(e)&&e.length>0}const RP=()=>{const e="undefined"==typeof window?new URL(""):new URL(window.location.href),t=new URLSearchParams(e.search);if(t.has(rP)){t.delete(rP);const n=t.toString(),r=n?`${e.origin}${e.pathname}?${n}`:`${e.origin}${e.pathname}`;"undefined"!=typeof window&&window.history.pushState({},"",r)}};var OP=e=>"checkbox"===e.type,PP=e=>e instanceof Date,LP=e=>null==e;const DP=e=>"object"==typeof e;var MP=e=>!LP(e)&&!Array.isArray(e)&&DP(e)&&!PP(e),FP=e=>MP(e)&&e.target?OP(e.target)?e.target.checked:e.target.value:e,jP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),BP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function HP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(BP&&(e instanceof Blob||r)||!n&&!MP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return MP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=HP(e[n]));else t=e}return t}var zP=e=>Array.isArray(e)?e.filter(Boolean):[],UP=e=>void 0===e,$P=(e,t,n)=>{if(!t||!MP(e))return n;const r=zP(t.split(/[,[\].]+?/)).reduce(((e,t)=>LP(e)?e:e[t]),e);return UP(r)||r===e?UP(e[t])?n:e[t]:r},VP=e=>"boolean"==typeof e,GP=e=>/^\w*$/.test(e),WP=e=>zP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),qP=(e,t,n)=>{let r=-1;const a=GP(t)?[t]:WP(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=MP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const YP="blur",KP="focusout",XP="change",QP="onBlur",ZP="onChange",JP="onSubmit",eL="onTouched",tL="all",nL="max",rL="min",aL="maxLength",oL="minLength",iL="pattern",sL="required",lL="validate",cL=X.createContext(null),uL=()=>X.useContext(cL);var dL=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==tL&&(t._proxyFormState[a]=!r||tL),n&&(n[a]=!0),e[a]}});return a},pL=e=>MP(e)&&!Object.keys(e).length,hL=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return pL(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||tL)))},fL=e=>Array.isArray(e)?e:[e],mL=(e,t,n)=>!e||!t||e===t||fL(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function gL(e){const t=X.useRef(e);t.current=e,X.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var yL=e=>"string"==typeof e,bL=(e,t,n,r,a)=>yL(e)?(r&&t.watch.add(e),$P(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),$P(n,e)))):(r&&(t.watchAll=!0),n);function vL(e){const t=uL(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=jP(a._names.array,n),s=function(e){const t=uL(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=X.useRef(r);s.current=r,gL({disabled:o,subject:n._subjects.values,next:e=>{mL(s.current,e.name,i)&&c(HP(bL(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=X.useState(n._getWatch(r,a));return X.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:$P(a._formValues,n,$P(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=uL(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=X.useState(n._formState),l=X.useRef(!0),c=X.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=X.useRef(a);return u.current=a,gL({disabled:r,next:e=>l.current&&mL(u.current,e.name,o)&&hL(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),X.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),X.useMemo((()=>dL(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=X.useRef(a.register(n,{...e.rules,value:s,...VP(e.disabled)?{disabled:e.disabled}:{}})),u=X.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$P(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!$P(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$P(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$P(l.validatingFields,n)},error:{enumerable:!0,get:()=>$P(l.errors,n)}})),[l,n]),d=X.useMemo((()=>({name:n,value:s,...VP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:FP(e),name:n},type:XP}),onBlur:()=>c.current.onBlur({target:{value:$P(a._formValues,n),name:n},type:YP}),ref:e=>{const t=$P(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return X.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=$P(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=HP($P(a._options.defaultValues,n));qP(a._defaultValues,n,e),UP($P(a._formValues,n))&&qP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),X.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),X.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const kL=e=>e.render(vL(e));var wL=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},xL=e=>({isOnSubmit:!e||e===JP,isOnBlur:e===QP,isOnChange:e===ZP,isOnAll:e===tL,isOnTouch:e===eL}),EL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const _L=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=$P(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(_L(o,t))break}else if(MP(o)&&_L(o,t))break}}};var SL=(e,t,n)=>{const r=fL($P(e,n));return qP(r,"root",t[n]),qP(e,n,r),e},TL=e=>"file"===e.type,CL=e=>"function"==typeof e,AL=e=>{if(!BP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},NL=e=>yL(e),IL=e=>"radio"===e.type,RL=e=>e instanceof RegExp;const OL={value:!1,isValid:!1},PL={value:!0,isValid:!0};var LL=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!UP(e[0].attributes.value)?UP(e[0].value)||""===e[0].value?PL:{value:e[0].value,isValid:!0}:PL:OL}return OL};const DL={isValid:!1,value:null};var ML=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),DL):DL;function FL(e,t,n="validate"){if(NL(e)||Array.isArray(e)&&e.every(NL)||VP(e)&&!e)return{type:n,message:NL(e)?e:"",ref:t}}var jL=e=>MP(e)&&!RL(e)?e:{value:e,message:""},BL=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:y}=e._f,b=$P(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(VP(e)?"":e||""),v.reportValidity())},w={},x=IL(i),E=OP(i),_=x||E,S=(g||TL(i))&&UP(i.value)&&UP(b)||AL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,T=wL.bind(null,m,r,w),C=(e,t,n,r=aL,a=oL)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,...T(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!_&&(S||LP(b))||VP(b)&&!b||E&&!LL(s).isValid||x&&!ML(s).isValid)){const{value:e,message:t}=NL(l)?{value:!!l,message:l}:jL(l);if(e&&(w[m]={type:sL,message:t,ref:v,...T(sL,t)},!r))return k(t),w}if(!(S||LP(d)&&LP(p))){let e,t;const n=jL(p),a=jL(d);if(LP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;yL(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),yL(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);LP(n.value)||(e=r>n.value),LP(a.value)||(t=r<a.value)}if((e||t)&&(C(!!e,n.message,a.message,nL,rL),!r))return k(w[m].message),w}if((c||u)&&!S&&(yL(b)||o&&Array.isArray(b))){const e=jL(c),t=jL(u),n=!LP(e.value)&&b.length>+e.value,a=!LP(t.value)&&b.length<+t.value;if((n||a)&&(C(n,e.message,t.message),!r))return k(w[m].message),w}if(h&&!S&&yL(b)){const{value:e,message:t}=jL(h);if(RL(e)&&!b.match(e)&&(w[m]={type:iL,message:t,ref:i,...T(iL,t)},!r))return k(t),w}if(f)if(CL(f)){const e=FL(await f(b,n),v);if(e&&(w[m]={...e,...T(lL,e.message)},!r))return k(e.message),w}else if(MP(f)){let e={};for(const t in f){if(!pL(e)&&!r)break;const a=FL(await f[t](b,n),v,t);a&&(e={...a,...T(t,a.message)},k(a.message),r&&(w[m]=e))}if(!pL(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function HL(e,t){const n=Array.isArray(t)?t:GP(t)?[t]:WP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=UP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(MP(r)&&pL(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!UP(e[t]))return!1;return!0}(r))&&HL(e,n.slice(0,-1)),e}var zL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},UL=e=>LP(e)||!DP(e);function $L(e,t){if(UL(e)||UL(t))return e===t;if(PP(e)&&PP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(PP(n)&&PP(e)||MP(n)&&MP(e)||Array.isArray(n)&&Array.isArray(e)?!$L(n,e):n!==e)return!1}}return!0}var VL=e=>"select-multiple"===e.type,GL=e=>AL(e)&&e.isConnected,WL=e=>{for(const t in e)if(CL(e[t]))return!0;return!1};function qL(e,t={}){const n=Array.isArray(e);if(MP(e)||n)for(const r in e)Array.isArray(e[r])||MP(e[r])&&!WL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},qL(e[r],t[r])):LP(e[r])||(t[r]=!0);return t}function YL(e,t,n){const r=Array.isArray(e);if(MP(e)||r)for(const a in e)Array.isArray(e[a])||MP(e[a])&&!WL(e[a])?UP(t)||UL(n[a])?n[a]=Array.isArray(e[a])?qL(e[a],[]):{...qL(e[a])}:YL(e[a],LP(t)?{}:t[a],n[a]):n[a]=!$L(e[a],t[a]);return n}var KL=(e,t)=>YL(e,t,qL(t)),XL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>UP(e)?e:t?""===e?NaN:e?+e:e:n&&yL(e)?new Date(e):r?r(e):e;function QL(e){const t=e.ref;return TL(t)?t.files:IL(t)?ML(e.refs).value:VL(t)?[...t.selectedOptions].map((({value:e})=>e)):OP(t)?LL(e.refs).value:XL(UP(t.value)?e.ref.value:t.value,e)}var ZL=e=>UP(e)?e:RL(e)?e.source:MP(e)?RL(e.value)?e.value.source:e.value:e;const JL="AsyncFunction";function eD(e,t,n){const r=$P(e,n);if(r||GP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=$P(t,r),i=$P(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const tD={mode:JP,reValidateMode:ZP,shouldFocusError:!0};function nD(e={}){let t,n={...tD,...e},r={submitCount:0,isDirty:!1,isLoading:CL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(MP(n.defaultValues)||MP(n.values))&&HP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:HP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:zL(),array:zL(),state:zL()},p=xL(n.mode),h=xL(n.reValidateMode),f=n.criteriaMode===tL,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?pL((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?qP(r.validatingFields,e,t):HL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!pL(r.validatingFields)}))},y=(e,t,n,r)=>{const l=$P(a,e);if(l){const a=$P(i,e,UP(n)?$P(o,e):n);UP(a)||r&&r.defaultChecked||t?qP(i,e,t?a:QL(l._f)):_(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const h={name:e};if(!n.disabled){const n=!!($P(a,e)&&$P(a,e)._f&&$P(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=h.isDirty=x(),c=p!==h.isDirty);const a=n||$L($P(o,e),t);p=!(n||!$P(r.dirtyFields,e)),a||n?HL(r.dirtyFields,e):qP(r.dirtyFields,e,!0),h.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=$P(r.touchedFields,e);t||(qP(r.touchedFields,e,i),h.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(h)}return c?h:{}},v=(e,a,o,i)=>{const s=$P(r.errors,e),l=u.isValid&&VP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{qP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?qP(r.errors,e,o):HL(r.errors,e)),(o?!$L(s,o):s)||!pL(i)||l){const t={...i,...l&&VP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=$P(t,o);e&&qP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(CL(o.validate)&&o.validate.constructor.name===JL||MP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===JL))));p&&u.validatingFields&&g([s],!0);const h=await BL(c,l.disabled,i,f,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),h[e.name]&&(a.valid=!1,t))break;!t&&($P(h,e.name)?d?SL(r.errors,h,e.name):qP(r.errors,e.name,h[e.name]):HL(r.errors,e.name))}!pL(d)&&await w(d,t,a)}}var o;return a.valid},x=(e,t)=>!n.disabled&&(e&&t&&qP(i,e,t),!$L(I(),o)),E=(e,t,n)=>bL(e,l,{...s.mount?i:UP(t)?o:yL(e)?{[e]:t}:t},n,t),_=(e,t,n={})=>{const r=$P(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&qP(i,e,XL(t,n)),o=AL(n.ref)&&LP(t)?"":t,VL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?OP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):TL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},S=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=$P(a,i);(l.array.has(e)||MP(o)||s&&!s._f)&&!PP(o)?S(i,o,n):_(i,o,n)}},T=(e,t,n={})=>{const c=$P(a,e),p=l.array.has(e),h=HP(t);qP(i,e,h),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:KL(o,i),isDirty:x(e,h)})):!c||c._f||LP(h)?_(e,h,n):S(e,h,n),EL(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},C=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const x=$P(a,c),E=e=>{y=Number.isNaN(e)||PP(e)&&isNaN(e.getTime())||$L(e,$P(i,c,e))};if(x){let s,S;const T=o.type?QL(x._f):FP(e),C=e.type===YP||e.type===KP,A=!((_=x._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||$P(r.errors,c)||x._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(C,$P(r.touchedFields,c),r.isSubmitted,h,p),I=EL(c,l,C);qP(i,c,T),C?(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const R=b(c,T,C,!1),O=!pL(R)||I;if(!C&&d.values.next({name:c,type:e.type,values:{...i}}),A)return u.isValid&&("onBlur"===n.mode&&C?m():C||m()),O&&d.state.next({name:c,...I?{}:R});if(!C&&I&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(E(T),y){const t=eD(r.errors,a,c),n=eD(e,a,t.name||c);s=n.error,c=n.name,S=pL(e)}}else g([c],!0),s=(await BL(x,l.disabled,i,f,n.shouldUseNativeValidation))[c],g([c]),E(T),y&&(s?S=!1:u.isValid&&(S=await w(a,!0)));y&&(x._f.deps&&N(x._f.deps),v(c,S,s,R))}var _},A=(e,t)=>{if($P(r.errors,t)&&e.focus)return e.focus(),1},N=async(e,t={})=>{let o,i;const s=fL(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=$P(t,n);e?qP(r.errors,n,e):HL(r.errors,n)}else r.errors=t;return t})(UP(e)?e:s);o=pL(t),i=e?!s.some((e=>$P(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=$P(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!yL(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&_L(a,A,e?s:l.mount),i},I=e=>{const t={...s.mount?i:o};return UP(e)?t:yL(e)?$P(t,e):e.map((e=>$P(t,e)))},R=(e,t)=>({invalid:!!$P((t||r).errors,e),isDirty:!!$P((t||r).dirtyFields,e),error:$P((t||r).errors,e),isValidating:!!$P(r.validatingFields,e),isTouched:!!$P((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=($P(a,e,{_f:{}})._f||{}).ref,i=$P(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;qP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?fL(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(HL(a,s),HL(i,s)),!t.keepError&&HL(r.errors,s),!t.keepDirty&&HL(r.dirtyFields,s),!t.keepTouched&&HL(r.touchedFields,s),!t.keepIsValidating&&HL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&HL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(VP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,QL(n?n._f:$P(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=$P(a,e);const i=VP(t.disabled)||VP(n.disabled);return qP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:VP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:ZL(t.min),max:ZL(t.max),minLength:ZL(t.minLength),maxLength:ZL(t.maxLength),pattern:ZL(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:i=>{if(i){D(e,t),r=$P(a,e);const n=UP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>IL(e)||OP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;qP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(GL),n,...Array.isArray($P(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=$P(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!jP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&_L(a,A,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=HP(i);if(l.disabled.size)for(const e of l.disabled)qP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(HL(r.errors,"root"),pL(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pL(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(e,t={})=>{const c=e?HP(e):o,p=HP(c),h=pL(e),f=h?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(KL(o,i))]);for(const t of Array.from(e))$P(r.dirtyFields,t)?qP(f,t,$P(i,t)):T(t,$P(f,t))}else{if(BP&&UP(e))for(const e of l.mount){const t=$P(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(AL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?HP(o):{}:HP(f),d.array.next({values:{...f}}),d.values.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!h&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||$L(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&i?KL(o,i):r.dirtyFields:t.keepDefaultValues&&e?KL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>j(CL(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=$P(a,e);t&&(t._f.refs?t._f.refs.every((e=>!GL(e))):!GL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,h=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,h&&Array.isArray($P(a,e))){const t=l($P(a,e),c.argA,c.argB);p&&qP(a,e,t)}if(h&&Array.isArray($P(r.errors,e))){const t=l($P(r.errors,e),c.argA,c.argB);p&&qP(r.errors,e,t),((e,t)=>{!zP($P(e,t)).length&&HL(e,t)})(r.errors,e)}if(u.touchedFields&&h&&Array.isArray($P(r.touchedFields,e))){const t=l($P(r.touchedFields,e),c.argA,c.argB);p&&qP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=KL(o,i)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else qP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>zP($P(s.mount?i:o,e,n.shouldUnregister?$P(o,e,[]):[])),_reset:j,_resetDefaultValues:()=>CL(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{VP(e)&&(d.state.next({disabled:e}),_L(a,((t,n)=>{const r=$P(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:N,register:D,handleSubmit:F,watch:(e,t)=>CL(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:T,getValues:I,reset:B,resetField:(e,t={})=>{$P(a,e)&&(UP(t.defaultValue)?T(e,HP($P(o,e))):(T(e,t.defaultValue),qP(o,e,HP(t.defaultValue))),t.keepTouched||HL(r.touchedFields,e),t.keepDirty||(HL(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,HP($P(o,e))):x()),t.keepError||(HL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&fL(e).forEach((e=>HL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=$P(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&CL(e.select)&&e.select())}},getFieldState:R}}function rD(e={}){const t=X.useRef(void 0),n=X.useRef(void 0),[r,a]=X.useState({isDirty:!1,isValidating:!1,isLoading:CL(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:CL(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...nD(e),formState:r});const o=t.current.control;return o._options=e,gL({subject:o._subjects.state,next:e=>{hL(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),X.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),X.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),X.useEffect((()=>{e.values&&!$L(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),X.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),X.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),X.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=dL(r,o),t.current}const aD=K.createContext(void 0),oD=({children:e,modal:t})=>qh.jsx(aD.Provider,{value:t,children:e}),iD=()=>K.useContext(aD);var sD=(e,t=[])=>({parts:(...n)=>{if(cD(t))return sD(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>sD(e,[...t,...n]),omit:(...n)=>sD(e,t.filter((e=>!n.includes(e)))),rename:e=>sD(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce(((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${lD(e)}"][data-part="${lD(n)}"]`,`& [data-scope="${lD(e)}"][data-part="${lD(n)}"]`].join(", "),attrs:{"data-scope":lD(e),"data-part":lD(n)}}})),{})}),lD=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),cD=e=>0===e.length;var uD=(e,...t)=>e.filter((e=>!t.includes(e))),dD=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?uD(e,t):((e,...t)=>e.concat(t))(e,t),pD=e=>"Array"===(null==e?void 0:e.constructor.name),hD=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof(null==e?void 0:e.isEqual)&&"function"==typeof(null==t?void 0:t.isEqual))return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(pD(e)&&pD(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hD(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let a=0;a<r;a++){if(!Reflect.has(e,n[a]))return!1}for(let a=0;a<r;a++){const r=n[a];if(!hD(e[r],t[r]))return!1}return!0},fD=e=>null!=e&&"object"==typeof e,mD=e=>fD(e)&&!(e=>Array.isArray(e))(e),gD=e=>"function"==typeof e,yD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bD=Function.prototype.toString,vD=bD.call(Object),kD=e=>{if(!fD(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||wD(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=yD(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bD.call(n)==vD},wD=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),xD=e=>e(),ED=()=>{},_D=(...e)=>(...t)=>{e.forEach((function(e){null==e||e(...t)}))};function SD(e,t,...n){var r;if(e in t){const r=t[e];return gD(r)?r(...n):r}const a=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw null==(r=Error.captureStackTrace)||r.call(Error,a,SD),a}function TD(e){if(!kD(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter((e=>"string"==typeof e)),n={};for(const r of t){const t=e[r];void 0!==t&&(n[r]=TD(t))}return n}function CD(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function AD(e,t){if(null==e)throw new Error(t())}var ND=Object.defineProperty,ID=(e,t,n)=>((e,t,n)=>t in e?ND(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),RD={itemToValue:e=>"string"==typeof e?e:mD(e)&&yD(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:mD(e)&&yD(e,"label")?e.label:RD.itemToValue(e),isItemDisabled:e=>!(!mD(e)||!yD(e,"disabled"))&&!!e.disabled},OD=class e{constructor(t){this.options=t,ID(this,"items"),ID(this,"indexMap",null),ID(this,"copy",(t=>new e({...this.options,items:t??[...this.items]}))),ID(this,"isEqual",(e=>hD(this.items,e.items))),ID(this,"setItems",(e=>this.copy(e))),ID(this,"getValues",((e=this.items)=>{const t=[];for(const n of e){const e=this.getItemValue(n);null!=e&&t.push(e)}return t})),ID(this,"find",(e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null})),ID(this,"findMany",(e=>{const t=[];for(const n of e){const e=this.find(n);null!=e&&t.push(e)}return t})),ID(this,"at",(e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const n=this.group();for(const[,r]of n)for(const n of r){if(t===e)return n;t++}return null})),ID(this,"sortFn",((e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0))),ID(this,"sort",(e=>[...e].sort(this.sortFn.bind(this)))),ID(this,"getItemValue",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToValue)?void 0:n.call(t,e))??RD.itemToValue(e)})),ID(this,"getItemDisabled",(e=>{var t,n;return null!=e&&((null==(n=(t=this.options).isItemDisabled)?void 0:n.call(t,e))??RD.isItemDisabled(e))})),ID(this,"stringifyItem",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToString)?void 0:n.call(t,e))??RD.itemToString(e)})),ID(this,"stringify",(e=>null==e?null:this.stringifyItem(this.find(e)))),ID(this,"stringifyItems",((e,t=", ")=>{const n=[];for(const r of e){const e=this.stringifyItem(r);null!=e&&n.push(e)}return n.join(t)})),ID(this,"stringifyMany",((e,t)=>this.stringifyItems(this.findMany(e),t))),ID(this,"has",(e=>-1!==this.indexOf(e))),ID(this,"hasItem",(e=>null!=e&&this.has(this.getItemValue(e)))),ID(this,"group",(()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const n=new Map;this.items.forEach(((t,r)=>{const a=e(t,r);n.has(a)||n.set(a,[]),n.get(a).push(t)}));let r=Array.from(n.entries());return t&&r.sort((([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){const r=t.indexOf(e),a=t.indexOf(n);return-1===r?1:-1===a?-1:r-a}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0})),r})),ID(this,"getNextValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))})),ID(this,"getPreviousValue",((e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))})),ID(this,"indexOf",(e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex((t=>this.getItemValue(t)===e));if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,n]of t)for(const t of n){const n=this.getItemValue(t);null!=n&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1})),ID(this,"getByText",((e,t)=>{const n=null!=t?this.indexOf(t):-1,r=1===e.length;for(let a=0;a<this.items.length;a++){const o=this.items[(n+a+1)%this.items.length];if((!r||this.getItemValue(o)!==t)&&(!this.getItemDisabled(o)&&PD(this.stringifyItem(o),e)))return o}})),ID(this,"search",((e,t)=>{const{state:n,currentValue:r,timeout:a=350}=t,o=n.keysSoFar+e,i=o.length>1&&Array.from(o).every((e=>e===o[0]))?o[0]:o,s=this.getByText(i,r),l=this.getItemValue(s);function c(){clearTimeout(n.timer),n.timer=-1}return function e(t){n.keysSoFar=t,c(),""!==t&&(n.timer=+setTimeout((()=>{e(""),c()}),a))}(o),l})),ID(this,"update",((e,t)=>{let n=this.indexOf(e);return-1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])})),ID(this,"upsert",((e,t,n="append")=>{let r=this.indexOf(e);if(-1===r){return("append"===n?this.append:this.prepend)(t)}return this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])})),ID(this,"insert",((e,...t)=>this.copy(LD(this.items,e,...t)))),ID(this,"insertBefore",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(LD(this.items,n,...t))})),ID(this,"insertAfter",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(LD(this.items,n+1,...t))})),ID(this,"prepend",((...e)=>this.copy(LD(this.items,0,...e)))),ID(this,"append",((...e)=>this.copy(LD(this.items,this.items.length,...e)))),ID(this,"filter",(e=>{const t=this.items.filter(((t,n)=>e(this.stringifyItem(t),n,t)));return this.copy(t)})),ID(this,"remove",((...e)=>{const t=e.map((e=>"string"==typeof e?e:this.getItemValue(e)));return this.copy(this.items.filter((e=>{const n=this.getItemValue(e);return null!=n&&!t.includes(n)})))})),ID(this,"move",((e,t)=>{const n=this.indexOf(e);return-1===n?this:this.copy(DD(this.items,[n],t))})),ID(this,"moveBefore",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(DD(this.items,r,n))})),ID(this,"moveAfter",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let r=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(DD(this.items,r,n+1))})),ID(this,"reorder",((e,t)=>this.copy(DD(this.items,[e],t)))),ID(this,"compareValue",((e,t)=>{const n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:n>r?1:0})),ID(this,"range",((e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]})),ID(this,"getValueRange",((e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[])),ID(this,"toString",(()=>{let e="";for(const t of this.items){e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e})),ID(this,"toJSON",(()=>({size:this.size,first:this.firstValue,last:this.lastValue}))),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},PD=(e,t)=>!!(null==e?void 0:e.toLowerCase().startsWith(t.toLowerCase()));function LD(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function DD(e,t,n){const r=(t=[...t].sort(((e,t)=>e-t))).map((t=>e[t]));for(let a=t.length-1;a>=0;a--)e=[...e.slice(0,t[a]),...e.slice(t[a]+1)];return n=Math.max(0,n-t.filter((e=>e<n)).length),[...e.slice(0,n),...r,...e.slice(n)]}var MD=Object.defineProperty,FD=(e,t,n)=>((e,t,n)=>t in e?MD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);var jD=()=>{},BD=e=>"object"==typeof e&&null!==e,HD=e=>e?"":void 0,zD=e=>e?"true":void 0,UD=e=>BD(e)&&1===e.nodeType&&"string"==typeof e.nodeName,$D=e=>BD(e)&&9===e.nodeType,VD=e=>UD(e)?e.localName||"":"#document";var GD=e=>(e=>BD(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function WD(e){if(!e)return!1;return ZD(e.getRootNode())===e}var qD=/(textarea|select)/;function YD(e){if(null==e||!UD(e))return!1;try{return(e=>UD(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||qD.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function KD(e,t){var n;if(!e||!t)return!1;if(!UD(e)||!UD(t))return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e===t)return!0;if(e.contains(t))return!0;if(r&&GD(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function XD(e){return $D(e)?e:(e=>BD(e)&&e===e.window)(e)?e.document:(null==e?void 0:e.ownerDocument)??document}function QD(e){var t;return GD(e)?QD(e.host):$D(e)?e.defaultView??window:UD(e)?(null==(t=e.ownerDocument)?void 0:t.defaultView)??window:window}function ZD(e){let t=e.activeElement;for(;null==t?void 0:t.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function JD(e){if("html"===VD(e))return e;const t=e.assignedSlot||e.parentNode||GD(e)&&e.host||XD(e).documentElement;return GD(t)?t.host:t}function eM(e){let t;try{if(t=e.getRootNode({composed:!0}),$D(t)||GD(t))return t}catch{}return e.ownerDocument??document}var tM=new WeakMap;function nM(e){return tM.has(e)||tM.set(e,QD(e).getComputedStyle(e)),tM.get(e)}var rM=new Set(["menu","listbox","dialog","grid","tree","region"]),aM=e=>rM.has(e),oM=e=>{var t;return(null==(t=e.getAttribute("aria-controls"))?void 0:t.split(" "))||[]};function iM(e,t){const n=new Set,r=eM(e),a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=oM(i);for(const o of e){if(!o||n.has(o))continue;n.add(o);const e=r.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");if(n&&aM(n)&&!r){if(e===t||e.contains(t))return!0;if(a(e))return!0}}}}return!1};return a(e)}function sM(e){const t=new Set;return function(e,t){const n=eM(e),r=new Set,a=e=>{const o=e.querySelectorAll("[aria-controls]");for(const i of o){if("true"!==i.getAttribute("aria-expanded"))continue;const e=oM(i);for(const o of e){if(!o||r.has(o))continue;r.add(o);const e=n.getElementById(o);if(e){const n=e.getAttribute("role"),r="true"===e.getAttribute("aria-modal");n&&rM.has(n)&&!r&&(t(e),a(e))}}}};a(e)}(e,(n=>{e.contains(n)||t.add(n)})),Array.from(t)}function lM(e){if(!e.id)return!1;const t=eM(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`,a=t.querySelector(r);return Boolean(a&&function(e){const t=e.getAttribute("role");return Boolean(t&&rM.has(t))}(e))}var cM=()=>"undefined"!=typeof document;var uM=e=>cM()&&e.test(function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)??navigator.platform}()),dM=e=>cM()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((({brand:e,version:t})=>`${e}/${t}`)).join(" "):navigator.userAgent}()),pM=()=>cM()&&!!navigator.maxTouchPoints,hM=()=>uM(/^Mac/i);function fM(e){const t=function(e){var t,n,r;return(null==(t=e.composedPath)?void 0:t.call(e))??(null==(r=null==(n=e.nativeEvent)?void 0:n.composedPath)?void 0:r.call(n))}(e);return(null==t?void 0:t[0])??e.target}function mM(e){const t=e.currentTarget;if(!t)return!1;if(!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const n=1===e.button,r=(a=e,hM()?a.metaKey:a.ctrlKey);var a;return n||r}var gM=e=>0===e.button,yM=e=>2===e.button||hM()&&e.ctrlKey&&0===e.button,bM={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},vM={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function kM(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let a=e.key;a=bM[a]??a;return"rtl"===n&&"horizontal"===r&&a in vM&&(a=vM[a]),a}var wM=(e,t,n,r)=>{const a="function"==typeof e?e():e;return null==a||a.addEventListener(t,n,r),()=>{null==a||a.removeEventListener(t,n,r)}},xM=e=>UD(e)&&"IFRAME"===e.tagName,EM=/^(audio|video|details)$/;function _M(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}function SM(e,t){if(!t)return null;if(!0===t)return e.shadowRoot||null;const n=t(e);return(!0===n?e.shadowRoot:n)||null}function TM(e,t,n){const r=[...e],a=[...e],o=new Set,i=new Map;e.forEach(((e,t)=>i.set(e,t)));let s=0;for(;s<a.length;){const e=a[s++];if(!e||o.has(e))continue;o.add(e);const l=SM(e,t);if(l){const t=Array.from(l.querySelectorAll(CM)).filter(n),o=i.get(e);if(void 0!==o){const e=o+1;r.splice(e,0,...t),t.forEach(((t,n)=>{i.set(t,e+n)}));for(let n=e+t.length;n<r.length;n++)i.set(r[n],n)}else{const e=r.length;r.push(...t),t.forEach(((t,n)=>{i.set(t,e+n)}))}a.push(...t)}}return r}var CM="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",AM=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(CM));(1==n||"if-empty"==n&&0===a.length)&&UD(e)&&NM(e)&&a.unshift(e);const o=[];for(const i of a)if(NM(i))if(xM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...AM(e,{getShadowRoot:r}))}else o.push(i);return r?TM(o,r,NM):o};function NM(e){return!(!UD(e)||e.closest("[inert]"))&&(e.matches(CM)&&(!!UD(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)));var t}function IM(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,a=Array.from(e.querySelectorAll(CM));n&&RM(e)&&a.unshift(e);const o=[];for(const i of a)if(RM(i))if(xM(i)&&i.contentDocument){const e=i.contentDocument.body;o.push(...IM(e,{getShadowRoot:r}))}else o.push(i);if(r){const e=TM(o,r,RM);return!e.length&&n?a:e}return!o.length&&n?a:o}function RM(e){return!!(UD(e)&&e.tabIndex>0)||NM(e)&&!(e=>_M(e)<0)(e)}function OM(e){return e.tabIndex<0&&(EM.test(e.localName)||YD(e))&&(t=e,Number.isNaN(_M(t)))?0:e.tabIndex;var t}var PM=class e{constructor(){FD(this,"id",null),FD(this,"fn_cleanup"),FD(this,"cleanup",(()=>{this.cancel()}))}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame((()=>{this.id=null,this.fn_cleanup=null==e?void 0:e()}))}cancel(){var e;null!==this.id&&(globalThis.cancelAnimationFrame(this.id),this.id=null),null==(e=this.fn_cleanup)||e.call(this),this.fn_cleanup=void 0}isActive(){return null!==this.id}};function LM(e){const t=PM.create();return t.request(e),t.cleanup}function DM(e){const t=new Set;function n(e){const n=globalThis.requestAnimationFrame(e);t.add((()=>globalThis.cancelAnimationFrame(n)))}return n((()=>n(e))),function(){t.forEach((e=>e()))}}function MM(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(function(e,t){if(!e)return;const{attributes:n,callback:r}=t,a=new(e.ownerDocument.defaultView||window).MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)}));return a.observe(e,{attributes:!0,attributeFilter:n}),()=>a.disconnect()}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function FM(e){const t=()=>{const t=QD(e);e.dispatchEvent(new t.MouseEvent("click"))};dM(/Firefox/i)?function(e,t,n){const r=LM((()=>{e.removeEventListener(t,a,!0),n()})),a=()=>{r(),n()};e.addEventListener(t,a,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function jM(e){const t=JD(e);return["html","body","#document"].includes(VD(t))?XD(t).body:UD(t)&&zM(t)?t:jM(t)}var BM=/auto|scroll|overlay|hidden|clip/,HM=new Set(["inline","contents"]);function zM(e){const t=QD(e),{overflow:n,overflowX:r,overflowY:a,display:o}=t.getComputedStyle(e);return BM.test(n+a+r)&&!HM.has(o)}function UM(e,t){const{rootEl:n,...r}=t||{};e&&n&&zM(n)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(n)&&e.scrollIntoView(r)}function $M(e,t){if(!e)return jD;const n=Object.keys(t).reduce(((t,n)=>(t[n]=e.style.getPropertyValue(n),t)),{});return r=n,a=t,Object.keys(r).every((e=>r[e]===a[e]))?jD:(Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")});var r,a}function VM(e,t){const{timeout:n,rootNode:r}=t,a=QD(r),o=XD(r),i=new a.AbortController;return function(e,t,n){const{signal:r}=t;return[new Promise(((t,a)=>{const o=setTimeout((()=>{a(new Error(`Timeout of ${n}ms exceeded`))}),n);r.addEventListener("abort",(()=>{clearTimeout(o),a(new Error("Promise aborted"))})),e.then((e=>{r.aborted||(clearTimeout(o),t(e))})).catch((e=>{r.aborted||(clearTimeout(o),a(e))}))})),()=>t.abort()]}(new Promise((t=>{const n=e();if(n)return void t(n);const r=new a.MutationObserver((()=>{const n=e();n&&n.isConnected&&(r.disconnect(),t(n))}));r.observe(o.body,{childList:!0,subtree:!0})})),i,n)}const GM=["top","right","bottom","left"],WM=Math.min,qM=Math.max,YM=Math.round,KM=Math.floor,XM=e=>({x:e,y:e}),QM={left:"right",right:"left",bottom:"top",top:"bottom"},ZM={start:"end",end:"start"};function JM(e,t,n){return qM(e,WM(t,n))}function eF(e,t){return"function"==typeof e?e(t):e}function tF(e){return e.split("-")[0]}function nF(e){return e.split("-")[1]}function rF(e){return"x"===e?"y":"x"}function aF(e){return"y"===e?"height":"width"}const oF=new Set(["top","bottom"]);function iF(e){return oF.has(tF(e))?"y":"x"}function sF(e){return rF(iF(e))}function lF(e){return e.replace(/start|end/g,(e=>ZM[e]))}const cF=["left","right"],uF=["right","left"],dF=["top","bottom"],pF=["bottom","top"];function hF(e,t,n,r){const a=nF(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?uF:cF:t?cF:uF;case"left":case"right":return t?dF:pF;default:return[]}}(tF(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(lF)))),o}function fF(e){return e.replace(/left|right|bottom|top/g,(e=>QM[e]))}function mF(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gF(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function yF(e,t,n){let{reference:r,floating:a}=e;const o=iF(t),i=sF(t),s=aF(i),l=tF(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(nF(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function bF(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=eF(t,e),f=mF(h),m=s[p?"floating"===d?"reference":"floating":d],g=gF(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=gF(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function vF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kF(e){return GM.some((t=>e[t]>=0))}const wF=new Set(["left","top"]);function xF(){return"undefined"!=typeof window}function EF(e){return TF(e)?(e.nodeName||"").toLowerCase():"#document"}function _F(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function SF(e){var t;return null==(t=(TF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function TF(e){return!!xF()&&(e instanceof Node||e instanceof _F(e).Node)}function CF(e){return!!xF()&&(e instanceof Element||e instanceof _F(e).Element)}function AF(e){return!!xF()&&(e instanceof HTMLElement||e instanceof _F(e).HTMLElement)}function NF(e){return!(!xF()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _F(e).ShadowRoot)}const IF=new Set(["inline","contents"]);function RF(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=$F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!IF.has(a)}const OF=new Set(["table","td","th"]);function PF(e){return OF.has(EF(e))}const LF=[":popover-open",":modal"];function DF(e){return LF.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}const MF=["transform","translate","scale","rotate","perspective"],FF=["transform","translate","scale","rotate","perspective","filter"],jF=["paint","layout","strict","content"];function BF(e){const t=HF(),n=CF(e)?$F(e):e;return MF.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||FF.some((e=>(n.willChange||"").includes(e)))||jF.some((e=>(n.contain||"").includes(e)))}function HF(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const zF=new Set(["html","body","#document"]);function UF(e){return zF.has(EF(e))}function $F(e){return _F(e).getComputedStyle(e)}function VF(e){return CF(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function GF(e){if("html"===EF(e))return e;const t=e.assignedSlot||e.parentNode||NF(e)&&e.host||SF(e);return NF(t)?t.host:t}function WF(e){const t=GF(e);return UF(t)?e.ownerDocument?e.ownerDocument.body:e.body:AF(t)&&RF(t)?t:WF(t)}function qF(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=WF(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=_F(a);if(o){const e=YF(i);return t.concat(i,i.visualViewport||[],RF(a)?a:[],e&&n?qF(e):[])}return t.concat(a,qF(a,[],n))}function YF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function KF(e){const t=$F(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=AF(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=YM(n)!==o||YM(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function XF(e){return CF(e)?e:e.contextElement}function QF(e){const t=XF(e);if(!AF(t))return XM(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=KF(t);let i=(o?YM(n.width):n.width)/r,s=(o?YM(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ZF=XM(0);function JF(e){const t=_F(e);return HF()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ZF}function ej(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=XF(e);let i=XM(1);t&&(r?CF(r)&&(i=QF(r)):i=QF(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==_F(e))&&t}(o,n,r)?JF(o):XM(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=_F(o),t=r&&CF(r)?_F(r):r;let n=e,a=YF(n);for(;a&&r&&t!==n;){const e=QF(a),t=a.getBoundingClientRect(),r=$F(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=_F(a),a=YF(n)}}return gF({width:u,height:d,x:l,y:c})}function tj(e,t){const n=VF(e).scrollLeft;return t?t.left+n:ej(SF(e)).left+n}function nj(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tj(e,n),y:n.top+t.scrollTop}}const rj=new Set(["absolute","fixed"]);function aj(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=_F(e),r=SF(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=HF();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const c=tj(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=SF(e),n=VF(e),r=e.ownerDocument.body,a=qM(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qM(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+tj(e);const s=-n.scrollTop;return"rtl"===$F(r).direction&&(i+=qM(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(SF(e));else if(CF(t))r=function(e,t){const n=ej(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=AF(e)?QF(e):XM(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=JF(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gF(r)}function oj(e,t){const n=GF(e);return!(n===t||!CF(n)||UF(n))&&("fixed"===$F(n).position||oj(n,t))}function ij(e,t,n){const r=AF(t),a=SF(t),o="fixed"===n,i=ej(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=XM(0);function c(){l.x=tj(a)}if(r||!r&&!o)if(("body"!==EF(t)||RF(a))&&(s=VF(t)),r){const e=ej(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();o&&!r&&a&&c();const u=!a||r||o?XM(0):nj(a,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function sj(e){return"static"===$F(e).position}function lj(e,t){if(!AF(e)||"fixed"===$F(e).position)return null;if(t)return t(e);let n=e.offsetParent;return SF(e)===n&&(n=n.ownerDocument.body),n}function cj(e,t){const n=_F(e);if(DF(e))return n;if(!AF(e)){let t=GF(e);for(;t&&!UF(t);){if(CF(t)&&!sj(t))return t;t=GF(t)}return n}let r=lj(e,t);for(;r&&PF(r)&&sj(r);)r=lj(r,t);return r&&UF(r)&&sj(r)&&!BF(r)?n:r||function(e){let t=GF(e);for(;AF(t)&&!UF(t);){if(BF(t))return t;if(DF(t))return null;t=GF(t)}return null}(e)||n}const uj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=SF(r),s=!!t&&DF(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=XM(1);const u=XM(0),d=AF(r);if((d||!d&&!o)&&(("body"!==EF(r)||RF(i))&&(l=VF(r)),AF(r))){const e=ej(r);c=QF(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?XM(0):nj(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:SF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?DF(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=qF(e,[],!1).filter((e=>CF(e)&&"body"!==EF(e))),a=null;const o="fixed"===$F(e).position;let i=o?GF(e):e;for(;CF(i)&&!UF(i);){const t=$F(i),n=BF(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&rj.has(a.position)||RF(i)&&!n&&oj(e,i))?r=r.filter((e=>e!==i)):a=t,i=GF(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=aj(t,n,a);return e.top=qM(r.top,e.top),e.right=WM(r.right,e.right),e.bottom=WM(r.bottom,e.bottom),e.left=qM(r.left,e.left),e}),aj(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:cj,getElementRects:async function(e){const t=this.getOffsetParent||cj,n=this.getDimensions,r=await n(e.floating);return{reference:ij(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=KF(e);return{width:t,height:n}},getScale:QF,isElement:CF,isRTL:function(e){return"rtl"===$F(e).direction}};function dj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pj(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=XF(e),u=a||o?[...c?qF(c):[],...qF(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=SF(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-KM(d)+"px "+-KM(a.clientWidth-(u+p))+"px "+-KM(a.clientHeight-(d+h))+"px "+-KM(u)+"px",threshold:qM(0,WM(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||dj(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(y){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?ej(e):null;return l&&function t(){const r=ej(e);m&&!dj(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const hj=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=tF(n),s=nF(n),l="y"===iF(n),c=wF.has(i)?-1:1,u=o&&l?-1:1,d=eF(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},fj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eF(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),p=iF(tF(a)),h=rF(p);let f=u[h],m=u[p];if(i){const e="y"===h?"bottom":"right";f=JM(f+d["y"===h?"top":"left"],f,f-d[e])}if(s){const e="y"===p?"bottom":"right";m=JM(m+d["y"===p?"top":"left"],m,m-d[e])}const g=l.fn({...t,[h]:f,[p]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[p]:s}}}}}},mj=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=eF(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=tF(a),b=iF(s),v=tF(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[fF(s)]:function(e){const t=fF(e);return[lF(e),t,lF(t)]}(s)),x="none"!==f;!p&&x&&w.push(...hF(s,m,f,k));const E=[s,...w],_=await l.detectOverflow(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=nF(e),a=sF(e),o=aF(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=fF(i)),[i,fF(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&b!==iF(t))||T.every((e=>iF(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=iF(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},gj=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=eF(e,t),u=await i.detectOverflow(t,c),d=tF(a),p=nF(a),h="y"===iF(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=WM(m-u[g],b),w=WM(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=qM(u.left,0),t=qM(u.right,0),n=qM(u.top,0),r=qM(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:qM(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:qM(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},yj=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=eF(e,t);switch(a){case"referenceHidden":{const e=vF(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:kF(e)}}}case"escaped":{const e=vF(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:kF(e)}}}default:return{}}}}},bj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=eF(e,t)||{};if(null==c)return{};const d=mF(u),p={x:n,y:r},h=sF(a),f=aF(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=WM(d[y],S),C=WM(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=JM(A,I,N),O=!l.arrow&&null!=nF(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),vj=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=eF(e,t),u={x:n,y:r},d=iF(a),p=rF(d);let h=u[p],f=u[d];const m=eF(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=wF.has(tF(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},kj=(e,t,n)=>{const r=new Map,a={platform:uj,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=yF(c,r,l),p=r,h={},f=0;for(let g=0;g<s.length;g++){var m;const{name:n,fn:o}=s[g],{x:y,y:b,data:v,reset:k}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:{...i,detectOverflow:null!=(m=i.detectOverflow)?m:bF},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=b?b:d,h={...h,[n]:{...h[n],...v}},k&&f<=50&&(f++,"object"==typeof k&&(k.placement&&(p=k.placement),k.rects&&(c=!0===k.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),({x:u,y:d}=yF(c,p,l))),g=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};function wj(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const a={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...a,toJSON:()=>a}}function xj(e,t){return{contextElement:UD(e)?e:null==e?void 0:e.contextElement,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return wj();const{x:t,y:n,width:r,height:a}=e;return wj(t,n,r,a)}(r):n.getBoundingClientRect()}}}var Ej=e=>({variable:e,reference:`var(${e})`}),_j={arrowSize:Ej("--arrow-size"),arrowSizeHalf:Ej("--arrow-size-half"),arrowBg:Ej("--arrow-background"),transformOrigin:Ej("--transform-origin"),arrowOffset:Ej("--arrow-offset")};function Sj(e,t){return{name:"transformOrigin",fn(n){var r,a,o,i;const{elements:s,middlewareData:l,placement:c,rects:u,y:d}=n,p=c.split("-")[0],h=(e=>"top"===e||"bottom"===e?"y":"x")(p),f=(null==(r=l.arrow)?void 0:r.x)||0,m=(null==(a=l.arrow)?void 0:a.y)||0,g=(null==t?void 0:t.clientWidth)||0,y=(null==t?void 0:t.clientHeight)||0,b=f+g/2,v=m+y/2,k=Math.abs((null==(o=l.shift)?void 0:o.y)||0),w=u.reference.height/2,x=y/2,E=(null==(i=e.offset)?void 0:i.mainAxis)??e.gutter,_="number"==typeof E?E+x:E??x,S=k>_,T={top:`${b}px calc(100% + ${_}px)`,bottom:`${b}px ${-_}px`,left:`calc(100% + ${_}px) ${v}px`,right:`${-_}px ${v}px`}[p],C=`${b}px ${u.reference.y+w-d}px`,A=Boolean(e.overlap)&&"y"===h&&S;return s.floating.style.setProperty(_j.transformOrigin.variable,A?C:T),{data:{transformOrigin:A?C:T}}}}}var Tj={name:"rects",fn:({rects:e})=>({data:e})},Cj=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:a}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=a?`${a}px`:"",[o]:`calc(100% + ${_j.arrowOffset.reference})`}),{}}}};var Aj={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Nj(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ij(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function Rj(e,t,n){const r=e||t.createElement("div");return bj({element:r,padding:n.arrowPadding})}function Oj(e,t){if(null!=(t.offset??t.gutter))return hj((({placement:n})=>{var r,a;const o=((null==e?void 0:e.clientHeight)||0)/2,i=(null==(r=t.offset)?void 0:r.mainAxis)??t.gutter,s="number"==typeof i?i+o:i??o,{hasAlign:l}=function(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),c=l?void 0:t.shift;return TD({crossAxis:(null==(a=t.offset)?void 0:a.crossAxis)??c,mainAxis:s,alignmentAxis:t.shift})}))}function Pj(e){if(!e.flip)return;const t=Ij(e.boundary);return mj({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function Lj(e){if(!e.slide&&!e.overlap)return;const t=Ij(e.boundary);return fj({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:vj()})}function Dj(e){return gj({padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){const a=e.floating,o=Math.round(t.reference.width),i=Math.round(t.reference.height);r=Math.floor(r),n=Math.floor(n),a.style.setProperty("--reference-width",`${o}px`),a.style.setProperty("--reference-height",`${i}px`),a.style.setProperty("--available-width",`${r}px`),a.style.setProperty("--available-height",`${n}px`)}})}function Mj(e){if(e.hideWhenDetached)return yj({strategy:"referenceHidden",boundary:Ij(e.boundary)??"clippingAncestors"})}function Fj(e,t,n={}){const{defer:r,...a}=n,o=r?LM:e=>e(),i=[];return i.push(o((()=>{const n="function"==typeof e?e():e,r="function"==typeof t?t():t;i.push(function(e,t,n={}){var r;const a=xj((null==(r=n.getAnchorElement)?void 0:r.call(n))??e,n.getAnchorRect);if(!t||!a)return;const o=Object.assign({},Aj,n),i=t.querySelector("[data-part=arrow]"),s=[Oj(i,o),Pj(o),Lj(o),Rj(i,t.ownerDocument,o),Cj(i),Sj({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Dj(o),Mj(o),Tj],{placement:l,strategy:c,onComplete:u,onPositioned:d}=o,p=async()=>{var e;if(!a||!t)return;const n=await kj(a,t,{placement:l,middleware:s,strategy:c});null==u||u(n),null==d||d({placed:!0});const r=QD(t),i=Nj(r,n.x),p=Nj(r,n.y);t.style.setProperty("--x",`${i}px`),t.style.setProperty("--y",`${p}px`),o.hideWhenDetached&&((null==(e=n.middlewareData.hide)?void 0:e.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const h=t.firstElementChild;if(h){const e=nM(h);t.style.setProperty("--z-index",e.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:p,floatingElement:t}),null==d||d({placed:!0})):await p()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(o.listeners),m=o.listeners?pj(a,t,h,f):ED;return h(),()=>{null==m||m(),null==d||d({placed:!1})}}(n,r,a))}))),()=>{i.forEach((e=>null==e?void 0:e()))}}var jj={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};var Bj=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Bj||{}),Hj="__init__";var zj="pointerdown.outside",Uj="focus.outside";function $j(e){for(const t of e)if(UD(t)&&NM(t))return!0;return!1}var Vj=e=>"clientY"in e;function Gj(e,t){if(!t||!Vj(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,a=t.scrollWidth>t.clientWidth,o=a&&e.clientY>t.offsetTop+t.clientHeight;return!!function(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}({x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(a?16:0)},{x:e.clientX,y:e.clientY})&&(r||o)}function Wj(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:o,defer:i,followControlledElements:s=!0}=t;if(!e)return;const l=XD(e),c=QD(e),u=function(e){const t={each(t){var n;for(let r=0;r<(null==(n=e.frames)?void 0:n.length);r+=1){const n=e.frames[r];n&&t(n)}},addEventListener:(e,n,r)=>(t.each((t=>{try{t.document.addEventListener(e,n,r)}catch{}})),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each((t=>{try{t.document.removeEventListener(e,n,r)}catch{}}))}};return t}(c),d=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{null==t||t.addEventListener(e,n,r)}catch{}return()=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{null==t||t.removeEventListener(e,n,r)}catch{}}}}(c);function p(t,r){if(!UD(r))return!1;if(!r.isConnected)return!1;if(KD(e,r))return!1;if(function(e,t){if(!Vj(t)||!e)return!1;const n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;if(s&&iM(e,r))return!1;const a=l.querySelector(`[aria-controls="${e.id}"]`);if(a){if(Gj(t,jM(a)))return!1}return!Gj(t,jM(e))&&!(null==n?void 0:n(r))}const h=new Set,f=GD(null==e?void 0:e.getRootNode());function m(t){function n(n){var r;const s=i&&!pM()?LM:e=>e(),l=n??t,c=(null==(r=null==l?void 0:l.composedPath)?void 0:r.call(l))??[null==l?void 0:l.target];s((()=>{const n=f?c[0]:fM(t);if(e&&p(t,n)){if(a||o){const t=_D(a,o);e.addEventListener(zj,t,{once:!0})}Yj(e,zj,{bubbles:!1,cancelable:!0,detail:{originalEvent:l,contextmenu:yM(l),focusable:$j(c),target:n}})}}))}"touch"===t.pointerType?(h.forEach((e=>e())),h.add(wM(l,"click",n,{once:!0})),h.add(d.addEventListener("click",n,{once:!0})),h.add(u.addEventListener("click",n,{once:!0}))):n()}const g=new Set,y=setTimeout((()=>{g.add(wM(l,"pointerdown",m,!0)),g.add(d.addEventListener("pointerdown",m,!0)),g.add(u.addEventListener("pointerdown",m,!0))}),0);function b(t){(i?LM:e=>e())((()=>{var n;const a=(null==(n=null==t?void 0:t.composedPath)?void 0:n.call(t))??[null==t?void 0:t.target],i=f?a[0]:fM(t);if(e&&p(t,i)){if(r||o){const t=_D(r,o);e.addEventListener(Uj,t,{once:!0})}Yj(e,Uj,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:NM(i),target:i}})}}))}return pM()||(g.add(wM(l,"focusin",b,!0)),g.add(d.addEventListener("focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0))),()=>{clearTimeout(y),h.forEach((e=>e())),g.forEach((e=>e()))}}function qj(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n="function"==typeof e?e():e;a.push(Wj(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}function Yj(e,t,n){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}function Kj(e,t){return wM(XD(e),"keydown",(e=>{"Escape"===e.key&&(e.isComposing||null==t||t(e))}),{capture:!0})}var Xj,Qj="layer:request-dismiss",Zj={layers:[],branches:[],recentlyRemoved:new Set,count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter((e=>e.pointerBlocking))},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var t;return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(null==(t=this.topMostPointerBlockingLayer())?void 0:t.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return(null==t?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter((t=>t.type===e))},getNestedLayersByType(e,t){const n=this.indexOf(e);return-1===n?[]:this.layers.slice(n+1).filter((e=>e.type===t))},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find((e=>e.type===t))},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return!!this.getNestedLayers(e).some((e=>KD(e.node,t)))||this.recentlyRemoved.size>0},isInBranch(e){return Array.from(this.branches).some((t=>KD(t,e)))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);if(!(t<0)){if(this.recentlyRemoved.add(e),DM((()=>this.recentlyRemoved.delete(e))),t<this.count()-1){this.getNestedLayers(e).forEach((t=>Zj.dismiss(t.node,e)))}this.layers.splice(t,1),this.syncLayers()}},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach(((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested");this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)}))},indexOf(e){return this.layers.findIndex((t=>t.node===e))},dismiss(e,t){const n=this.indexOf(e);if(-1===n)return;const r=this.layers[n];var a,o;a=Qj,o=e=>{var t;null==(t=r.requestDismiss)||t.call(r,e),e.defaultPrevented||null==r||r.dismiss()},e.addEventListener(a,o,{once:!0}),function(e,t,n){const r=e.ownerDocument.defaultView||window,a=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});e.dispatchEvent(a)}(e,Qj,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Jj(){Zj.layers.forEach((({node:e})=>{e.style.pointerEvents=Zj.isBelowPointerBlockingLayer(e)?"none":"auto"}))}function eB(e,t){const n=XD(e),r=[];return Zj.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Xj=document.body.style.pointerEvents,queueMicrotask((()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")}))),null==t||t.forEach((e=>{const[t,n]=VM((()=>{const t=e();return UD(t)?t:null}),{timeout:1e3});t.then((e=>r.push($M(e,{pointerEvents:"auto"})))),r.push(n)})),()=>{Zj.hasPointerBlockingLayer()||(queueMicrotask((()=>{n.body.style.pointerEvents=Xj,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")})),r.forEach((e=>e())))}}function tB(e,t){const{defer:n}=t,r=n?LM:e=>e(),a=[];return a.push(r((()=>{const n=gD(e)?e():e;a.push(function(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e)return void CD("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:r,onRequestDismiss:a,pointerBlocking:o,exclude:i,debug:s,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:o,requestDismiss:a};Zj.add(c),Jj();const u=[o?eB(e,t.persistentElements):void 0,Kj(e,(function(n){var a;Zj.isTopMost(e)&&(null==(a=t.onEscapeKeyDown)||a.call(t,n),!n.defaultPrevented&&r&&(n.preventDefault(),r()))})),qj(e,{exclude:function(n){var r;if(!e)return!1;const a="function"==typeof i?i():i,o=Array.isArray(a)?a:[a],s=null==(r=t.persistentElements)?void 0:r.map((e=>e())).filter(UD);return s&&o.push(...s),o.some((e=>KD(e,n)))||Zj.isInNestedLayer(e,n)},onFocusOutside:function(e){var n,a;const o=fM(e.detail.originalEvent);Zj.isInBranch(o)||(null==(n=t.onFocusOutside)||n.call(t,e),null==(a=t.onInteractOutside)||a.call(t,e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),null==r||r()))},onPointerDownOutside:function(n){var a,o;const i=fM(n.detail.originalEvent);Zj.isBelowPointerBlockingLayer(e)||Zj.isInBranch(i)||(null==(a=t.onPointerDownOutside)||a.call(t,n),null==(o=t.onInteractOutside)||o.call(t,n),n.defaultPrevented||(s&&console.log("onPointerDownOutside:",n.detail.originalEvent),null==r||r()))},defer:t.defer})];return()=>{Zj.remove(e),Jj(),function(e){e.style.pointerEvents=""}(e),u.forEach((e=>null==e?void 0:e()))}}(n,t))}))),()=>{a.forEach((e=>null==e?void 0:e()))}}var nB=()=>e=>Array.from(new Set(e)),rB=sD("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger").build(),aB=e=>new OD(e);aB.empty=()=>new OD({items:[]});var oB=e=>{var t;return(null==(t=e.ids)?void 0:t.label)??`combobox:${e.id}:label`},iB=e=>{var t;return(null==(t=e.ids)?void 0:t.control)??`combobox:${e.id}:control`},sB=e=>{var t;return(null==(t=e.ids)?void 0:t.input)??`combobox:${e.id}:input`},lB=e=>{var t;return(null==(t=e.ids)?void 0:t.content)??`combobox:${e.id}:content`},cB=e=>{var t;return(null==(t=e.ids)?void 0:t.positioner)??`combobox:${e.id}:popper`},uB=e=>{var t;return(null==(t=e.ids)?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},dB=e=>{var t;return(null==(t=e.ids)?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},pB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroup)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup:${t}`},hB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.itemGroupLabel)?void 0:r.call(n,t))??`combobox:${e.id}:optgroup-label:${t}`},fB=(e,t)=>{var n,r;return(null==(r=null==(n=e.ids)?void 0:n.item)?void 0:r.call(n,t))??`combobox:${e.id}:option:${t}`},mB=e=>e.getById(lB(e)),gB=e=>e.getById(sB(e)),yB=e=>e.getById(cB(e)),bB=e=>e.getById(iB(e)),vB=e=>e.getById(uB(e)),kB=(e,t)=>{if(null==t)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return function(e,t){return(null==e?void 0:e.querySelector(t))??null}(mB(e),n)},wB=e=>{const t=gB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})};function xB(e,t){const{context:n,prop:r,state:a,send:o,scope:i,computed:s,event:l}=e,c=r("translations"),u=r("collection"),d=!!r("disabled"),p=s("isInteractive"),h=!!r("invalid"),f=!!r("required"),m=!!r("readOnly"),g=a.hasTag("open"),y=a.hasTag("focused"),b=r("composite"),v=n.get("highlightedValue"),k=function(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:a="absolute"}=e;return{arrow:{position:"absolute",width:_j.arrowSize.reference,height:_j.arrowSize.reference,[_j.arrowSizeHalf.variable]:`calc(${_j.arrowSize.reference} / 2)`,[_j.arrowOffset.variable]:`calc(${_j.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?jj[t.split("-")[0]]:void 0,background:_j.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:a,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}({...r("positioning"),placement:n.get("currentPlacement")});function w(e){const t=u.getItemDisabled(e.item),r=u.getItemValue(e.item);return AD(r,(()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`)),{value:r,disabled:Boolean(t||t),highlighted:v===r,selected:n.get("value").includes(r)}}return{focused:y,open:g,inputValue:n.get("inputValue"),highlightedValue:v,highlightedItem:n.get("highlightedItem"),value:n.get("value"),valueAsString:s("valueAsString"),hasSelectedItems:s("hasSelectedItems"),selectedItems:n.get("selectedItems"),collection:r("collection"),multiple:!!r("multiple"),disabled:!!d,syncSelectedItems(){o({type:"SELECTED_ITEMS.SYNC"})},reposition(e={}){o({type:"POSITIONING.SET",options:e})},setHighlightValue(e){o({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){o({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(e){o({type:"ITEM.SELECT",value:e})},setValue(e){o({type:"VALUE.SET",value:e})},setInputValue(e,t="script"){o({type:"INPUT_VALUE.SET",value:e,src:t})},clearValue(e){o(null!=e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},focus(){var e;null==(e=gB(i))||e.focus()},setOpen(e,t="script"){a.hasTag("open")!==e&&o({type:e?"OPEN":"CLOSE",src:t})},getRootProps(){return t.element({...rB.root.attrs,dir:r("dir"),id:(e=i,(null==(n=e.ids)?void 0:n.root)??`combobox:${e.id}`),"data-invalid":HD(h),"data-readonly":HD(m)});var e,n},getLabelProps:()=>t.label({...rB.label.attrs,dir:r("dir"),htmlFor:sB(i),id:oB(i),"data-readonly":HD(m),"data-disabled":HD(d),"data-invalid":HD(h),"data-required":HD(f),"data-focus":HD(y),onClick(e){var t;b||(e.preventDefault(),null==(t=vB(i))||t.focus({preventScroll:!0}))}}),getControlProps:()=>t.element({...rB.control.attrs,dir:r("dir"),id:iB(i),"data-state":g?"open":"closed","data-focus":HD(y),"data-disabled":HD(d),"data-invalid":HD(h)}),getPositionerProps:()=>t.element({...rB.positioner.attrs,dir:r("dir"),id:cB(i),style:k.floating}),getInputProps:()=>t.input({...rB.input.attrs,dir:r("dir"),"aria-invalid":zD(h),"data-invalid":HD(h),"data-autofocus":HD(r("autoFocus")),name:r("name"),form:r("form"),disabled:d,required:r("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:m,placeholder:r("placeholder"),id:sB(i),type:"text",role:"combobox",defaultValue:n.get("inputValue"),"aria-autocomplete":s("autoComplete")?"both":"list","aria-controls":lB(i),"aria-expanded":g,"data-state":g?"open":"closed","aria-activedescendant":v?fB(i,v):void 0,onClick(e){e.defaultPrevented||r("openOnClick")&&p&&o({type:"INPUT.CLICK",src:"input-click"})},onFocus(){d||o({type:"INPUT.FOCUS"})},onBlur(){d||o({type:"INPUT.BLUR"})},onChange(e){o({type:"INPUT.CHANGE",value:e.currentTarget.value,src:"input-change"})},onKeyDown(e){if(e.defaultPrevented)return;if(!p)return;if(e.ctrlKey||e.shiftKey||function(e){return function(e){return e.nativeEvent??e}(e).isComposing||229===e.keyCode}(e))return;const t=r("openOnKeyPress"),n=e.ctrlKey||e.metaKey||e.shiftKey,a=!0,l={ArrowDown(e){(t||g)&&(o({type:e.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:a,src:"arrow-key"}),e.preventDefault())},ArrowUp(){(t||g)&&(o({type:e.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:a,src:"arrow-key"}),e.preventDefault())},Home(e){n||(o({type:"INPUT.HOME",keypress:a}),g&&e.preventDefault())},End(e){n||(o({type:"INPUT.END",keypress:a}),g&&e.preventDefault())},Enter(e){var t;o({type:"INPUT.ENTER",keypress:a,src:"item-select"});const n=s("isCustomValue")&&r("allowCustomValue"),l=null!=v,c=r("alwaysSubmitOnEnter");if(g&&!n&&!c&&l&&e.preventDefault(),null==v)return;const u=kB(i,v);var d;(null==(d=u)?void 0:d.matches("a[href]"))&&(null==(t=r("navigate"))||t({value:v,node:u,href:u.href}))},Escape(){o({type:"INPUT.ESCAPE",keypress:a,src:"escape-key"}),e.preventDefault()}}[kM(e,{dir:r("dir")})];null==l||l(e)}}),getTriggerProps:(e={})=>t.button({...rB.trigger.attrs,dir:r("dir"),id:uB(i),"aria-haspopup":b?"listbox":"dialog",type:"button",tabIndex:e.focusable?void 0:-1,"aria-label":c.triggerLabel,"aria-expanded":g,"data-state":g?"open":"closed","aria-controls":g?lB(i):void 0,disabled:d,"data-invalid":HD(h),"data-focusable":HD(e.focusable),"data-readonly":HD(m),"data-disabled":HD(d),onFocus(){e.focusable&&o({type:"INPUT.FOCUS",src:"trigger"})},onClick(e){e.defaultPrevented||p&&gM(e)&&o({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(e){p&&"touch"!==e.pointerType&&gM(e)&&(e.preventDefault(),queueMicrotask((()=>{var e;null==(e=gB(i))||e.focus({preventScroll:!0})})))},onKeyDown(e){if(e.defaultPrevented)return;if(b)return;const t={ArrowDown(){o({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){o({type:"INPUT.ARROW_UP",src:"arrow-key"})}}[kM(e,{dir:r("dir")})];t&&(t(e),e.preventDefault())}}),getContentProps:()=>t.element({...rB.content.attrs,dir:r("dir"),id:lB(i),role:b?"listbox":"dialog",tabIndex:-1,hidden:!g,"data-state":g?"open":"closed","data-placement":n.get("currentPlacement"),"aria-labelledby":oB(i),"aria-multiselectable":!(!r("multiple")||!b)||void 0,"data-empty":HD(0===u.size),onPointerDown(e){gM(e)&&e.preventDefault()}}),getListProps:()=>t.element({...rB.list.attrs,role:b?void 0:"listbox","data-empty":HD(0===u.size),"aria-labelledby":oB(i),"aria-multiselectable":!(!r("multiple")||b)||void 0}),getClearTriggerProps:()=>t.button({...rB.clearTrigger.attrs,dir:r("dir"),id:dB(i),type:"button",tabIndex:-1,disabled:d,"data-invalid":HD(h),"aria-label":c.clearTriggerLabel,"aria-controls":sB(i),hidden:!n.get("value").length,onPointerDown(e){gM(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||p&&o({type:"VALUE.CLEAR",src:"clear-trigger"})}}),getItemState:w,getItemProps(e){const n=w(e),a=n.value;return t.element({...rB.item.attrs,dir:r("dir"),id:fB(i,a),role:"option",tabIndex:-1,"data-highlighted":HD(n.highlighted),"data-state":n.selected?"checked":"unchecked","aria-selected":zD(n.highlighted),"aria-disabled":zD(n.disabled),"data-disabled":HD(n.disabled),"data-value":n.value,onPointerMove(){n.disabled||n.highlighted||o({type:"ITEM.POINTER_MOVE",value:a})},onPointerLeave(){if(e.persistFocus)return;if(n.disabled)return;const t=l.previous();(null==t?void 0:t.type.includes("POINTER"))&&o({type:"ITEM.POINTER_LEAVE",value:a})},onClick(e){(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)})(e)||mM(e)||yM(e)||n.disabled||o({type:"ITEM.CLICK",src:"item-select",value:a})}})},getItemTextProps(e){const n=w(e);return t.element({...rB.itemText.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked","data-disabled":HD(n.disabled),"data-highlighted":HD(n.highlighted)})},getItemIndicatorProps(e){const n=w(e);return t.element({"aria-hidden":!0,...rB.itemIndicator.attrs,dir:r("dir"),"data-state":n.selected?"checked":"unchecked",hidden:!n.selected})},getItemGroupProps(e){const{id:n}=e;return t.element({...rB.itemGroup.attrs,dir:r("dir"),id:pB(i,n),"aria-labelledby":hB(i,n),"data-empty":HD(0===u.size),role:"group"})},getItemGroupLabelProps(e){const{htmlFor:n}=e;return t.element({...rB.itemGroupLabel.attrs,dir:r("dir"),id:hB(i,n),role:"presentation"})}}}var{guards:EB,createMachine:_B,choose:SB}={guards:{and:(...e)=>function(t){return e.every((e=>t.guard(e)))},or:(...e)=>function(t){return e.some((e=>t.guard(e)))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){var n;return null==(n=t(e))?void 0:n.actions}},{and:TB,not:CB}=EB,AB=_B({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){FM(e)},collection:aB.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n,getEvent:r})=>({currentPlacement:t((()=>({defaultValue:void 0}))),value:t((()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:hD,hash:e=>e.join(","),onChange(t){var r;const a=n(),o=a.get("selectedItems"),i=e("collection"),s=t.map((e=>o.find((t=>i.getItemValue(t)===e))||i.find(e)));a.set("selectedItems",s),null==(r=e("onValueChange"))||r({value:t,items:s})}}))),highlightedValue:t((()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){var n;const r=e("collection").find(t);null==(n=e("onHighlightChange"))||n({highlightedValue:t,highlightedItem:r})}}))),inputValue:t((()=>{let t=e("inputValue")||e("defaultInputValue");const n=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){const r=e("collection").stringifyMany(n);t=SD(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){var n;const a=r(),o=(a.previousEvent||a).src;null==(n=e("onInputValueChange"))||n({inputValue:t,reason:o})}}})),highlightedItem:t((()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}})),selectedItems:t((()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}}))}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:a}){n([()=>e.hash("value")],(()=>{r(["syncSelectedItems"])})),n([()=>e.get("inputValue")],(()=>{r(["syncInputValue"])})),n([()=>e.get("highlightedValue")],(()=>{r(["syncHighlightedItem","autofillInputValue"])})),n([()=>t("open")],(()=>{r(["toggleVisibility"])})),n([()=>t("collection").toString()],(()=>{a({type:"CHILDREN_CHANGE"})}))},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:SB([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:TB("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:TB("isCustomValue",CB("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:TB("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:TB("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:TB("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:TB("isOpenControlled","isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:TB("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:TB("isOpenControlled","isCustomValue",CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:TB("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:TB("isOpenControlled","isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("hasHighlightedItem"),CB("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:TB("isOpenControlled","isCustomValue",CB("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:TB("isCustomValue",CB("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:TB("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return!0===(r=n)||!1===r?n:!!(null==n?void 0:n({inputValue:t.get("inputValue")}));var r},restoreFocus:({event:e})=>{var t;const n=e.restoreFocus??(null==(t=e.previousEvent)?void 0:t.restoreFocus);return null==n||!!n},isChangeEvent:({event:e})=>{var t;return"INPUT.CHANGE"===(null==(t=e.previousEvent)?void 0:t.type)},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(t("disableLayer"))return;return tB((()=>mB(n)),{type:"listbox",defer:!0,exclude:()=>{return[gB(n),vB(n),(e=n,e.getById(dB(e)))];var e},onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),Fj((()=>bB(n)||vB(n)),(()=>yB(n)),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const a=gB(n);let o=[];const i=a=>{const i=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(i||!s)return;const l=mB(n),c=t("scrollToIndexFn");if(c){return void c({index:t("collection").indexOf(s),immediate:a,getElement:()=>kB(n,s)})}const u=kB(n,s),d=LM((()=>{UM(u,{rootEl:l,block:"nearest"})}));o.push(d)},s=LM((()=>i(!0)));o.push(s);const l=MM(a,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return o.push(l),()=>{o.forEach((e=>e()))}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){Fj((()=>bB(n)),(()=>yB(n)),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var t;const{context:n,prop:r}=e,a=r("collection"),o=n.get("highlightedValue");if(!o||!a.has(o))return;const i=r("multiple")?dD(n.get("value"),o):[o];null==(t=r("onSelect"))||t({value:i,itemValue:o}),n.set("value",i);const s=SD(r("selectionBehavior"),{preserve:n.get("inputValue"),replace:a.stringifyMany(i),clear:""});n.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){DM((()=>{const r=e.get("highlightedValue");if(null==r)return;const a=kB(n,r),o=mB(n),i=t("scrollToIndexFn");if(i){i({index:t("collection").indexOf(r),immediate:!0,getElement:()=>kB(n,r)})}else UM(a,{rootEl:o,block:"nearest"})}))},selectItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{var e;const r=a("multiple")?dD(t.get("value"),n.value):[n.value];null==(e=a("onSelect"))||e({value:r,itemValue:n.value}),t.set("value",r);const o=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r),clear:""});t.set("inputValue",o)}))},clearItem(e){const{context:t,event:n,flush:r,prop:a}=e;null!=n.value&&r((()=>{const e=uD(t.get("value"),n.value);t.set("value",e);const r=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",r)}))},setInitialFocus({scope:e}){LM((()=>{wB(e)}))},setFinalFocus({scope:e}){LM((()=>{const t=vB(e);null==(null==t?void 0:t.dataset.focusable)?wB(e):(e=>{const t=vB(e);e.isActiveElement(t)||null==t||t.focus({preventScroll:!0})})(e)}))},syncInputValue({context:e,scope:t,event:n}){const r=gB(t);r&&(r.value=e.get("inputValue"),queueMicrotask((()=>{"INPUT.CHANGE"!==n.current().type&&function(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;const t=e.value.length;e.setSelectionRange(t,t)}catch{}}(r)})))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=SD(t("selectionBehavior"),{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",r)},setValue(e){const{context:t,flush:n,event:r,prop:a}=e;n((()=>{t.set("value",r.value);const e=SD(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)}))},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n((()=>{t.set("value",[]);const e=SD(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)}))},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>kB(t,r)})}else{const e=mB(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:n}){var r;const a=NB(t);null==(r=e("onOpenChange"))||r({open:!0,reason:a,value:n.get("value")})},invokeOnClose({prop:e,event:t,context:n}){var r;const a=NB(t);null==(r=e("onOpenChange"))||r({open:!1,reason:a,value:n.get("value")})},highlightFirstItem({context:e,prop:t,scope:n}){(mB(n)?queueMicrotask:LM)((()=>{const n=t("collection").firstValue;n&&e.set("highlightedValue",n)}))},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(mB(n)?queueMicrotask:LM)((()=>{const n=t("collection").lastValue;n&&e.set("highlightedValue",n)}))},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getNextValue(r),!n&&t("loopFocus")&&(n=a.firstValue)):n=a.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),a=t("collection");r?(n=a.getPreviousValue(r),!n&&t("loopFocus")&&(n=a.lastValue)):n=a.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){LM((()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)}))},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){LM((()=>{let r=null;r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,r&&e.set("highlightedValue",r)}))},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){LM((()=>{const r=t("collection");let a=null;a=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue,a&&e.set("highlightedValue",a)}))},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:a}){const o=gB(a),i=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const s=i.stringify(e.get("highlightedValue"));LM((()=>{o.value=s||e.get("inputValue")}))},syncSelectedItems(e){queueMicrotask((()=>{const{context:t,prop:n}=e,r=n("collection"),a=t.get("value"),o=a.map((e=>t.get("selectedItems").find((t=>r.getItemValue(t)===e))||r.find(e)));t.set("selectedItems",o);const i=SD(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(a),clear:""});t.set("inputValue",i)}))},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function NB(e){return(e.previousEvent||e).src}nB()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),nB()(["htmlFor"]),nB()(["id"]),nB()(["item","persistFocus"]);var IB=void 0!==globalThis.document?K.useLayoutEffect:K.useEffect;function RB(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=K.useState(t),[a,o]=K.useState(r),i=void 0!==e().value,s=K.useRef(a);s.current=i?e().value:a;const l=K.useRef(s.current);IB((()=>{l.current=s.current}),[a,e().value]);return{initial:r,ref:s,get:function(){return i?e().value:a},set(t){(e().sync?se.flushSync:xD)((()=>(t=>{var r,a;const s=l.current,c=gD(t)?t(s):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:c,prev:s}),i||o(c),n(c,s)||null==(a=(r=e()).onChange)||a.call(r,c,s)})(t)))},invoke(t,n){var r,a;null==(a=(r=e()).onChange)||a.call(r,t,n)},hash(t){var n,r;return(null==(r=(n=e()).hash)?void 0:r.call(n,t))??String(t)}}}RB.cleanup=e=>{K.useEffect((()=>e),[])},RB.ref=e=>{const t=K.useRef(e);return{get:()=>t.current,set:e=>{t.current=e}}};var OB=(e,t)=>{const n=K.useRef(!1),r=K.useRef(!1);K.useEffect((()=>{if(n.current&&r.current)return t();r.current=!0}),[...(e??[]).map((e=>"function"==typeof e?e():e))]),K.useEffect((()=>(n.current=!0,()=>{n.current=!1})),[])};function PB(e,t={}){var n,r,a,o;const i=K.useMemo((()=>{const{id:e,ids:n,getRootNode:r}=t;return function(e){const t=()=>{var t;return(null==(t=e.getRootNode)?void 0:t.call(e))??document},n=()=>XD(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>ZD(t()),isActiveElement:WD,getById:e=>t().getElementById(e)}}({id:e,ids:n,getRootNode:r})}),[t]),s=(...t)=>{e.debug&&console.log(...t)},l=function(e){const t=LB(e);return function(e){return t.current[e]}}((null==(n=e.props)?void 0:n.call(e,{props:TD(t),scope:i}))??t),c=LB(null==(r=e.context)?void 0:r.call(e,{prop:l,bindable:RB,scope:i,flush:DB,getContext:()=>u,getComputed:()=>E,getRefs:()=>y,getEvent:()=>m()})),u={get(e){var t;return null==(t=c.current)?void 0:t[e].ref.current},set(e,t){var n;null==(n=c.current)||n[e].set(t)},initial(e){var t;return null==(t=c.current)?void 0:t[e].initial},hash(e){var t,n;const r=null==(t=c.current)?void 0:t[e].get();return null==(n=c.current)?void 0:n[e].hash(r)}},d=K.useRef(new Map),p=K.useRef(null),h=K.useRef(null),f=K.useRef({type:""}),m=()=>({...f.current,current:()=>f.current,previous:()=>h.current}),g=()=>({..._,matches:(...e)=>e.includes(_.ref.current),hasTag(t){var n,r;return!!(null==(r=null==(n=e.states[_.ref.current])?void 0:n.tags)?void 0:r.includes(t))}}),y=function(e){const t=K.useRef(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}((null==(a=e.refs)?void 0:a.call(e,{prop:l,context:u}))??{}),b=()=>({state:g(),context:u,event:m(),prop:l,send:C,action:v,guard:k,track:OB,refs:y,computed:E,flush:DB,scope:i,choose:x}),v=t=>{const n=gD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.actions)?void 0:r[t];return a||CD(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),a}));for(const e of r)null==e||e(b())},k=t=>{var n,r;return gD(t)?t(b()):null==(r=null==(n=e.implementations)?void 0:n.guards)?void 0:r[t](b())},w=t=>{const n=gD(t)?t(b()):t;if(!n)return;const r=n.map((t=>{var n,r;const a=null==(r=null==(n=e.implementations)?void 0:n.effects)?void 0:r[t];return a||CD(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),a})),a=[];for(const e of r){const t=null==e?void 0:e(b());t&&a.push(t)}return()=>a.forEach((e=>null==e?void 0:e()))},x=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find((e=>{let t=!e.guard;return(e=>"string"==typeof e)(e.guard)?t=!!k(e.guard):gD(e.guard)&&(t=e.guard(b())),t}));var t},E=t=>{AD(e.computed,(()=>"[zag-js] No computed object found on machine"));return(0,e.computed[t])({context:u,event:m(),prop:l,refs:y,scope:i,computed:E})},_=RB((()=>({defaultValue:e.initialState({prop:l}),onChange(t,n){var r,a,o,i;if(n){const e=d.current.get(n);null==e||e(),d.current.delete(n)}n&&v(null==(r=e.states[n])?void 0:r.exit),v(null==(a=p.current)?void 0:a.actions);const s=w(null==(o=e.states[t])?void 0:o.effects);if(s&&d.current.set(t,s),n===Hj){v(e.entry);const t=w(e.effects);t&&d.current.set(Hj,t)}v(null==(i=e.states[t])?void 0:i.entry)}}))),S=K.useRef(void 0),T=K.useRef(Bj.NotStarted);IB((()=>{queueMicrotask((()=>{const e=T.current===Bj.Started;T.current=Bj.Started,s(e?"rehydrating...":"initializing...");const t=S.current??_.initial;_.invoke(t,e?_.get():Hj)}));const t=d.current,n=_.ref.current;return()=>{s("unmounting..."),S.current=n,T.current=Bj.Stopped,t.forEach((e=>null==e?void 0:e())),d.current=new Map,p.current=null,queueMicrotask((()=>{v(e.exit)}))}}),[]);const C=t=>{queueMicrotask((()=>{var n,r;if(T.current!==Bj.Started)return;h.current=f.current,f.current=t;let a="ref"in _?_.ref.current:_.get();const o=(null==(n=e.states[a].on)?void 0:n[t.type])??(null==(r=e.on)?void 0:r[t.type]),i=x(o);if(!i)return;p.current=i;const l=i.target??a;s("transition",t.type,i.target||a,`(${i.actions})`);const c=l!==a;c?se.flushSync((()=>_.set(l))):i.reenter&&!c?_.invoke(a,a):v(i.actions??[])}))};return null==(o=e.watch)||o.call(e,b()),{state:g(),send:C,context:u,prop:l,scope:i,refs:y,computed:E,event:m(),getStatus:()=>T.current}}function LB(e){const t=K.useRef(e);return t.current=e,t}function DB(e){queueMicrotask((()=>{se.flushSync((()=>e()))}))}var MB,FB=(MB=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>MB({style:e}).style:MB}));function jB(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function BB(...e){return t=>{let n=!1;const r=e.map((e=>{const r=jB(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():jB(e[t],null)}}}}function HB(...e){return K.useCallback(BB(...e),e)}function zB(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function UB(){return UB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UB.apply(null,arguments)}function $B(e,t){return($B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var VB=function(){return VB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},VB.apply(this,arguments)};function GB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function WB(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
39
39
  /*!
40
40
  * content-type
41
41
  * Copyright(c) 2015 Douglas Christopher Wilson
@@ -67,7 +67,7 @@ var WH={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Rz={search:"IoSearch",thumbsUp:"LuThumbsUp",thumbsDown:"LuThumbsDown",messageCopy:"LuCopy",messageCopied:"LuCheck",messageRevise:"FiEdit",codeCopy:"LuCopy",codeCopied:"LuCheck",openLinkInNewTab:"LuArrowUpRight",openLinkInSameTab:"LuCornerDownLeft",newLine:"LuCornerDownRight",breadcrumbSeparator:"FaChevronRight",switchToSearch:"IoSearch",switchToChat:"LuSparkles",chatSubmit:"IoSend",close:"IoCloseOutline",info:"IoInformationCircleOutline",command:"LuCommand"};function Oz({iconKey:e,...t}){var n;const r=Rz[e],a=r?{builtIn:r}:{custom:""},{baseSettings:o}=nP(),i=(null==(n=o.customIcons)?void 0:n[e])||a;return qh.jsx(Iz,{"data-icon":e,iconSettings:i,...t})}const Pz=K.createContext(null);function Lz(e){const t=K.useContext(Pz);if(!t)throw new Error(`${e} must be used within Combobox.Root`);return t}function Dz(){const e=K.useContext(Pz);return(null==e?void 0:e.items)??[]}const Mz=K.forwardRef((function(e,t){const{items:n,defaultValue:r,onValueChange:a,multiple:o=!1,placeholder:i,name:s,id:l,disabled:c,required:u,invalid:d=!1,autoFocus:p,className:h,getRootNode:f,children:m}=e,g=K.useId(),y=l??g,[b,v]=K.useState(n),k=K.useMemo((()=>aB({items:b,itemToValue:e=>e.value,itemToString:e=>e.label})),[b]),w=xB(PB(AB,{id:y,collection:k,defaultValue:r??[],onValueChange(e){null==a||a(e.value)},onOpenChange(){v(n)},onInputValueChange({inputValue:e}){const t=n.filter((t=>t.label.toLowerCase().includes(e.toLowerCase())));v(t.length>0?t:[])},multiple:o,selectionBehavior:o?"clear":"replace",placeholder:i,openOnClick:!0,name:s,disabled:c,required:u,invalid:d,autoFocus:p,closeOnSelect:!0,getRootNode:f}),FB),x=K.useMemo((()=>({api:w,invalid:d,items:b})),[w,d,b]);return qh.jsx(Pz.Provider,{value:x,children:qh.jsx("div",{ref:t,...w.getRootProps(),className:h,"data-invalid":d?"":void 0,children:m})})})),Fz=K.forwardRef((function(e,t){const{api:n,invalid:r}=Lz("ComboboxControl"),a=n.getControlProps();return qh.jsx("div",{ref:t,...a,"data-invalid":r?"":void 0,"data-state":n.open?"open":"closed",...e})})),jz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxInput"),r=n.getInputProps(),a=HB(t,r.ref);return qh.jsx("input",{...r,ref:a,"data-part":"input","data-state":n.open?"open":"closed",...e})})),Bz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxTrigger"),r=n.getTriggerProps();return qh.jsx("button",{type:"button",...r,ref:t,"data-part":"trigger","data-state":n.open?"open":"closed","aria-label":"Toggle listbox",...e})})),Hz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxPositioner");return qh.jsx("div",{ref:t,...n.getPositionerProps(),...e})})),zz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxContent"),r=n.getContentProps();return qh.jsx("ul",{ref:t,...r,"data-part":"content","data-state":n.open?"open":"closed",...e})})),Uz=K.forwardRef((function({item:e,...t},n){var r;const{api:a}=Lz("ComboboxItem"),o=a.getItemProps({item:e}),i=null==(r=a.getItemState)?void 0:r.call(a,{item:e});return qh.jsx("li",{ref:n,...o,"data-part":"item","data-value":e.value,"data-highlighted":(null==i?void 0:i.highlighted)?"":void 0,"data-state":(null==i?void 0:i.selected)?"checked":"unchecked",...t})})),$z=K.forwardRef((function(e,t){return qh.jsx("span",{ref:t,"data-part":"item-text",...e})})),Vz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxSelectedTags"),r=n.selectedItems??[];return 0===r.length?null:qh.jsx("div",{ref:t,"data-part":"selected-tags",...e,children:r.map((e=>qh.jsxs("span",{"data-part":"tag","data-value":e.value,children:[qh.jsx("span",{"data-part":"tag-text",children:e.label}),qh.jsx("button",{type:"button","data-part":"tag-clear",onClick:t=>{t.preventDefault(),t.stopPropagation(),n.clearValue(e.value)},"aria-label":`Remove ${e.label}`,children:qh.jsx(Iz,{iconSettings:{builtIn:"IoCloseOutline"}})})]},e.value)))})})),Gz=K.forwardRef((function({item:e,children:t,...n},r){var a;const{api:o}=Lz("ComboboxItemIndicator"),i=null==(a=o.getItemState)?void 0:a.call(o,{item:e});return(null==i?void 0:i.selected)?qh.jsx("span",{ref:r,"data-part":"item-indicator","data-state":"checked",...n,children:t??"✓"}):null})),Wz={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:"",combobox:[]};function qz(e){return e?null==e?void 0:e.reduce(((e,t)=>{var n;return"combobox"===t.inputType?e[t.name]="defaultValue"in t&&null!=t.defaultValue?null==(n=t.defaultValue)?[]:Array.isArray(n)?n:""===n?[]:[n]:Wz.combobox:"defaultValue"in t&&t.defaultValue?e[t.name]=t.defaultValue:t.inputType&&(e[t.name]=Wz[t.inputType]),e}),{}):{}}const Yz=K.createContext(void 0);const Kz=({children:e})=>{const t=function(){var e;const[t,n]=K.useState(null),[r,a]=K.useState(null),[o,i]=K.useState(!1),{conversation:s}=iP(),l=iD(),{logEvent:c}=wP(),u=()=>{var e;n(null),a(null),i(!1),"close_modal"===(null==(e=null==t?void 0:t.buttons.close)?void 0:e.action)&&(null==l||l.setOpen(!1))},d=K.useMemo((()=>null==t?void 0:t.fields.map((e=>{const t={...e};return"_type"in e&&"include_chat_session"===e._type&&(t.inputType="checkbox",s.id?(t.isHidden=e.isHidden,t.isRequired=e.isRequired):(t.isHidden=!0,t.isRequired=!1)),t}))),[null==t?void 0:t.fields,s.id]),p=null==d?void 0:d.find((e=>"_type"in e&&"include_chat_session"===e._type)),h=K.useMemo((()=>qz(d)),[d]),{control:f,handleSubmit:m,formState:{errors:g,isSubmitting:y},setError:b,reset:v}=rD({defaultValues:h});K.useEffect((()=>{h&&v(h)}),[v,h]);const k=m((async e=>{const n=s.id&&p&&e[p.name]?s:null;try{if(await(null==t?void 0:t.buttons.submit.onSubmit({values:e,conversation:n})),r){const e="name"in r;c({eventName:"user_escalation_indicated",properties:{escalationType:"support_form",getHelpOptionName:e?null==r?void 0:r.name:void 0,toolCallActionLabel:e||null==r?void 0:r.label,conversation:n||s}})}c({eventName:"ai_chat_form_submitted",properties:{conversation:n||s,values:e}}),i(!0),(null==t?void 0:t.successView)||u()}catch(a){b("root.serverError",{message:a instanceof Error?a.message:"Something went wrong."})}})),w=null==(e=null==g?void 0:g.root)?void 0:e.serverError;return{form:t,openForm:(e,t)=>{n(e),a(t||null)},closeForm:u,handleSubmit:k,isSuccess:o,isSubmitting:y,formError:w,fields:d,errors:g,control:f,defaultValues:h}}();return qh.jsx(Yz.Provider,{value:t,children:e})},Xz=()=>{const e=K.useContext(Yz);if(!e)throw new Error("useChatForm must be used within a ChatFormProvider");return e},Qz=K.createContext(void 0),Zz=({children:e,widget:t})=>qh.jsx(Qz.Provider,{value:t,children:e}),Jz=()=>K.useContext(Qz),eU=e=>{const[t,n]=K.useState(!1);return K.useEffect((()=>{const t=window.matchMedia(e);n(t.matches);const r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}),[e]),t},tU=new TextEncoder;async function nU(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?tU.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const rU={getSolution:async()=>{},prefetchSolution:()=>{},invalidateSolution:()=>{}},aU=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await nU(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.warn("Error solving captcha:",t)}},oU={type:"function",function:{name:"provideLinks",description:"Provides links",parameters:{type:"object",properties:{links:{anyOf:[{type:"array",items:{type:"object",properties:{label:{type:["string","null"]},url:{type:"string"},title:{type:["string","null"]},description:{type:["string","null"]},type:{anyOf:[{anyOf:[{type:"string",enum:["documentation","site","discourse_post","github_issue","github_discussion","stackoverflow_question","discord_forum_post","discord_message","custom_question_answer"]},{type:"string"}]},{type:"null"}]},breadcrumbs:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]}},required:["url"],additionalProperties:!0}},{type:"null"}]},text:{type:"string"}},required:["text"],additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"},function:e=>e,parse:JSON.parse}},iU=()=>{const{chatId:e,isSharedChat:t,setConversation:n,conversation:r,resetConversation:a}=iP(),{baseSettings:o,aiChatSettings:i}=nP(),{aiApiBaseUrl:s,shouldBypassCaptcha:l,filters:c}=o,u=iD(),{getSolution:d,prefetchSolution:p,invalidateSolution:h}=(({fetchUrl:e,shouldBypassCaptcha:t=!1,shouldMakeInitialRequest:n=!0})=>{if(t)return rU;const r=K.useRef(null),a=K.useCallback((()=>{r.current||(r.current=aU(e))}),[e]),o=K.useCallback((async()=>{let t=await r.current;return t||(r.current=aU(e),t=await r.current),r.current=null,t}),[e]),i=K.useCallback((()=>{r.current=null}),[]);return K.useEffect((()=>{n&&a()}),[a,n]),{getSolution:o,prefetchSolution:a,invalidateSolution:i}})({fetchUrl:`${s}/v1/challenge`,shouldBypassCaptcha:l,shouldMakeInitialRequest:!u||u.isOpen}),f=new fb({baseURL:`${s}/v1`,apiKey:o.apiKey??"",dangerouslyAllowBrowser:!0}),{onInputMessageChange:m,getTools:g,prompts:y,model:b,filters:v,onToolCall:k}=i,[w,x]=K.useState(""),E=K.useRef(null);K.useEffect((()=>{null==m||m(w)}),[w]);const[_,S]=K.useState([]),[T,C]=K.useState(!1),[A,N]=K.useState(!1),[I,R]=K.useState(null),[O,P]=K.useState(null),[L,D]=K.useState([]),[M,F]=K.useState({}),j=K.useRef([]),B=K.useRef(null),{logEvent:H,getLatestConversation:z}=wP(),U=null==y?void 0:y.map(((e,t)=>({id:`system-${Date.now().toString()}-${Zh(4)}-${t}`,role:"system",content:e}))),[$,V]=K.useState(!!e);K.useEffect((()=>{if(e){const{apiKey:t,analyticsApiBaseUrl:r}=o;(async function(e,t,n){try{const r=`${n}/conversations/${e}`,a=await fetch(r,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});if(!a.ok){const e=await a.text();throw new Error(`Failed to get conversation: ${e}`)}return a.json()}catch(I){console.warn("Error in getConversation:",I)}})(e,t,r).then((e=>{if(e){H({eventName:"shared_chat_loaded",properties:{conversation:e}}),V(!1),n({...e});const t=e.messages.map((e=>({...e,content:wH(e.content)})));S(t),j.current=t}}))}}),[e]);const G=e=>{R(e),S((t=>{const n=[...t],r=n[n.length-1];return r&&(r.content=(e=>{switch(e.code){case 400:return e.message;case 403:return`There seems to be a configuration error. Please contact ${o.organizationDisplayName??"Administrator"}`;default:return"Hmm.. \n\nIt seems I might be having some issues right now. Please clear the chat and try again."}})(e)),n})),C(!1),N(!1),h(),p()},W=!w.trim()&&!L.length||T,q=async(n=w)=>{if(W&&(!n||0===n.trim().length))return;C(!0);const r=O?2===_.length:0===_.length,a=function(e,t,n){if(!e)return;const r=n?xP(e):"",a=CP(t),o={workflow:AP(e),attachments:t};return{context:NP([r,a]),attributes:o}}(O,L,r);let o;const i=CP(L);o=L.length&&i?[{type:"text",text:i}]:n;const s={id:`${Date.now().toString()}-${Zh(4)}-1`,role:"user",content:o,metadata:a},u=[..._.length?[]:U,s];if(t&&e){RP();const e=j.current.map(((e,t)=>({id:`${e.id}-${Zh(6)}-${t}`,role:e.role,..."assistant"===e.role?{links:e.links??[]}:{},content:e.content,metadata:e.metadata,tool_calls:e.tool_calls})));S([...e,...u]),j.current=[...e,...u]}else S((e=>[...e,...u])),j.current=[...j.current,...u];D([]),x(""),H({eventName:"user_message_submitted",properties:{}},j.current);const h=z(),m=[oU,...(null==g?void 0:g({conversation:h}))||[]];try{const e={model:b,messages:j.current,stream:!0,tools:m,tool_choice:"auto"},t=await d(),n=t?btoa(JSON.stringify(t)):null,r=c||v?JSON.stringify({...c,...v}):void 0,a={};!l&&n&&(a["X-INKEEP-CHALLENGE-SOLUTION"]=n),r&&(a["inkeep-filters"]=r);const o=f.beta.chat.completions.stream(e,Object.keys(a).length>0?{headers:a}:void 0),i={id:`${Date.now().toString()}-${Zh(4)}-2`,role:"assistant",content:"",links:[],tool_calls:[]};S((e=>[...e,i])),o.on("content",((e,t)=>{N(!0),i.content=t,S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return-1===n?[...t,i]:(t[n]={...i},t)}))})),o.on("tool_calls.function.arguments.done",(async e=>{var t,n,r,a;const{name:s,arguments:l}=e,c=null==m?void 0:m.find((e=>e.function.name===s));if(!c)return;const u=("parse"in c.function?c.function.parse:JSON.parse)(l),d=null==(n=(t=c.function).function)?void 0:n.call(t,u,o);if("provideLinks"===s)i.links=u.links??[];else{const e=(null==(r=c.renderMessageButtons)?void 0:r.call(c,{args:u,execution:d}))??[];e.length>0&&F((t=>{const n=t[i.id]??[],r=new Set(n.map((e=>e.label))),a=e.filter((e=>!r.has(e.label)));return{...t,[i.id]:[...n,...a]}}))}null==(a=i.tool_calls)||a.push({id:"call_"+Zh(24),type:"function",function:{name:s,arguments:l}}),S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return t[n]={...i},t})),null==k||k(e,{conversation:{...z(),messages:[...j.current,i]}})})),o.on("error",G),o.finalChatCompletion().then((async()=>{j.current=[...j.current,i],B.current=null,C(!1),N(!1),p(),await H({eventName:"assistant_message_received",properties:{}},j.current),H({eventName:"assistant_answer_displayed",properties:{}})})).catch((e=>{e instanceof Of||console.warn(e)})),B.current=o.controller}catch(y){G(y),C(!1),N(!1)}},Y=()=>{R(null),S([]),j.current=[],a(),F({}),D([]),RP(),P(null),h(),p(),H({eventName:"chat_clear_button_clicked",properties:{conversation:r}})},{openForm:X}=Xz(),Q=Jz();K.useImperativeHandle(i.chatFunctionsRef,(()=>({submitMessage:q,updateInputMessage(e){x(e)},clearChat:Y,openForm:e=>{null==Q||Q.setView("chat"),X(e)},focusInput:()=>{var e;null==(e=E.current)||e.focus()}})));const Z=eU("(max-width: 768px)");return{messages:_,input:w,isLoading:T,isStreaming:A,isLoadingConversation:$,error:I,isSubmitDisabled:W,handleInputChange:e=>{const t=e.target.value;x(t)},handleInputKeyDown:e=>{"Enter"!==e.key||e.shiftKey||W||e.nativeEvent.isComposing||(e.preventDefault(),q())},handleSubmit:q,stop:()=>{B.current&&(B.current.abort(),B.current=null),C(!1),N(!1),p()},clear:Y,handleWorkflow:e=>{P(e);const{initialReplyMessage:t,displayName:n}=e,r={id:_.length.toString()+Zh(4),role:"user",content:n},a={id:(_.length+1).toString()+Zh(4),role:"assistant",content:t,links:[]},o=[{id:`system-${Date.now().toString()}-${Zh(4)}-${e.id}`,role:"system",content:`Company has asked user to follow this guided workflow:\n${xP(e)}`},...U,r,a];S(o),D([])},selectedWorkflow:O,messageAttachments:L,setMessageAttachments:D,addAttachment:e=>{D((t=>[...t,e]))},messageButtons:M,isEmpty:0===_.length,inputRef:E,isMobile:Z}};const sU=K.createContext(void 0);function lU(){const{baseSettings:e}=nP(),{apiKey:t,analyticsApiBaseUrl:n,analyticsProperties:r}=e,[a,o]=K.useState(null),[i,s]=K.useState({}),{conversation:l}=iP(),{messages:c,selectedWorkflow:u}=vG(),{userProperties:d}=mP(),{logEvent:p}=wP(),h=K.useCallback((async(e,a,o=[])=>{const i=await async function(e){try{const{type:t,messageId:n,reasons:r=[],apiKey:a,apiUrl:o,userProperties:i,properties:s}=e,l=`${o}/feedback`,c={type:t,messageId:n,createdAt:(new Date).toISOString(),userProperties:i,properties:s};"negative"===t&&(c.reasons=r);const u=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(c)});if(!u.ok){const e=await u.text();throw new Error(`Failed to send feedback: ${e}`)}return u.json()}catch(t){console.warn("Error in submitFeedback:",t)}}({type:a,messageId:e,reasons:o,apiKey:t,apiUrl:n,userProperties:d,properties:r});i&&s((t=>({...t,[e]:{type:i.type,reasons:i.reasons}})));const h=c.findIndex((t=>t.id===e)),f=c[h],m={conversationId:l.id,question:AH(c[h-1]),answer:AH(f),messageId:e,reasons:o,workflowId:null==u?void 0:u.id};p({eventName:"positive"===a?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:m}),"negative"===a&&p({eventName:"user_escalation_indicated",properties:{escalationType:"downvote",conversation:l}})}),[c,l]);return{feedback:i,currentFeedback:a,setCurrentFeedback:o,submitPositiveFeedback:K.useCallback((async e=>{h(e,"positive")}),[h]),submitNegativeFeedback:K.useCallback((async(e,t)=>{const n=function(e){const t=[];for(const n in e){"on"===e[n]&&t.push({label:n,details:e[`${n}:description`]||""})}return t.length>0?t:[]}(t);h(e,"negative",n)}),[h])}}const cU=({children:e})=>{const t=lU();return qh.jsx(sU.Provider,{value:t,children:e})},uU=()=>{const e=K.useContext(sU);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function dU(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function hU(...e){return t=>{let n=!1;const r=e.map((e=>{const r=pU(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():pU(e[t],null)}}}}function fU(...e){return K.useCallback(hU(...e),e)}function mU(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>K.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return K.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=K.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=K.useMemo((()=>s),Object.values(s));return qh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=K.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gU(r,...t)]}function gU(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return K.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var yU=K.forwardRef(((e,t)=>{const{children:n,...r}=e,a=K.Children.toArray(n),o=a.find(kU);if(o){const e=o.props.children,n=a.map((t=>t===o?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(bU,{...r,ref:t,children:K.isValidElement(e)?K.cloneElement(e,void 0,n):null})}return qh.jsx(bU,{...r,ref:t,children:n})}));yU.displayName="Slot";var bU=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return K.cloneElement(n,{...wU(r,n.props),ref:t?hU(t,e):e})}return K.Children.count(n)>1?K.Children.only(null):null}));bU.displayName="SlotClone";var vU=({children:e})=>qh.jsx(qh.Fragment,{children:e});function kU(e){return K.isValidElement(e)&&e.type===vU}function wU(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var xU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=K.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?yU:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function EU(e){const t=K.useRef(e);return K.useEffect((()=>{t.current=e})),K.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function _U(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e);K.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var SU,TU="dismissableLayer.update",CU="dismissableLayer.pointerDownOutside",AU="dismissableLayer.focusOutside",NU=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),IU=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(NU),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=fU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){OU(CU,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){OU(AU,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return _U((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(SU=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),RU(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=SU)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),RU())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(TU,e),()=>document.removeEventListener(TU,e)}),[]),qh.jsx(xU.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:dU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:dU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dU(e.onPointerDownCapture,w.onPointerDownCapture)})}));IU.displayName="DismissableLayer";function RU(){const e=new CustomEvent(TU);document.dispatchEvent(e)}function OU(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(NU),r=K.useRef(null),a=fU(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(xU.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var PU=Boolean(null==globalThis?void 0:globalThis.document)?K.useLayoutEffect:()=>{},LU=Q["useId".toString()]||(()=>{}),DU=0;function MU(e){const[t,n]=K.useState(LU());return PU((()=>{n((e=>e??String(DU++)))}),[e]),e||(t?`radix-${t}`:"")}const FU=["top","right","bottom","left"],jU=Math.min,BU=Math.max,HU=Math.round,zU=Math.floor,UU=e=>({x:e,y:e}),$U={left:"right",right:"left",bottom:"top",top:"bottom"},VU={start:"end",end:"start"};function GU(e,t,n){return BU(e,jU(t,n))}function WU(e,t){return"function"==typeof e?e(t):e}function qU(e){return e.split("-")[0]}function YU(e){return e.split("-")[1]}function KU(e){return"x"===e?"y":"x"}function XU(e){return"y"===e?"height":"width"}function QU(e){return["top","bottom"].includes(qU(e))?"y":"x"}function ZU(e){return KU(QU(e))}function JU(e){return e.replace(/start|end/g,(e=>VU[e]))}function e$(e){return e.replace(/left|right|bottom|top/g,(e=>$U[e]))}function t$(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function n$(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function r$(e,t,n){let{reference:r,floating:a}=e;const o=QU(t),i=ZU(t),s=XU(i),l=qU(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(YU(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function a$(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=WU(t,e),f=t$(h),m=s[p?"floating"===d?"reference":"floating":d],g=n$(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=n$(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function o$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function i$(e){return FU.some((t=>e[t]>=0))}function s$(){return"undefined"!=typeof window}function l$(e){return d$(e)?(e.nodeName||"").toLowerCase():"#document"}function c$(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u$(e){var t;return null==(t=(d$(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function d$(e){return!!s$()&&(e instanceof Node||e instanceof c$(e).Node)}function p$(e){return!!s$()&&(e instanceof Element||e instanceof c$(e).Element)}function h$(e){return!!s$()&&(e instanceof HTMLElement||e instanceof c$(e).HTMLElement)}function f$(e){return!(!s$()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof c$(e).ShadowRoot)}function m$(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=w$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function g$(e){return["table","td","th"].includes(l$(e))}function y$(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(fee){return!1}}))}function b$(e){const t=v$(),n=p$(e)?w$(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function v$(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function k$(e){return["html","body","#document"].includes(l$(e))}function w$(e){return c$(e).getComputedStyle(e)}function x$(e){return p$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E$(e){if("html"===l$(e))return e;const t=e.assignedSlot||e.parentNode||f$(e)&&e.host||u$(e);return f$(t)?t.host:t}function _$(e){const t=E$(e);return k$(t)?e.ownerDocument?e.ownerDocument.body:e.body:h$(t)&&m$(t)?t:_$(t)}function S$(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=_$(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=c$(a);if(o){const e=T$(i);return t.concat(i,i.visualViewport||[],m$(a)?a:[],e&&n?S$(e):[])}return t.concat(a,S$(a,[],n))}function T$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function C$(e){const t=w$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=h$(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=HU(n)!==o||HU(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function A$(e){return p$(e)?e:e.contextElement}function N$(e){const t=A$(e);if(!h$(t))return UU(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=C$(t);let i=(o?HU(n.width):n.width)/r,s=(o?HU(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const I$=UU(0);function R$(e){const t=c$(e);return v$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:I$}function O$(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=A$(e);let i=UU(1);t&&(r?p$(r)&&(i=N$(r)):i=N$(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==c$(e))&&t}(o,n,r)?R$(o):UU(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=c$(o),t=r&&p$(r)?c$(r):r;let n=e,a=T$(n);for(;a&&r&&t!==n;){const e=N$(a),t=a.getBoundingClientRect(),r=w$(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=c$(a),a=T$(n)}}return n$({width:u,height:d,x:l,y:c})}function P$(e,t){const n=x$(e).scrollLeft;return t?t.left+n:O$(u$(e)).left+n}function L$(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:P$(e,r)),y:r.top+t.scrollTop}}function D$(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=c$(e),r=u$(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=v$();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=u$(e),n=x$(e),r=e.ownerDocument.body,a=BU(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=BU(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+P$(e);const s=-n.scrollTop;return"rtl"===w$(r).direction&&(i+=BU(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(u$(e));else if(p$(t))r=function(e,t){const n=O$(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=h$(e)?N$(e):UU(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=R$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return n$(r)}function M$(e,t){const n=E$(e);return!(n===t||!p$(n)||k$(n))&&("fixed"===w$(n).position||M$(n,t))}function F$(e,t,n){const r=h$(t),a=u$(t),o="fixed"===n,i=O$(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=UU(0);if(r||!r&&!o)if(("body"!==l$(t)||m$(a))&&(s=x$(t)),r){const e=O$(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=P$(a));const c=!a||r||o?UU(0):L$(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function j$(e){return"static"===w$(e).position}function B$(e,t){if(!h$(e)||"fixed"===w$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return u$(e)===n&&(n=n.ownerDocument.body),n}function H$(e,t){const n=c$(e);if(y$(e))return n;if(!h$(e)){let t=E$(e);for(;t&&!k$(t);){if(p$(t)&&!j$(t))return t;t=E$(t)}return n}let r=B$(e,t);for(;r&&g$(r)&&j$(r);)r=B$(r,t);return r&&k$(r)&&j$(r)&&!b$(r)?n:r||function(e){let t=E$(e);for(;h$(t)&&!k$(t);){if(b$(t))return t;if(y$(t))return null;t=E$(t)}return null}(e)||n}const z$={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=u$(r),s=!!t&&y$(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=UU(1);const u=UU(0),d=h$(r);if((d||!d&&!o)&&(("body"!==l$(r)||m$(i))&&(l=x$(r)),h$(r))){const e=O$(r);c=N$(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?UU(0):L$(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:u$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?y$(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=S$(e,[],!1).filter((e=>p$(e)&&"body"!==l$(e))),a=null;const o="fixed"===w$(e).position;let i=o?E$(e):e;for(;p$(i)&&!k$(i);){const t=w$(i),n=b$(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||m$(i)&&!n&&M$(e,i))?r=r.filter((e=>e!==i)):a=t,i=E$(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=D$(t,n,a);return e.top=BU(r.top,e.top),e.right=jU(r.right,e.right),e.bottom=jU(r.bottom,e.bottom),e.left=BU(r.left,e.left),e}),D$(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:H$,getElementRects:async function(e){const t=this.getOffsetParent||H$,n=this.getDimensions,r=await n(e.floating);return{reference:F$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=C$(e);return{width:t,height:n}},getScale:N$,isElement:p$,isRTL:function(e){return"rtl"===w$(e).direction}};function U$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $$(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=A$(e),u=a||o?[...c?S$(c):[],...S$(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=u$(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-zU(d)+"px "+-zU(a.clientWidth-(u+p))+"px "+-zU(a.clientHeight-(d+h))+"px "+-zU(u)+"px",threshold:BU(0,jU(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||U$(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(fee){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?O$(e):null;return l&&function t(){const r=O$(e);m&&!U$(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const V$=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=qU(n),s=YU(n),l="y"===QU(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=WU(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},G$=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=WU(e,t),c={x:n,y:r},u=await a$(t,l),d=QU(qU(a)),p=KU(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=GU(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=GU(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},W$=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=WU(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=qU(a),b=QU(s),v=qU(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[e$(s)]:function(e){const t=e$(e);return[JU(e),t,JU(t)]}(s)),x="none"!==f;!p&&x&&w.push(...function(e,t,n,r){const a=YU(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(qU(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(JU)))),o}(s,m,f,k));const E=[s,...w],_=await a$(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=YU(e),a=ZU(e),o=XU(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=e$(i)),[i,e$(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=QU(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},q$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=WU(e,t),u=await a$(t,c),d=qU(a),p=YU(a),h="y"===QU(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=jU(m-u[g],b),w=jU(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=BU(u.left,0),t=BU(u.right,0),n=BU(u.top,0),r=BU(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:BU(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:BU(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Y$=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=WU(e,t);switch(r){case"referenceHidden":{const e=o$(await a$(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:i$(e)}}}case"escaped":{const e=o$(await a$(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:i$(e)}}}default:return{}}}}},K$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=WU(e,t)||{};if(null==c)return{};const d=t$(u),p={x:n,y:r},h=ZU(a),f=XU(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=jU(d[y],S),C=jU(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=GU(A,I,N),O=!l.arrow&&null!=YU(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),X$=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=WU(e,t),u={x:n,y:r},d=QU(a),p=KU(d);let h=u[p],f=u[d];const m=WU(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(qU(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},Q$=(e,t,n)=>{const r=new Map,a={platform:z$,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=r$(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[n]:{...h[n],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=r$(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};var Z$="undefined"!=typeof document?K.useLayoutEffect:K.useEffect;function J$(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!J$(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!J$(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eV(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tV(e,t){const n=eV(e);return Math.round(t*n)/n}function nV(e){const t=K.useRef(e);return Z$((()=>{t.current=e})),t}function rV(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=K.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=K.useState(r);J$(p,r)||h(r);const[f,m]=K.useState(null),[g,y]=K.useState(null),b=K.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),v=K.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),k=o||f,w=i||g,x=K.useRef(null),E=K.useRef(null),_=K.useRef(u),S=null!=l,T=nV(l),C=nV(a),A=nV(c),N=K.useCallback((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),Q$(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};I.current&&!J$(_.current,t)&&(_.current=t,se.flushSync((()=>{d(t)})))}))}),[p,t,n,C,A]);Z$((()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const I=K.useRef(!1);Z$((()=>(I.current=!0,()=>{I.current=!1})),[]),Z$((()=>{if(k&&(x.current=k),w&&(E.current=w),k&&w){if(T.current)return T.current(k,w,N);N()}}),[k,w,N,T,S]);const R=K.useMemo((()=>({reference:x,floating:E,setReference:b,setFloating:v})),[b,v]),O=K.useMemo((()=>({reference:k,floating:w})),[k,w]),P=K.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=tV(O.floating,u.x),r=tV(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eV(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return K.useMemo((()=>({...u,update:N,refs:R,elements:O,floatingStyles:P})),[u,N,R,O,P])}const aV=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?K$({element:n.current,padding:r}).fn(t):{}:n?K$({element:n,padding:r}).fn(t):{};var a}}),oV=(e,t)=>({...V$(e),options:[e,t]}),iV=(e,t)=>({...G$(e),options:[e,t]}),sV=(e,t)=>({...X$(e),options:[e,t]}),lV=(e,t)=>({...W$(e),options:[e,t]}),cV=(e,t)=>({...q$(e),options:[e,t]}),uV=(e,t)=>({...Y$(e),options:[e,t]}),dV=(e,t)=>({...aV(e),options:[e,t]});var pV=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(xU.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));pV.displayName="Arrow";var hV=pV;function fV(e){const[t,n]=K.useState(void 0);return PU((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var mV="Popper",[gV,yV]=mU(mV),[bV,vV]=gV(mV),kV=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(bV,{scope:t,anchor:r,onAnchorChange:a,children:n})};kV.displayName=mV;var wV="PopperAnchor",xV=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=vV(wV,n),i=K.useRef(null),s=fU(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(xU.div,{...a,ref:s})}));xV.displayName=wV;var EV="PopperContent",[_V,SV]=gV(EV),TV=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=vV(EV,l),[E,_]=K.useState(null),S=fU(t,(e=>_(e))),[T,C]=K.useState(null),A=fV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(IV),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),RV({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=OV(j),$=EU(k);PU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return PU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx(_V,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(xU.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));TV.displayName=EV;var CV="PopperArrow",AV={top:"bottom",right:"left",bottom:"top",left:"right"},NV=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=SV(CV,n),o=AV[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(hV,{...r,ref:t,style:{...r.style,display:"block"}})})}));function IV(e){return null!==e}NV.displayName=CV;var RV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=OV(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function OV(e){const[t,n="center"]=e.split("-");return[t,n]}var PV=kV,LV=xV,DV=TV,MV=NV;var FV=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=K.useState(),r=K.useRef({}),a=K.useRef(e),o=K.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return K.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K.useEffect((()=>{const e=jV(r.current);o.current="mounted"===s?e:"none"}),[s]),PU((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=jV(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),PU((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=jV(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=jV(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:K.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):K.Children.only(n),o=fU(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?K.cloneElement(a,{ref:o}):null};function jV(e){return(null==e?void 0:e.animationName)||"none"}function BV({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=K.useState(e),[r]=n,a=K.useRef(r),o=EU(t);return K.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=EU(n);return[i,K.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}FV.displayName="Presence";var HV=K.forwardRef(((e,t)=>qh.jsx(xU.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));HV.displayName="VisuallyHidden";var zV=HV,[UV,$V]=mU("Tooltip",[yV]),VV=yV(),GV="TooltipProvider",WV=700,qV="tooltip.open",[YV,KV]=UV(GV),XV=e=>{const{__scopeTooltip:t,delayDuration:n=WV,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=K.useState(!0),l=K.useRef(!1),c=K.useRef(0);return K.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),qh.jsx(YV,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:K.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:K.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:K.useCallback((e=>{l.current=e}),[]),disableHoverableContent:a,children:o})};XV.displayName=GV;var QV="Tooltip",[ZV,JV]=UV(QV),eG=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=KV(QV,e.__scopeTooltip),c=VV(t),[u,d]=K.useState(null),p=MU(),h=K.useRef(0),f=i??l.disableHoverableContent,m=s??l.delayDuration,g=K.useRef(!1),[y=!1,b]=BV({prop:r,defaultProp:a,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(qV))):l.onClose(),null==o||o(e)}}),v=K.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),k=K.useCallback((()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)}),[b]),w=K.useCallback((()=>{window.clearTimeout(h.current),h.current=0,b(!1)}),[b]),x=K.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0),h.current=0}),m)}),[m,b]);return K.useEffect((()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)}),[]),qh.jsx(PV,{...c,children:qh.jsx(ZV,{scope:t,contentId:p,open:y,stateAttribute:v,trigger:u,onTriggerChange:d,onTriggerEnter:K.useCallback((()=>{l.isOpenDelayed?x():k()}),[l.isOpenDelayed,x,k]),onTriggerLeave:K.useCallback((()=>{f?w():(window.clearTimeout(h.current),h.current=0)}),[w,f]),onOpen:k,onClose:w,disableHoverableContent:f,children:n})})};eG.displayName=QV;var tG="TooltipTrigger",nG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=JV(tG,n),o=KV(tG,n),i=VV(n),s=fU(t,K.useRef(null),a.onTriggerChange),l=K.useRef(!1),c=K.useRef(!1),u=K.useCallback((()=>l.current=!1),[]);return K.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),qh.jsx(LV,{asChild:!0,...i,children:qh.jsx(xU.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:s,onPointerMove:dU(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0))})),onPointerLeave:dU(e.onPointerLeave,(()=>{a.onTriggerLeave(),c.current=!1})),onPointerDown:dU(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:dU(e.onFocus,(()=>{l.current||a.onOpen()})),onBlur:dU(e.onBlur,a.onClose),onClick:dU(e.onClick,a.onClose)})})}));nG.displayName=tG;var[rG,aG]=UV("TooltipPortal",{forceMount:void 0}),oG="TooltipContent",iG=K.forwardRef(((e,t)=>{const n=aG(oG,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=JV(oG,e.__scopeTooltip);return qh.jsx(FV,{present:r||i.open,children:i.disableHoverableContent?qh.jsx(uG,{side:a,...o,ref:t}):qh.jsx(sG,{side:a,...o,ref:t})})})),sG=K.forwardRef(((e,t)=>{const n=JV(oG,e.__scopeTooltip),r=KV(oG,e.__scopeTooltip),a=K.useRef(null),o=fU(t,a),[i,s]=K.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=K.useCallback((()=>{s(null),d(!1)}),[d]),h=K.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...a,...function(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return K.useEffect((()=>()=>p()),[p]),K.useEffect((()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[l,u,h,p]),K.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),a=!function(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o].x,s=t[o].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(a=!a)}return a}(n,i);r?p():a&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,u,i,c,p]),qh.jsx(uG,{...e,ref:o})})),[lG,cG]=UV(QV,{isInside:!1}),uG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=JV(oG,n),c=VV(n),{onClose:u}=l;return K.useEffect((()=>(document.addEventListener(qV,u),()=>document.removeEventListener(qV,u))),[u]),K.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,u]),qh.jsx(IU,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:qh.jsxs(DV,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[qh.jsx(vU,{children:r}),qh.jsx(lG,{scope:n,isInside:!0,children:qh.jsx(zV,{id:l.contentId,role:"tooltip",children:a||r})})]})})}));iG.displayName=oG;var dG="TooltipArrow",pG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=VV(n);return cG(dG,n).isInside?null:qh.jsx(MV,{...a,...r,ref:t})}));pG.displayName=dG;var hG=XV,fG=nG,mG=iG,gG=pG;const yG=K.createContext(void 0),bG=({children:e,...t})=>{const n=iU();return qh.jsx(yG.Provider,{value:{...n,...t},children:qh.jsx(cU,{children:qh.jsx(hG,{children:e})})})},vG=()=>{const e=K.useContext(yG);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},kG=K.createContext(void 0);function wG({children:e}){const t=function(){var e;const[t,n]=K.useState(null),{value:r,setTrue:a,setFalse:o}=Qh(!1),[i,s]=K.useState({title:"",content:""}),[l,c]=K.useState({title:void 0,content:void 0}),{addAttachment:u}=vG(),d={data:i,errors:l,labels:{title:(null==(e=null==t?void 0:t.workflowModalProps)?void 0:e.titleInputLabel)||"Title",content:(null==t?void 0:t.contentType.contentInputLabel)||"Content"},validate(){const e={};return i.title.trim()||(e.title=`${d.labels.title} is required`),i.content.trim()||(e.content=`${d.labels.content} is required`),e},onChange(e){const{name:t,value:n}=e.target;s((e=>({...e,[t]:n})))},onSubmit(e){if(e.preventDefault(),!(null==t?void 0:t.contentType))return;const n=d.validate();if(Object.values(n).some((e=>!!e)))return void c(n);const r={...i,id:Zh(),contentType:t.contentType};u(r),o(),s({title:"",content:""}),c({title:void 0,content:void 0})}};return{selectedInput:t,selectInput:n,isOpen:r,onOpen:a,onClose:o,form:d}}();return qh.jsx(kG.Provider,{value:t,children:e})}const xG=()=>{const e=K.useContext(kG);if(!e)throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");return e},EG=K.createContext(void 0),_G=({children:e,name:t})=>{const n=K.useRef(null);return qh.jsx(EG.Provider,{value:{name:t,focusItem:n},children:e})},SG=()=>{const e=K.useContext(EG);if(!e)throw new Error("useFeedbackItem must be used within a FeedbackItemProvider");return e},TG=K.createContext(void 0),CG=({children:e,field:t,fieldProps:n,autoFocus:r})=>{const{errors:a}=Xz(),o=a[t.name];return qh.jsx(TG.Provider,{value:{field:t,fieldProps:n,error:o,autoFocus:r},children:e})},AG=()=>{const e=K.useContext(TG);if(!e)throw new Error("useFormField must be used within a FormFieldProvider");return e},NG=K.createContext(void 0);const IG=({children:e,value:t})=>qh.jsx(NG.Provider,{value:t,children:e}),RG=K.createContext(void 0);function OG({children:e}){const[t,n]=X.useState(null),{value:r,setTrue:a,setFalse:o}=Qh(!1);return qh.jsx(RG.Provider,{value:{selectedItem:t,selectItem:n,isOpen:r,onOpen:a,onClose:o},children:e})}const PG=()=>{const e=K.useContext(RG);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e},LG=K.createContext(void 0),DG=({children:e,message:t})=>qh.jsx(LG.Provider,{value:{message:t},children:e}),MG=()=>{const e=K.useContext(LG);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},FG=["light","dark"],jG="(prefers-color-scheme: dark)",BG="undefined"==typeof window,HG=K.createContext(void 0),zG={setColorMode:e=>{},colorModes:[]};function UG(e,t){const n=K.useContext(HG)??zG;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const $G=e=>(K.useContext(HG),qh.jsx(GG,{...e})),VG=["light","dark"],GG=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=VG,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[h,f]=K.useState((()=>qG(a,i))),[m,g]=K.useState((()=>qG(a))),y=l?Object.values(l):o,b=K.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=KG());const c=l?l[o]:o,u=t?YG():null,h=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),f=h?h.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(f.classList.remove(...y),c&&f.classList.add(c)):c?f.setAttribute(s,c):f.removeAttribute(s),r){const e=FG.includes(i)?i:null,t=FG.includes(o)?o:e;f.style.colorScheme=t}null==u||u()}),[]),v=K.useCallback((e=>{f(e);try{localStorage.setItem(a,e)}catch(fee){}}),[e]),k=K.useCallback((t=>{const r=KG(t);g(r),"system"===h&&n&&!e&&b("system")}),[h,e]);K.useEffect((()=>{const e=window.matchMedia(jG);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),K.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),K.useEffect((()=>{b(e??h)}),[e,h]);const w=K.useMemo((()=>({colorMode:h,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===h?m:h,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[h,v,e,m,n,o]);return qh.jsxs(HG.Provider,{value:w,children:[qh.jsx(WG,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},WG=K.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),h=(()=>{if(!a)return"";return(FG.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),f=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&FG.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${f(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${jG}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${d?"":`else{${f(o,!1,!1)}}`}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return qh.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),qG=(e,t)=>{if(BG)return;let n;try{n=localStorage.getItem(e)||void 0}catch(fee){}return n||t},YG=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},KG=e=>{e||(e=window.matchMedia(jG));return e.matches?"dark":"light"};var XG=Object.prototype.hasOwnProperty;function QG(e,t,n){for(n of e.keys())if(ZG(n,t))return n}function ZG(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ZG(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=QG(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=QG(t,a)))return!1;if(!ZG(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(XG.call(e,n)&&++r&&!XG.call(t,n))return!1;if(!(n in t)||!ZG(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function JG(){const{baseSettings:e}=nP(),[t,n]=K.useState([]),r=function(e){const t=K.useRef(void 0);ZG(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=K.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??ef("link_")))),o=e.map((e=>{const t=e.key??ef("stylesheet_");return qh.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:qh.jsxs(qh.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const eW=({children:e})=>{const{baseSettings:t}=nP(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{disableLoadingDefaultFont:c,fontFamily:u,fontSize:d,spacing:p,borderRadius:h,zIndex:f}=n,m=Cx(s,r),g=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=Nx[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").replace(/\./g,"_").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:Ph(n.colors,m),fontFamily:u,fontSize:d,spacing:p,borderRadius:h,zIndex:f}),{customStyles:y,loaded:b}=JG(),{sync:v,forcedColorMode:k,...w}=i??{},[x,E]=K.useState(),_=K.useRef(null);return K.useEffect((()=>{var e,t;if(!(null==v?void 0:v.target))return;const n="string"==typeof v.target?document.querySelector(v.target):v.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,v.attributes),o=(null==(e=v.isDarkMode)?void 0:e.call(v,a))?"dark":"light";null==(t=v.onChange)||t.call(v,o),E(o)}));a.observe(n,{attributes:!0,attributeFilter:v.attributes,childList:!1,subtree:!1}),_.current=a;const o=(null==(e=v.isDarkMode)?void 0:e.call(v,r(n,null==v?void 0:v.attributes)))?"dark":"light";return null==(t=v.onChange)||t.call(v,o),E(o),()=>a.disconnect()}),[v]),qh.jsxs(qh.Fragment,{children:[!c&&qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n "}}),y,b&&qh.jsx($G,{forcedColorMode:k??x,...w,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:qh.jsx("div",{className:l,style:{display:"contents",...g},children:e})})]})};function tW(e){const{children:t,config:n,componentType:r}=e;return qh.jsx(tP,{value:{...n,componentType:r},children:qh.jsx(eW,{children:qh.jsx(fP,{children:qh.jsx(yP,{children:t})})})})}const nW=K.createContext(void 0),rW=({children:e,source:t})=>qh.jsx(nW.Provider,{value:{source:t},children:e}),aW=()=>{const e=K.useContext(nW);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function oW(e){const t=K.useRef(e);return K.useEffect((()=>{t.current=e})),K.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function iW({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=K.useState(e),[r]=n,a=K.useRef(r),o=oW(t);return K.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=oW(n);return[i,K.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}const sW=K.createContext(void 0),lW=({children:e,value:t})=>qh.jsx(sW.Provider,{value:t,children:e}),cW=()=>{const e=K.useContext(sW);if(!e)throw new Error("useSidebarChat must be used within a SidebarChatProvider");return e};var uW=K.useLayoutEffect,dW=function(e,t){"function"!=typeof e?e.current=t:e(t)},pW={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},hW=function(e){Object.keys(pW).forEach((function(t){e.style.setProperty(t,pW[t],"important")}))},fW=null,mW=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var gW=function(){},yW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],bW=!!document.documentElement.currentStyle,vW=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,yW.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(bW&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function kW(e,t,n){var r,a,o=(r=n,a=X.useRef(r),uW((function(){a.current=r})),a);K.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var wW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],xW=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?gW:o,s=e.onHeightChange,l=void 0===s?gW:s,c=zB(e,wW),u=void 0!==c.value,d=K.useRef(null),p=function(e,t){var n=X.useRef();return X.useCallback((function(r){e.current=r,n.current&&dW(n.current,null),n.current=t,t&&dW(t,r)}),[t])}(d,t),h=K.useRef(0),f=K.useRef(),m=function(){var e=d.current,t=n&&f.current?f.current:vW(e);if(t){f.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),fW||((fW=document.createElement("textarea")).setAttribute("tabindex","-1"),fW.setAttribute("aria-hidden","true"),hW(fW)),null===fW.parentNode&&document.body.appendChild(fW);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;fW.style[t]=i[t]})),hW(fW),fW.value=t;var l=mW(fW,e);fW.value=t,l=mW(fW,e),fW.value="x";var c=fW.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];h.current!==i&&(h.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return K.useLayoutEffect(m),function(e,t){kW(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),kW(window,"resize",m),function(e){kW(document.fonts,"loadingdone",e)}(m),K.createElement("textarea",UB({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},EW=K.forwardRef(xW),_W="Avatar",[SW,TW]=mU(_W),[CW,AW]=SW(_W),NW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=K.useState("idle");return qh.jsx(CW,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:qh.jsx(xU.span,{...r,ref:t})})}));NW.displayName=_W;var IW="AvatarImage",RW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=AW(IW,n),s=function(e,t){const[n,r]=K.useState("idle");return PU((()=>{if(!e)return void r("error");let n=!0;const a=new window.Image,o=e=>()=>{n&&r(e)};return r("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{n=!1}}),[e,t]),n}(r,o.referrerPolicy),l=EU((e=>{a(e),i.onImageLoadingStatusChange(e)}));return PU((()=>{"idle"!==s&&l(s)}),[s,l]),"loaded"===s?qh.jsx(xU.img,{...o,ref:t,src:r}):null}));RW.displayName=IW;var OW="AvatarFallback",PW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=AW(OW,n),[i,s]=K.useState(void 0===r);return K.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?qh.jsx(xU.span,{...a,ref:t}):null}));PW.displayName=OW;var LW=NW,DW=RW,MW=PW;var FW="Checkbox",[jW,BW]=mU(FW),[HW,zW]=jW(FW),UW=K.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,h]=K.useState(null),f=fU(t,(e=>h(e))),m=K.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=BV({prop:a,defaultProp:o,onChange:c}),v=K.useRef(y);return K.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),qh.jsxs(HW,{scope:n,state:y,disabled:s,children:[qh.jsx(xU.button,{type:"button",role:"checkbox","aria-checked":WW(y)?"mixed":y,"aria-required":i,"data-state":qW(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:f,onKeyDown:dU(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:dU(e.onClick,(e=>{b((e=>!!WW(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&qh.jsx(GW,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!WW(o)&&o})]})}));UW.displayName=FW;var $W="CheckboxIndicator",VW=K.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=zW($W,n);return qh.jsx(FV,{present:r||WW(o.state)||!0===o.state,children:qh.jsx(xU.span,{"data-state":qW(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));VW.displayName=$W;var GW=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=K.useRef(null),s=function(e){const t=K.useRef({value:e,previous:e});return K.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),l=fV(t);K.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=WW(n),a.call(e,!WW(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=K.useRef(!WW(n)&&n);return qh.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function WW(e){return"indeterminate"===e}function qW(e){return WW(e)?"indeterminate":e?"checked":"unchecked"}var YW=UW,KW=VW,XW=K.forwardRef(((e,t)=>{const{children:n,...r}=e,a=K.Children.toArray(n),o=a.find(JW);if(o){const e=o.props.children,n=a.map((t=>t===o?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(QW,{...r,ref:t,children:K.isValidElement(e)?K.cloneElement(e,void 0,n):null})}return qh.jsx(QW,{...r,ref:t,children:n})}));XW.displayName="Slot";var QW=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?hU(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));QW.displayName="SlotClone";var ZW=({children:e})=>qh.jsx(qh.Fragment,{children:e});function JW(e){return K.isValidElement(e)&&e.type===ZW}var eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=K.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?XW:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});var tq,nq="dismissableLayer.update",rq="dismissableLayer.pointerDownOutside",aq="dismissableLayer.focusOutside",oq=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iq=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(oq),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=fU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){lq(rq,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){lq(aq,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return _U((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(tq=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),sq(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=tq)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),sq())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(nq,e),()=>document.removeEventListener(nq,e)}),[]),qh.jsx(eq.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:dU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:dU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dU(e.onPointerDownCapture,w.onPointerDownCapture)})}));iq.displayName="DismissableLayer";function sq(){const e=new CustomEvent(nq);document.dispatchEvent(e)}function lq(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(oq),r=K.useRef(null),a=fU(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(eq.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var cq=0;function uq(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dq="focusScope.autoFocusOnMount",pq="focusScope.autoFocusOnUnmount",hq={bubbles:!1,cancelable:!0},fq=K.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=K.useState(null),c=EU(a),u=EU(o),d=K.useRef(null),p=fU(t,(e=>l(e))),h=K.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:bq(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||bq(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bq(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),K.useEffect((()=>{if(s){vq.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(dq,hq);s.addEventListener(dq,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bq(r,{select:t}),document.activeElement!==n)return}((e=mq(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bq(s))}return()=>{s.removeEventListener(dq,c),setTimeout((()=>{const e=new CustomEvent(pq,hq);s.addEventListener(pq,u),s.dispatchEvent(e),e.defaultPrevented||bq(t??document.body,{select:!0}),s.removeEventListener(pq,u),vq.remove(h)}),0)}}var e}),[s,c,u,h]);const f=K.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=mq(e),n=gq(t,e),r=gq(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&bq(o,{select:!0})):(e.preventDefault(),n&&bq(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return qh.jsx(eq.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function mq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gq(e,t){for(const n of e)if(!yq(n,{upTo:t}))return n}function yq(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bq(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}fq.displayName="FocusScope";var vq=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=kq(e,t),e.unshift(t)},remove(t){var n;e=kq(e,t),null==(n=e[0])||n.resume()}}}();function kq(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var wq=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(eq.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));wq.displayName="Arrow";var xq=wq,Eq="Popper",[_q,Sq]=mU(Eq),[Tq,Cq]=_q(Eq),Aq=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(Tq,{scope:t,anchor:r,onAnchorChange:a,children:n})};Aq.displayName=Eq;var Nq="PopperAnchor",Iq=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=Cq(Nq,n),i=K.useRef(null),s=fU(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(eq.div,{...a,ref:s})}));Iq.displayName=Nq;var Rq="PopperContent",[Oq,Pq]=_q(Rq),Lq=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=Cq(Rq,l),[E,_]=K.useState(null),S=fU(t,(e=>_(e))),[T,C]=K.useState(null),A=fV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(jq),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),Bq({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=Hq(j),$=EU(k);PU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return PU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx(Oq,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(eq.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));Lq.displayName=Rq;var Dq="PopperArrow",Mq={top:"bottom",right:"left",bottom:"top",left:"right"},Fq=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=Pq(Dq,n),o=Mq[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(xq,{...r,ref:t,style:{...r.style,display:"block"}})})}));function jq(e){return null!==e}Fq.displayName=Dq;var Bq=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=Hq(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function Hq(e){const[t,n="center"]=e.split("-");return[t,n]}var zq=Aq,Uq=Iq,$q=Lq,Vq=Fq,Gq=new WeakMap,Wq=new WeakMap,qq={},Yq=0,Kq=function(e){return e&&(e.host||Kq(e.parentNode))},Xq=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Kq(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);qq[n]||(qq[n]=new WeakMap);var o=qq[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(Gq.get(e)||0)+1,c=(o.get(e)||0)+1;Gq.set(e,l),o.set(e,c),i.push(e),1===l&&a&&Wq.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(fee){console.error("aria-hidden: cannot operate on ",e,fee)}}))};return u(t),s.clear(),Yq++,function(){i.forEach((function(e){var t=Gq.get(e)-1,a=o.get(e)-1;Gq.set(e,t),o.set(e,a),t||(Wq.has(e)||e.removeAttribute(r),Wq.delete(e)),a||e.removeAttribute(n)})),--Yq||(Gq=new WeakMap,Gq=new WeakMap,Wq=new WeakMap,qq={})}},Qq=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),Xq(r,a,n,"aria-hidden")):function(){return null}},Zq="right-scroll-bar-position",Jq="width-before-scroll-bar";function eY(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tY="undefined"!=typeof window?K.useLayoutEffect:K.useEffect,nY=new WeakMap;function rY(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return eY(e,t)}))},(a=K.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return tY((function(){var t=nY.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||eY(e,null)})),r.forEach((function(e){n.has(e)||eY(e,a)}))}nY.set(o,e)}),[e]),o}function aY(e){return e}var oY=function(e){var t=e.sideCar,n=GB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return K.createElement(r,VB({},n))};oY.isSideCarExport=!0;var iY=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=aY);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=VB({async:!0,ssr:!1},e),t}(),sY=function(){},lY=K.forwardRef((function(e,t){var n=K.useRef(null),r=K.useState({onScrollCapture:sY,onWheelCapture:sY,onTouchMoveCapture:sY}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,k=GB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=rY([n,t]),E=VB(VB({},k),a);return K.createElement(K.Fragment,null,u&&K.createElement(w,{sideCar:iY,removeScrollBar:c,shards:d,noRelative:h,noIsolation:f,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),i?K.cloneElement(K.Children.only(s),VB(VB({},E),{ref:x})):K.createElement(b,VB({},E,{className:l,ref:x}),s))}));lY.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lY.classNames={fullWidth:Jq,zeroRight:Zq};function cY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var uY=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=cY())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dY=function(){var e,t=(e=uY(),function(t,n){K.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},pY={left:0,top:0,right:0,gap:0},hY=function(e){return parseInt(e||"",10)||0},fY=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pY;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[hY(n),hY(r),hY(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mY=dY(),gY="data-scroll-locked",yY=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(gY,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Zq," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jq," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zq," .").concat(Zq," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Jq," .").concat(Jq," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},bY=function(){var e=parseInt(document.body.getAttribute(gY)||"0",10);return isFinite(e)?e:0},vY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;K.useEffect((function(){return document.body.setAttribute(gY,(bY()+1).toString()),function(){var e=bY()-1;e<=0?document.body.removeAttribute(gY):document.body.setAttribute(gY,e.toString())}}),[]);var o=K.useMemo((function(){return fY(a)}),[a]);return K.createElement(mY,{styles:yY(o,!t,a,n?"":"!important")})},kY=!1;if("undefined"!=typeof window)try{var wY=Object.defineProperty({},"passive",{get:function(){return kY=!0,!0}});window.addEventListener("test",wY,wY),window.removeEventListener("test",wY,wY)}catch(uEe){kY=!1}var xY=!!kY&&{passive:!1},EY=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_Y=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),SY(e,r)){var a=TY(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},SY=function(e,t){return"v"===e?function(e){return EY(e,"overflowY")}(t):function(e){return EY(e,"overflowX")}(t)},TY=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},CY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},AY=function(e){return[e.deltaX,e.deltaY]},NY=function(e){return e&&"current"in e?e.current:e},IY=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},RY=0,OY=[];function PY(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const LY=(DY=function(e){var t=K.useRef([]),n=K.useRef([0,0]),r=K.useRef(),a=K.useState(RY++)[0],o=K.useState(dY)[0],i=K.useRef(e);K.useEffect((function(){i.current=e}),[e]),K.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=WB([e.lockRef.current],(e.shards||[]).map(NY),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=K.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=CY(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=_Y(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=_Y(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var h=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{if(!i)break;var p=TY(e,i),h=p[0],f=p[1]-p[2]-a*h;(h||f)&&SY(e,i)&&(u+=f,d+=h);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),l=K.useCallback((function(e){var n=e;if(OY.length&&OY[OY.length-1]===o){var r="deltaY"in n?AY(n):CY(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(NY).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=K.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:PY(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=K.useCallback((function(e){n.current=CY(e),r.current=void 0}),[]),d=K.useCallback((function(t){c(t.type,AY(t),t.target,s(t,e.lockRef.current))}),[]),p=K.useCallback((function(t){c(t.type,CY(t),t.target,s(t,e.lockRef.current))}),[]);K.useEffect((function(){return OY.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,xY),document.addEventListener("touchmove",l,xY),document.addEventListener("touchstart",u,xY),function(){OY=OY.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,xY),document.removeEventListener("touchmove",l,xY),document.removeEventListener("touchstart",u,xY)}}),[]);var h=e.removeScrollBar,f=e.inert;return K.createElement(K.Fragment,null,f?K.createElement(o,{styles:IY(a)}):null,h?K.createElement(vY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},iY.useMedium(DY),oY);var DY,MY=K.forwardRef((function(e,t){return K.createElement(lY,VB({},e,{ref:t,sideCar:LY}))}));MY.classNames=lY.classNames;var FY="Popover",[jY,BY]=mU(FY,[Sq]),HY=Sq(),[zY,UY]=jY(FY),$Y=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=HY(t),l=K.useRef(null),[c,u]=K.useState(!1),[d=!1,p]=BV({prop:r,defaultProp:a,onChange:o});return qh.jsx(zq,{...s,children:qh.jsx(zY,{scope:t,contentId:MU(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:K.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:K.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:K.useCallback((()=>u(!1)),[]),modal:i,children:n})})};$Y.displayName=FY;var VY="PopoverAnchor";K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(VY,n),o=HY(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return K.useEffect((()=>(i(),()=>s())),[i,s]),qh.jsx(Uq,{...o,...r,ref:t})})).displayName=VY;var GY="PopoverTrigger",WY=K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(GY,n),o=HY(n),i=fU(t,a.triggerRef),s=qh.jsx(eq.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":nK(a.open),...r,ref:i,onClick:dU(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:qh.jsx(Uq,{asChild:!0,...o,children:s})}));WY.displayName=GY;var[qY,YY]=jY("PopoverPortal",{forceMount:void 0}),KY="PopoverContent",XY=K.forwardRef(((e,t)=>{const n=YY(KY,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=UY(KY,e.__scopePopover);return qh.jsx(FV,{present:r||o.open,children:o.modal?qh.jsx(QY,{...a,ref:t}):qh.jsx(ZY,{...a,ref:t})})}));XY.displayName=KY;var QY=K.forwardRef(((e,t)=>{const n=UY(KY,e.__scopePopover),r=K.useRef(null),a=fU(t,r),o=K.useRef(!1);return K.useEffect((()=>{const e=r.current;if(e)return Qq(e)}),[]),qh.jsx(MY,{as:XW,allowPinchZoom:!0,children:qh.jsx(JY,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dU(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:dU(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:dU(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),ZY=K.forwardRef(((e,t)=>{const n=UY(KY,e.__scopePopover),r=K.useRef(!1),a=K.useRef(!1);return qh.jsx(JY,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),JY=K.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=UY(KY,n),h=HY(n);return K.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??uq()),document.body.insertAdjacentElement("beforeend",e[1]??uq()),cq++,()=>{1===cq&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),cq--}}),[]),qh.jsx(fq,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:qh.jsx(iq,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:qh.jsx($q,{"data-state":nK(p.open),role:"dialog",id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),eK="PopoverClose";K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(eK,n);return qh.jsx(eq.button,{type:"button",...r,ref:t,onClick:dU(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=eK;var tK=K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=HY(n);return qh.jsx(Vq,{...a,...r,ref:t})}));function nK(e){return e?"open":"closed"}tK.displayName="PopoverArrow";var rK=$Y,aK=WY,oK=XY,iK=tK,sK=K.createContext(void 0);var lK="ScrollArea",[cK,uK]=mU(lK),[dK,pK]=cK(lK),hK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=K.useState(null),[c,u]=K.useState(null),[d,p]=K.useState(null),[h,f]=K.useState(null),[m,g]=K.useState(null),[y,b]=K.useState(0),[v,k]=K.useState(0),[w,x]=K.useState(!1),[E,_]=K.useState(!1),S=fU(t,(e=>l(e))),T=function(e){const t=K.useContext(sK);return e||t||"ltr"}(a);return qh.jsx(dK,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:h,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:k,children:qh.jsx(xU.div,{dir:T,...i,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));hK.displayName=lK;var fK="ScrollAreaViewport",mK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=pK(fK,n),s=fU(t,K.useRef(null),i.onViewportChange);return qh.jsxs(qh.Fragment,{children:[qh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),qh.jsx(xU.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:qh.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));mK.displayName=fK;var gK="ScrollAreaScrollbar",yK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return K.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?qh.jsx(bK,{...r,ref:t,forceMount:n}):"scroll"===a.type?qh.jsx(vK,{...r,ref:t,forceMount:n}):"auto"===a.type?qh.jsx(kK,{...r,ref:t,forceMount:n}):"always"===a.type?qh.jsx(wK,{...r,ref:t}):null}));yK.displayName=gK;var bK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),[o,i]=K.useState(!1);return K.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),qh.jsx(FV,{present:n||o,children:qh.jsx(kK,{"data-state":o?"visible":"hidden",...r,ref:t})})})),vK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),o="horizontal"===e.orientation,i=HK((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},K.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return K.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),K.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),qh.jsx(FV,{present:n||"hidden"!==s,children:qh.jsx(wK,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:dU(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:dU(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),kK=K.forwardRef(((e,t)=>{const n=pK(gK,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=K.useState(!1),s="horizontal"===e.orientation,l=HK((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return zK(n.viewport,l),zK(n.content,l),qh.jsx(FV,{present:r||o,children:qh.jsx(wK,{"data-state":o?"visible":"hidden",...a,ref:t})})})),wK=K.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=pK(gK,e.__scopeScrollArea),o=K.useRef(null),i=K.useRef(0),[s,l]=K.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=LK(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=DK(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return FK([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?qh.jsx(xK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=MK(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?qh.jsx(EK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=MK(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),xK=K.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=pK(gK,e.__scopeScrollArea),[i,s]=K.useState(),l=K.useRef(null),c=fU(t,l,o.onScrollbarXChange);return K.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),qh.jsx(TK,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":DK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),jK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:PK(i.paddingLeft),paddingEnd:PK(i.paddingRight)}})}})})),EK=K.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=pK(gK,e.__scopeScrollArea),[i,s]=K.useState(),l=K.useRef(null),c=fU(t,l,o.onScrollbarYChange);return K.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),qh.jsx(TK,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":DK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),jK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:PK(i.paddingTop),paddingEnd:PK(i.paddingBottom)}})}})})),[_K,SK]=cK(gK),TK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,h=pK(gK,n),[f,m]=K.useState(null),g=fU(t,(e=>m(e))),y=K.useRef(null),b=K.useRef(""),v=h.viewport,k=r.content-r.viewport,w=EU(u),x=EU(l),E=HK(d,10);function _(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return K.useEffect((()=>{const e=e=>{const t=e.target;(null==f?void 0:f.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,f,k,w]),K.useEffect(x,[r,x]),zK(f,E),zK(h.content,E),qh.jsx(_K,{scope:n,scrollbar:f,hasThumb:a,onThumbChange:EU(o),onThumbPointerUp:EU(i),onThumbPositionChange:x,onThumbPointerDown:EU(s),children:qh.jsx(xU.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:dU(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(e)}})),onPointerMove:dU(e.onPointerMove,_),onPointerUp:dU(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null}))})})})),CK="ScrollAreaThumb",AK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=SK(CK,e.__scopeScrollArea);return qh.jsx(FV,{present:n||a.hasThumb,children:qh.jsx(NK,{ref:t,...r})})})),NK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=pK(CK,n),i=SK(CK,n),{onThumbPositionChange:s}=i,l=fU(t,(e=>i.onThumbChange(e))),c=K.useRef(void 0),u=HK((()=>{c.current&&(c.current(),c.current=void 0)}),100);return K.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=BK(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),qh.jsx(xU.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:dU(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:dU(e.onPointerUp,i.onThumbPointerUp)})}));AK.displayName=CK;var IK="ScrollAreaCorner",RK=K.forwardRef(((e,t)=>{const n=pK(IK,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?qh.jsx(OK,{...e,ref:t}):null}));RK.displayName=IK;var OK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=pK(IK,n),[o,i]=K.useState(0),[s,l]=K.useState(0),c=Boolean(o&&s);return zK(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),zK(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?qh.jsx(xU.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function PK(e){return e?parseInt(e,10):0}function LK(e,t){const n=e/t;return isNaN(n)?0:n}function DK(e){const t=LK(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function MK(e,t,n="ltr"){const r=DK(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return FK([0,i],[0,s])(l)}function FK(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function jK(e,t){return e>0&&e<t}var BK=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function HK(e,t){const n=EU(e),r=K.useRef(0);return K.useEffect((()=>()=>window.clearTimeout(r.current)),[]),K.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function zK(e,t){const n=EU(t);PU((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var UK=hK,$K=mK,VK=RK;function GK(e,[t,n]){return Math.min(n,Math.max(t,e))}function WK(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function qK(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>K.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return K.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=K.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=K.useMemo((()=>s),Object.values(s));return qh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=K.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},YK(r,...t)]}function YK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return K.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function KK(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function XK(...e){return t=>{let n=!1;const r=e.map((e=>{const r=KK(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():KK(e[t],null)}}}}function QK(...e){return K.useCallback(XK(...e),e)}function ZK(e){const t=JK(e),n=K.forwardRef(((e,n)=>{const{children:r,...a}=e,o=K.Children.toArray(r),i=o.find(tX);if(i){const e=i.props.children,r=o.map((t=>t===i?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(t,{...a,ref:n,children:K.isValidElement(e)?K.cloneElement(e,void 0,r):null})}return qh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function JK(e){const t=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{const t=o(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?XK(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var eX=Symbol("radix.slottable");function tX(e){return K.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eX}var nX=K.createContext(void 0);function rX(e){const t=K.useContext(nX);return e||t||"ltr"}function aX(e){const t=iX(e),n=K.forwardRef(((e,n)=>{const{children:r,...a}=e,o=K.Children.toArray(r),i=o.find(lX);if(i){const e=i.props.children,r=o.map((t=>t===i?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(t,{...a,ref:n,children:K.isValidElement(e)?K.cloneElement(e,void 0,r):null})}return qh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}var oX=aX("Slot");function iX(e){const t=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?XK(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var sX=Symbol("radix.slottable");function lX(e){return K.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===sX}var cX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=aX(`Primitive.${t}`),r=K.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});var uX,dX="dismissableLayer.update",pX="dismissableLayer.pointerDownOutside",hX="dismissableLayer.focusOutside",fX=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mX=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(fX),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=QK(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){yX(pX,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){yX(hX,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e);K.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(uX=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),gX(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=uX)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),gX())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(dX,e),()=>document.removeEventListener(dX,e)}),[]),qh.jsx(cX.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:WK(e.onFocusCapture,x.onFocusCapture),onBlurCapture:WK(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:WK(e.onPointerDownCapture,w.onPointerDownCapture)})}));mX.displayName="DismissableLayer";function gX(){const e=new CustomEvent(dX);document.dispatchEvent(e)}function yX(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(fX),r=K.useRef(null),a=QK(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(cX.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var bX=0;function vX(){K.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kX()),document.body.insertAdjacentElement("beforeend",e[1]??kX()),bX++,()=>{1===bX&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),bX--}}),[])}function kX(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wX="focusScope.autoFocusOnMount",xX="focusScope.autoFocusOnUnmount",EX={bubbles:!1,cancelable:!0},_X=K.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=K.useState(null),c=oW(a),u=oW(o),d=K.useRef(null),p=QK(t,(e=>l(e))),h=K.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:AX(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||AX(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&AX(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),K.useEffect((()=>{if(s){NX.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(wX,EX);s.addEventListener(wX,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(AX(r,{select:t}),document.activeElement!==n)return}((e=SX(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&AX(s))}return()=>{s.removeEventListener(wX,c),setTimeout((()=>{const e=new CustomEvent(xX,EX);s.addEventListener(xX,u),s.dispatchEvent(e),e.defaultPrevented||AX(t??document.body,{select:!0}),s.removeEventListener(xX,u),NX.remove(h)}),0)}}var e}),[s,c,u,h]);const f=K.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=SX(e),n=TX(t,e),r=TX(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&AX(o,{select:!0})):(e.preventDefault(),n&&AX(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return qh.jsx(cX.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function SX(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function TX(e,t){for(const n of e)if(!CX(n,{upTo:t}))return n}function CX(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function AX(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}_X.displayName="FocusScope";var NX=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=IX(e,t),e.unshift(t)},remove(t){var n;e=IX(e,t),null==(n=e[0])||n.resume()}}}();function IX(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var RX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=ZK(`Primitive.${t}`),r=K.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),OX=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(RX.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));OX.displayName="Arrow";var PX=OX;var LX="Popper",[DX,MX]=qK(LX),[FX,jX]=DX(LX),BX=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(FX,{scope:t,anchor:r,onAnchorChange:a,children:n})};BX.displayName=LX;var HX="PopperAnchor",zX=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=jX(HX,n),i=K.useRef(null),s=QK(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(RX.div,{...a,ref:s})}));zX.displayName=HX;var UX="PopperContent",[$X,VX]=DX(UX),GX=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=jX(UX,l),[E,_]=K.useState(null),S=QK(t,(e=>_(e))),[T,C]=K.useState(null),A=function(e){const[t,n]=K.useState(void 0);return FO((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(KX),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),XX({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=QX(j),$=oW(k);FO((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return FO((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx($X,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(RX.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));GX.displayName=UX;var WX="PopperArrow",qX={top:"bottom",right:"left",bottom:"top",left:"right"},YX=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=VX(WX,n),o=qX[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(PX,{...r,ref:t,style:{...r.style,display:"block"}})})}));function KX(e){return null!==e}YX.displayName=WX;var XX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=QX(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function QX(e){const[t,n="center"]=e.split("-");return[t,n]}var ZX=BX,JX=zX,eQ=GX,tQ=YX,nQ=K.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=K.useState(!1);FO((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?le.createPortal(qh.jsx(cX.div,{...a,ref:t}),s):null}));nQ.displayName="Portal";const rQ=[" ","Enter","ArrowUp","ArrowDown"],aQ=[" ","Enter"],oQ="Select",[iQ,sQ,lQ]=function(e){const t=e+"CollectionProvider",[n,r]=qK(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=X.useRef(null),o=X.useRef(new Map).current;return qh.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=ZK(s),c=X.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=QK(t,o(s,n).collectionRef);return qh.jsx(l,{ref:a,children:r})}));c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=ZK(u),h=X.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=X.useRef(null),s=QK(t,i),l=o(u,n);return X.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),qh.jsx(p,{[d]:"",ref:s,children:r})}));return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){const n=o(e+"CollectionConsumer",t);return X.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(oQ),[cQ,uQ]=qK(oQ,[lQ,MX]),dQ=MX(),[pQ,hQ]=cQ(oQ),[fQ,mQ]=cQ(oQ),gQ=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,disabled:u,required:d}=e,p=dQ(t),[h,f]=K.useState(null),[m,g]=K.useState(null),[y,b]=K.useState(!1),v=rX(c),[k,w]=iW({prop:r,defaultProp:a??!1,onChange:o}),[x,E]=iW({prop:i,defaultProp:s,onChange:l}),_=K.useRef(null),[S,T]=K.useState(new Set);return qh.jsx(ZX,{...p,children:qh.jsx(pQ,{required:d,scope:t,trigger:h,onTriggerChange:f,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:HO(),value:x,onValueChange:E,open:!!k,onOpenChange:w,dir:v,triggerPointerDownPosRef:_,disabled:u,children:qh.jsx(iQ.Provider,{scope:t,children:qh.jsx(fQ,{scope:e.__scopeSelect,onNativeOptionAdd:K.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:K.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})})})})};gQ.displayName=oQ;const yQ="SelectTrigger",bQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=dQ(n),i=hQ(yQ,n),s=i.disabled||r,l=QK(t,i.onTriggerChange),c=sQ(n),u=K.useRef("touch"),[d,p,h]=ZQ((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=JQ(t,e,n);void 0!==r&&i.onValueChange(r.value)})),f=e=>{s||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return qh.jsx(JX,{asChild:!0,...o,children:qh.jsx(cX.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":QQ(i.value)?"":void 0,...a,ref:l,onClick:WK(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)})),onPointerDown:WK(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())})),onKeyDown:WK(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||rQ.includes(e.key)&&(f(),e.preventDefault())}))})})}));bQ.displayName=yQ;const vQ="SelectValue",kQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=hQ(vQ,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=QK(t,l.onValueNodeChange);return FO((()=>{c(u)}),[c,u]),qh.jsx(cX.span,{...s,ref:d,style:{pointerEvents:"none"},children:QQ(l.value)?qh.jsx(qh.Fragment,{children:i}):o})}));kQ.displayName=vQ;const wQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return qh.jsx(cX.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));wQ.displayName="SelectIcon";const xQ="SelectContent",EQ=K.forwardRef(((e,t)=>{const n=hQ(xQ,e.__scopeSelect),[r,a]=K.useState();if(FO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?se.createPortal(qh.jsx(SQ,{scope:e.__scopeSelect,children:qh.jsx(iQ.Slot,{scope:e.__scopeSelect,children:qh.jsx("div",{children:e.children})})}),t):null}return qh.jsx(AQ,{...e,ref:t})}));EQ.displayName=xQ;const _Q=10,[SQ,TQ]=cQ(xQ),CQ=aX("SelectContent.RemoveScroll"),AQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=hQ(xQ,n),[v,k]=K.useState(null),[w,x]=K.useState(null),E=QK(t,(e=>k(e))),[_,S]=K.useState(null),[T,C]=K.useState(null),A=sQ(n),[N,I]=K.useState(!1),R=K.useRef(!1);K.useEffect((()=>{if(v)return Qq(v)}),[v]),vX();const O=K.useCallback((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[A,w]),P=K.useCallback((()=>O([_,v])),[O,_,v]);K.useEffect((()=>{N&&P()}),[N,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;K.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),K.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=ZQ((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=JQ(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=K.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(S(e),r&&(R.current=!0))}),[b.value]),B=K.useCallback((()=>null==v?void 0:v.focus()),[v]),H=K.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),z="popper"===r?IQ:NQ,U=z===IQ?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return qh.jsx(SQ,{scope:n,content:v,viewport:w,onViewportChange:x,itemRefCallback:j,selectedItem:_,onItemLeave:B,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:T,position:r,isPositioned:N,searchRef:M,children:qh.jsx(MY,{as:CQ,allowPinchZoom:!0,removeScrollBar:!1,children:qh.jsx(_X,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:WK(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:qh.jsx(mX,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:qh.jsx(z,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:WK(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));AQ.displayName="SelectContentImpl";const NQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=hQ(xQ,n),i=TQ(xQ,n),[s,l]=K.useState(null),[c,u]=K.useState(null),d=QK(t,(e=>u(e))),p=sQ(n),h=K.useRef(!1),f=K.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=K.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-_Q,d=GK(o,[_Q,Math.max(_Q,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-_Q,d=GK(o,[_Q,Math.max(_Q,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*_Q,u=m.scrollHeight,d=window.getComputedStyle(c),f=Number.parseInt(d.borderTopWidth,10),b=Number.parseInt(d.paddingTop,10),v=Number.parseInt(d.borderBottomWidth,10),k=f+b+u+Number.parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),x=window.getComputedStyle(m),E=Number.parseInt(x.paddingTop,10),_=Number.parseInt(x.paddingBottom,10),S=e.top+e.height/2-_Q,T=l-S,C=g.offsetHeight/2,A=f+b+(g.offsetTop+C),N=k-A;if(A<=S){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(T,C+(e?_:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(S,f+m.offsetTop+(e?E:0)+C)+N;s.style.height=t+"px",m.scrollTop=A-S+m.offsetTop}s.style.margin=`${_Q}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);FO((()=>v()),[v]);const[k,w]=K.useState();FO((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const x=K.useCallback((e=>{e&&!0===f.current&&(v(),null==b||b(),f.current=!1)}),[v,b]);return qh.jsx(RQ,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x,children:qh.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:qh.jsx(cX.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));NQ.displayName="SelectItemAlignedPosition";const IQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=_Q,...o}=e,i=dQ(n);return qh.jsx(eQ,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));IQ.displayName="SelectPopperPosition";const[RQ,OQ]=cQ(xQ,{}),PQ="SelectViewport",LQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=TQ(PQ,n),i=OQ(PQ,n),s=QK(t,o.onViewportChange),l=K.useRef(0);return qh.jsxs(qh.Fragment,{children:[qh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),qh.jsx(iQ.Slot,{scope:n,children:qh.jsx(cX.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:WK(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*_Q,a=Number.parseFloat(n.style.minHeight),o=Number.parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));LQ.displayName=PQ;const DQ="SelectGroup",[MQ,FQ]=cQ(DQ);K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=HO();return qh.jsx(MQ,{scope:n,id:a,children:qh.jsx(cX.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=DQ;const jQ="SelectLabel";K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=FQ(jQ,n);return qh.jsx(cX.div,{id:a.id,...r,ref:t})})).displayName=jQ;const BQ="SelectItem",[HQ,zQ]=cQ(BQ),UQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=hQ(BQ,n),l=TQ(BQ,n),c=s.value===r,[u,d]=K.useState(o??""),[p,h]=K.useState(!1),f=QK(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=HO(),g=K.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return qh.jsx(HQ,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:K.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:qh.jsx(iQ.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:qh.jsx(cX.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:f,onFocus:WK(i.onFocus,(()=>h(!0))),onBlur:WK(i.onBlur,(()=>h(!1))),onClick:WK(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:WK(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:WK(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:WK(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:WK(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:WK(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(aQ.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));UQ.displayName=BQ;const $Q="SelectItemText",VQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=hQ($Q,n),s=TQ($Q,n),l=zQ($Q,n),c=mQ($Q,n),[u,d]=K.useState(null),p=QK(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),h=null==u?void 0:u.textContent,f=K.useMemo((()=>qh.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value)),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return FO((()=>(m(f),()=>g(f))),[m,g,f]),qh.jsxs(qh.Fragment,{children:[qh.jsx(cX.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?se.createPortal(o.children,i.valueNode):null]})}));VQ.displayName=$Q;const GQ="SelectItemIndicator",WQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return zQ(GQ,n).isSelected?qh.jsx(cX.span,{"aria-hidden":!0,...r,ref:t}):null}));WQ.displayName=GQ;const qQ="SelectScrollUpButton";K.forwardRef(((e,t)=>{const n=TQ(qQ,e.__scopeSelect),r=OQ(qQ,e.__scopeSelect),[a,o]=K.useState(!1),i=QK(t,r.onScrollButtonChange);return FO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?qh.jsx(KQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=qQ;const YQ="SelectScrollDownButton";K.forwardRef(((e,t)=>{const n=TQ(YQ,e.__scopeSelect),r=OQ(YQ,e.__scopeSelect),[a,o]=K.useState(!1),i=QK(t,r.onScrollButtonChange);return FO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?qh.jsx(KQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=YQ;const KQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=TQ("SelectScrollButton",n),i=K.useRef(null),s=sQ(n),l=K.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return K.useEffect((()=>()=>l()),[l]),FO((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),qh.jsx(cX.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:WK(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:WK(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:WK(a.onPointerLeave,(()=>{l()}))})}));K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return qh.jsx(cX.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";const XQ="SelectArrow";function QQ(e){return""===e||void 0===e}function ZQ(e){const t=oW(e),n=K.useRef(""),r=K.useRef(0),a=K.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=K.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return K.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function JQ(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=dQ(n),o=hQ(XQ,n),i=TQ(XQ,n);return o.open&&"popper"===i.position?qh.jsx(tQ,{...a,...r,ref:t}):null})).displayName=XQ;const eZ=gQ,tZ=bQ,nZ=kQ,rZ=wQ,aZ=EQ,oZ=LQ,iZ=UQ,sZ=VQ,lZ=WQ;var cZ=Object.defineProperty,uZ=(e,t,n)=>((e,t,n)=>t in e?cZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),dZ={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},pZ=[],hZ=class{constructor(e,t){uZ(this,"trapStack"),uZ(this,"config"),uZ(this,"doc"),uZ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),uZ(this,"portalContainers",new Set),uZ(this,"listenerCleanups",[]),uZ(this,"handleFocus",(e=>{const t=fM(e),n=this.findContainerIndex(t,e)>=0;if(n||$D(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode)if(OM(this.state.mostRecentlyFocusedNode)>0){const e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){const e=r.findIndex((e=>e===this.state.mostRecentlyFocusedNode));e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some((e=>e.tabbableNodes.some((e=>OM(e)>0))))||(n=!1);else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0})),uZ(this,"handlePointerDown",(e=>{const t=fM(e);this.findContainerIndex(t,e)>=0||(bZ(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):bZ(this.config.allowOutsideClick,e)||e.preventDefault())})),uZ(this,"handleClick",(e=>{const t=fM(e);this.findContainerIndex(t,e)>=0||bZ(this.config.clickOutsideDeactivates,e)||bZ(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())})),uZ(this,"handleTabKey",(e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;const t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;mZ(e)&&e.preventDefault(),this.tryFocus(n)}})),uZ(this,"handleEscapeKey",(e=>{vZ(e)&&!1!==bZ(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())})),uZ(this,"_mutationObserver"),uZ(this,"setupMutationObserver",(()=>{const e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver((e=>{e.some((e=>Array.from(e.removedNodes).some((e=>e===this.state.mostRecentlyFocusedNode))))&&this.tryFocus(this.getInitialFocusNode());e.some((e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!!function(e){var t;return!!function(e){return e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")}(e)||Boolean(null==(t=e.querySelector)?void 0:t.call(e,'[aria-controls][aria-expanded="true"]'))}(t)||!(!t.id||this.state.containers.some((e=>e.contains(t))))&&lM(t)}))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())}))})),uZ(this,"updateObservedNodes",(()=>{var e;null==(e=this._mutationObserver)||e.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map((e=>{var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})})),this.portalContainers.forEach((e=>{this.observePortalContainer(e)})))})),uZ(this,"getInitialFocusNode",(()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!NM(e)){const t=ZD(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{const t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e})),uZ(this,"tryFocus",(e=>{!1!==e&&e!==ZD(this.doc)&&(e&&e.focus?(e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,wZ(e)&&e.select()):this.tryFocus(this.getInitialFocusNode()))})),uZ(this,"deactivate",(e=>{if(!this.state.active)return this;const t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),dZ.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),a=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");null==n||n();const i=()=>{kZ((()=>{if(o){const e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}null==r||r()}))};if(o&&a){return a(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(i,i),this}return i(),this})),uZ(this,"pause",(e=>{if(this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,null==t||t(),this.removeListeners(),this.updateObservedNodes(),null==n||n(),this})),uZ(this,"unpause",(e=>{if(!this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,null==t||t(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n(),this})),uZ(this,"updateContainerElements",(e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this))),uZ(this,"getReturnFocusNode",(e=>{const t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e})),uZ(this,"getOption",((e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t])),uZ(this,"getNodeForOption",((e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw new Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let a=r;if("string"==typeof r){try{a=this.doc.querySelector(r)}catch(uEe){throw new Error(`\`${e}\` appears to be an invalid selector; error="${uEe.message}"`)}if(!a&&!t)throw new Error(`\`${e}\` as selector refers to no known node`)}return a})),uZ(this,"findNextNavNode",(e=>{const{event:t,isBackward:n=!1}=e,r=e.target||fM(t);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const e=this.findContainerIndex(r,t),o=e>=0?this.state.containerGroups[e]:void 0;if(e<0)a=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex((({firstTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||NM(r)&&!RM(r)&&!(null==o?void 0:o.nextTabbableNode(r,!1)))&&(n=e),n>=0){const e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];a=OM(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else mZ(t)||(a=null==o?void 0:o.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex((({lastTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||NM(r)&&!RM(r)&&!(null==o?void 0:o.nextTabbableNode(r)))&&(n=e),n>=0){const e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];a=OM(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else mZ(t)||(a=null==o?void 0:o.nextTabbableNode(r))}}else a=this.getNodeForOption("fallbackFocus");return a})),this.trapStack=t.trapStack||pZ;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:gZ,isKeyBackward:yZ,...t};this.doc=n.document||XD(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach((e=>{sM(e).forEach((e=>{this.addPortalContainer(e)}))}))}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return this.state.containerGroups.findIndex((({container:t,tabbableNodes:r})=>t.contains(e)||(null==n?void 0:n.includes(t))||r.find((t=>t===e))||this.isControlledElement(t,e)))}isControlledElement(e,t){return!!this.config.followControlledElements&&iM(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map((e=>{const t=IM(e,{getShadowRoot:this.config.getShadowRoot}),n=AM(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],a=t[t.length-1],o=r,i=a;let s=!1;for(let l=0;l<t.length;l++)if(OM(t[l])>0){s=!0;break}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:i,nextTabbableNode:function(e,r=!0){const a=t.indexOf(e);if(a>=0)return t[a+(r?1:-1)];const o=n.indexOf(e);if(!(o<0))if(r){for(let t=o+1;t<n.length;t++)if(RM(n[t]))return n[t]}else for(let t=o-1;t>=0;t--)if(RM(n[t]))return n[t]}}})),this.state.tabbableGroups=this.state.containerGroups.filter((e=>e.tabbableNodes.length>0)),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find((e=>e.posTabIndexesFound))&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return dZ.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?kZ((()=>{this.tryFocus(this.getInitialFocusNode())})):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(wM(this.doc,"focusin",this.handleFocus,!0),wM(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),wM(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),wM(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),wM(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),wM(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach((e=>e())),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ZD(this.doc),null==t||t();const a=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n()};return r?(r(this.state.containers.concat()).then(a,a),this):(a(),this)}},fZ=e=>"keydown"===e.type,mZ=e=>fZ(e)&&"Tab"===(null==e?void 0:e.key),gZ=e=>fZ(e)&&"Tab"===e.key&&!(null==e?void 0:e.shiftKey),yZ=e=>fZ(e)&&"Tab"===e.key&&(null==e?void 0:e.shiftKey),bZ=(e,...t)=>"function"==typeof e?e(...t):e,vZ=e=>!e.isComposing&&"Escape"===e.key,kZ=e=>setTimeout(e,0),wZ=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;var xZ=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=K.useState(),r=K.useRef({}),a=K.useRef(e),o=K.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return K.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K.useEffect((()=>{const e=EZ(r.current);o.current="mounted"===s?e:"none"}),[s]),FO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=EZ(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),FO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=EZ(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=EZ(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:K.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):K.Children.only(n),o=QK(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?K.cloneElement(a,{ref:o}):null};function EZ(e){return(null==e?void 0:e.animationName)||"none"}xZ.displayName="Presence";const _Z="Dialog",[SZ,TZ]=qK(_Z),[CZ,AZ]=SZ(_Z),NZ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=K.useRef(null),l=K.useRef(null),[c=!1,u]=iW({prop:r,defaultProp:a,onChange:o});return qh.jsx(CZ,{scope:t,triggerRef:s,contentRef:l,contentId:HO(),titleId:HO(),descriptionId:HO(),open:c,onOpenChange:u,onOpenToggle:K.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};NZ.displayName=_Z;const IZ="DialogTrigger";K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(IZ,n),o=QK(t,a.triggerRef);return qh.jsx(cX.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":YZ(a.open),...r,ref:o,onClick:WK(e.onClick,a.onOpenToggle)})})).displayName=IZ;const RZ="DialogPortal",[OZ,PZ]=SZ(RZ,{forceMount:void 0}),LZ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=AZ(RZ,t);return qh.jsx(OZ,{scope:t,forceMount:n,children:K.Children.map(r,(e=>qh.jsx(xZ,{present:n||o.open,children:qh.jsx(nQ,{asChild:!0,container:a,children:e})})))})};LZ.displayName=RZ;const DZ="DialogOverlay",MZ=K.forwardRef(((e,t)=>{const n=PZ(DZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=AZ(DZ,e.__scopeDialog);return o.modal?qh.jsx(xZ,{present:r||o.open,children:qh.jsx(FZ,{...a,ref:t})}):null}));MZ.displayName=DZ;const FZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(DZ,n);return qh.jsx(MY,{as:oX,allowPinchZoom:!0,shards:[a.contentRef],gapMode:"padding",removeScrollBar:!0,children:qh.jsx(cX.div,{"data-state":YZ(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),jZ="DialogContent",BZ=K.forwardRef(((e,t)=>{const n=PZ(jZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=AZ(jZ,e.__scopeDialog);return qh.jsx(xZ,{present:r||o.open,children:o.modal?qh.jsx(HZ,{...a,ref:t}):qh.jsx(zZ,{...a,ref:t})})}));BZ.displayName=jZ;const HZ=K.forwardRef(((e,t)=>{const n=AZ(jZ,e.__scopeDialog),r=K.useRef(null),a=QK(t,n.contentRef,r);return K.useEffect((()=>{const e=r.current;if(e)return Qq(e)}),[]),qh.jsx(UZ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onPointerDownOutside:WK(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:WK(e.onFocusOutside,(e=>e.preventDefault()))})})),zZ=K.forwardRef(((e,t)=>{const n=AZ(jZ,e.__scopeDialog),r=K.useRef(!1),a=K.useRef(!1);return qh.jsx(UZ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),UZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=AZ(jZ,n),l=K.useRef(null),c=QK(t,l);return vX(),K.useEffect((()=>{if(r)return function(e,t={}){let n;const r=LM((()=>{const r=(Array.isArray(e)?e:[e]).map((e=>"function"==typeof e?e():e)).filter((e=>null!=e));if(0===r.length)return;const a=r[0];n=new hZ(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:a,...t,document:XD(a)});try{n.activate()}catch{}}));return function(){null==n||n.deactivate(),r()}}(l.current,{preventScroll:!0,onActivate:a,onDeactivate:o,initialFocus:!1})}),[]),qh.jsx(mX,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":YZ(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})})),$Z="DialogTitle",VZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ($Z,n);return qh.jsx(cX.h2,{id:a.titleId,...r,ref:t})}));VZ.displayName=$Z;const GZ="DialogDescription";K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(GZ,n);return qh.jsx(cX.p,{id:a.descriptionId,...r,ref:t})})).displayName=GZ;const WZ="DialogClose",qZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(WZ,n);return qh.jsx(cX.button,{type:"button",...r,ref:t,onClick:WK(e.onClick,(()=>a.onOpenChange(!1)))})}));function YZ(e){return e?"open":"closed"}qZ.displayName=WZ;const KZ=NZ,XZ=LZ,QZ=MZ,ZZ=BZ,JZ=VZ,eJ=qZ,tJ=K.forwardRef(((e,t)=>{const n=K.useId();return qh.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"100%",width:"100%",ref:t,...e,children:[qh.jsx("title",{children:"AI Avatar"}),qh.jsx("path",{d:"M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",stroke:`url(#${n}-stroke1)`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsx("path",{d:"M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",stroke:`url(#${n}-stroke2)`,strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsx("path",{d:"M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",stroke:`url(#${n}-stroke3)`,strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsxs("defs",{children:[qh.jsxs("linearGradient",{id:`${n}-stroke1`,x1:"0.149625",y1:"0.148102",x2:"23.8539",y2:"23.8524",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),qh.jsxs("linearGradient",{id:`${n}-stroke2`,x1:"16.537",y1:"1.53728",x2:"22.463",y2:"7.46321",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),qh.jsxs("linearGradient",{id:`${n}-stroke3`,x1:"1.53704",y1:"16.5373",x2:"7.46296",y2:"22.4632",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]})]})]})})),nJ=K.forwardRef(((e,t)=>qh.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"32px",viewBox:"0 96 960 960",width:"32px",ref:t,...e,children:[qh.jsx("title",{children:"User Avatar"}),qh.jsx("path",{d:"M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",fill:"currentColor"})]}))),rJ=K.forwardRef((({isExternal:e,...t},n)=>qh.jsx("a",{target:e?"_blank":void 0,rel:e?"noopener":void 0,...t,ref:n})));rJ.displayName="Link";const aJ=K.forwardRef((({href:e,appendToUrl:t,...n},r)=>{const{baseSettings:a}=nP(),o=Object.assign({},a.urlQueryParamsToAppend,t),i=e?function(e,t){if(!t)return e;try{const n=new URL(e);for(const e of Object.keys(t))t[e]&&n.searchParams.append(e,t[e]);return n.href}catch{return e}}(e,o):e;return qh.jsx(rJ,{ref:r,href:i,...n})}));function oJ(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function iJ(e,t){const n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}aJ.displayName="LinkWithQueryParams";const sJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cJ={};function uJ(e,t){return(cJ.jsx?lJ:sJ).test(e)}const dJ=/[ \t\n\f\r]/g;function pJ(e){return""===e.replace(dJ,"")}let hJ=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function fJ(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new hJ(n,r,t)}function mJ(e){return e.toLowerCase()}hJ.prototype.normal={},hJ.prototype.property={},hJ.prototype.space=void 0;let gJ=class{constructor(e,t){this.attribute=t,this.property=e}};gJ.prototype.attribute="",gJ.prototype.booleanish=!1,gJ.prototype.boolean=!1,gJ.prototype.commaOrSpaceSeparated=!1,gJ.prototype.commaSeparated=!1,gJ.prototype.defined=!1,gJ.prototype.mustUseProperty=!1,gJ.prototype.number=!1,gJ.prototype.overloadedBoolean=!1,gJ.prototype.property="",gJ.prototype.spaceSeparated=!1,gJ.prototype.space=void 0;let yJ=0;const bJ=SJ(),vJ=SJ(),kJ=SJ(),wJ=SJ(),xJ=SJ(),EJ=SJ(),_J=SJ();function SJ(){return 2**++yJ}const TJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:bJ,booleanish:vJ,commaOrSpaceSeparated:_J,commaSeparated:EJ,number:wJ,overloadedBoolean:kJ,spaceSeparated:xJ},Symbol.toStringTag,{value:"Module"})),CJ=Object.keys(TJ);let AJ=class extends gJ{constructor(e,t,n,r){let a=-1;if(super(e,t),NJ(this,"space",r),"number"==typeof n)for(;++a<CJ.length;){const e=CJ[a];NJ(this,CJ[a],(n&TJ[e])===TJ[e])}}};function NJ(e,t,n){n&&(e[t]=n)}function IJ(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new AJ(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[mJ(r)]=r,n[mJ(o.attribute)]=r}return new hJ(t,n,e.space)}AJ.prototype.defined=!0;const RJ=IJ({properties:{ariaActiveDescendant:null,ariaAtomic:vJ,ariaAutoComplete:null,ariaBusy:vJ,ariaChecked:vJ,ariaColCount:wJ,ariaColIndex:wJ,ariaColSpan:wJ,ariaControls:xJ,ariaCurrent:null,ariaDescribedBy:xJ,ariaDetails:null,ariaDisabled:vJ,ariaDropEffect:xJ,ariaErrorMessage:null,ariaExpanded:vJ,ariaFlowTo:xJ,ariaGrabbed:vJ,ariaHasPopup:null,ariaHidden:vJ,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xJ,ariaLevel:wJ,ariaLive:null,ariaModal:vJ,ariaMultiLine:vJ,ariaMultiSelectable:vJ,ariaOrientation:null,ariaOwns:xJ,ariaPlaceholder:null,ariaPosInSet:wJ,ariaPressed:vJ,ariaReadOnly:vJ,ariaRelevant:null,ariaRequired:vJ,ariaRoleDescription:xJ,ariaRowCount:wJ,ariaRowIndex:wJ,ariaRowSpan:wJ,ariaSelected:vJ,ariaSetSize:wJ,ariaSort:null,ariaValueMax:wJ,ariaValueMin:wJ,ariaValueNow:wJ,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function OJ(e,t){return t in e?e[t]:t}function PJ(e,t){return OJ(e,t.toLowerCase())}const LJ=IJ({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:EJ,acceptCharset:xJ,accessKey:xJ,action:null,allow:null,allowFullScreen:bJ,allowPaymentRequest:bJ,allowUserMedia:bJ,alt:null,as:null,async:bJ,autoCapitalize:null,autoComplete:xJ,autoFocus:bJ,autoPlay:bJ,blocking:xJ,capture:null,charSet:null,checked:bJ,cite:null,className:xJ,cols:wJ,colSpan:null,content:null,contentEditable:vJ,controls:bJ,controlsList:xJ,coords:wJ|EJ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bJ,defer:bJ,dir:null,dirName:null,disabled:bJ,download:kJ,draggable:vJ,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bJ,formTarget:null,headers:xJ,height:wJ,hidden:bJ,high:wJ,href:null,hrefLang:null,htmlFor:xJ,httpEquiv:xJ,id:null,imageSizes:null,imageSrcSet:null,inert:bJ,inputMode:null,integrity:null,is:null,isMap:bJ,itemId:null,itemProp:xJ,itemRef:xJ,itemScope:bJ,itemType:xJ,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bJ,low:wJ,manifest:null,max:null,maxLength:wJ,media:null,method:null,min:null,minLength:wJ,multiple:bJ,muted:bJ,name:null,nonce:null,noModule:bJ,noValidate:bJ,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:bJ,optimum:wJ,pattern:null,ping:xJ,placeholder:null,playsInline:bJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bJ,referrerPolicy:null,rel:xJ,required:bJ,reversed:bJ,rows:wJ,rowSpan:wJ,sandbox:xJ,scope:null,scoped:bJ,seamless:bJ,selected:bJ,shadowRootClonable:bJ,shadowRootDelegatesFocus:bJ,shadowRootMode:null,shape:null,size:wJ,sizes:null,slot:null,span:wJ,spellCheck:vJ,src:null,srcDoc:null,srcLang:null,srcSet:null,start:wJ,step:null,style:null,tabIndex:wJ,target:null,title:null,translate:null,type:null,typeMustMatch:bJ,useMap:null,value:vJ,width:wJ,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xJ,axis:null,background:null,bgColor:null,border:wJ,borderColor:null,bottomMargin:wJ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bJ,declare:bJ,event:null,face:null,frame:null,frameBorder:null,hSpace:wJ,leftMargin:wJ,link:null,longDesc:null,lowSrc:null,marginHeight:wJ,marginWidth:wJ,noResize:bJ,noHref:bJ,noShade:bJ,noWrap:bJ,object:null,profile:null,prompt:null,rev:null,rightMargin:wJ,rules:null,scheme:null,scrolling:vJ,standby:null,summary:null,text:null,topMargin:wJ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:wJ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bJ,disableRemotePlayback:bJ,prefix:null,property:null,results:wJ,security:null,unselectable:null},space:"html",transform:PJ}),DJ=IJ({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_J,accentHeight:wJ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:wJ,amplitude:wJ,arabicForm:null,ascent:wJ,attributeName:null,attributeType:null,azimuth:wJ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:wJ,by:null,calcMode:null,capHeight:wJ,className:xJ,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:wJ,diffuseConstant:wJ,direction:null,display:null,dur:null,divisor:wJ,dominantBaseline:null,download:bJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:wJ,enableBackground:null,end:null,event:null,exponent:wJ,externalResourcesRequired:null,fill:null,fillOpacity:wJ,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:EJ,g2:EJ,glyphName:EJ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:wJ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:wJ,horizOriginX:wJ,horizOriginY:wJ,id:null,ideographic:wJ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:wJ,k:wJ,k1:wJ,k2:wJ,k3:wJ,k4:wJ,kernelMatrix:_J,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:wJ,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:wJ,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:wJ,overlineThickness:wJ,paintOrder:null,panose1:null,path:null,pathLength:wJ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xJ,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:wJ,pointsAtY:wJ,pointsAtZ:wJ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_J,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_J,rev:_J,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_J,requiredFeatures:_J,requiredFonts:_J,requiredFormats:_J,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:wJ,specularExponent:wJ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:wJ,strikethroughThickness:wJ,string:null,stroke:null,strokeDashArray:_J,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:wJ,strokeOpacity:wJ,strokeWidth:null,style:null,surfaceScale:wJ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_J,tabIndex:wJ,tableValues:null,target:null,targetX:wJ,targetY:wJ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_J,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:wJ,underlineThickness:wJ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:wJ,values:null,vAlphabetic:wJ,vMathematical:wJ,vectorEffect:null,vHanging:wJ,vIdeographic:wJ,version:null,vertAdvY:wJ,vertOriginX:wJ,vertOriginY:wJ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:wJ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:OJ}),MJ=IJ({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),FJ=IJ({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:PJ}),jJ=IJ({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),BJ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},HJ=/[A-Z]/g,zJ=/-[a-z]/g,UJ=/^data[-\w.:]+$/i;function $J(e,t){const n=mJ(t);let r=t,a=gJ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&UJ.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zJ,GJ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zJ.test(e)){let n=e.replace(HJ,VJ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=AJ}return new a(r,t)}function VJ(e){return"-"+e.toLowerCase()}function GJ(e){return e.charAt(1).toUpperCase()}const WJ=fJ([RJ,LJ,MJ,FJ,jJ],"html"),qJ=fJ([RJ,DJ,MJ,FJ,jJ],"svg");function YJ(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function KJ(e){return e.join(" ").trim()}var XJ={},QJ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZJ=/\n/g,JJ=/^\s*/,e0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,t0=/^:\s*/,n0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,r0=/^[;\s]*/,a0=/^\s+|\s+$/g,o0="";function i0(e){return e?e.replace(a0,o0):o0}var s0=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(XJ,"__esModule",{value:!0}),XJ.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,l0.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var l0=s0((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(ZJ);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(JJ)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;o0!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,o0===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(e0);if(t){if(d(),!l(t0))return s("property missing ':'");var n=l(n0),r=e({type:"declaration",property:i0(t[0].replace(QJ,o0)),value:n?i0(n[0].replace(QJ,o0)):o0});return l(r0),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var c0={};Object.defineProperty(c0,"__esModule",{value:!0}),c0.camelCase=void 0;var u0=/^--[a-zA-Z0-9_-]+$/,d0=/-([a-z])/g,p0=/^[^-]+$/,h0=/^-(webkit|moz|ms|o|khtml)-/,f0=/^-(ms)-/,m0=function(e,t){return t.toUpperCase()},g0=function(e,t){return"".concat(t,"-")};c0.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||p0.test(e)||u0.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(f0,g0):e.replace(h0,g0)).replace(d0,m0))};var y0=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},b0=y0(XJ),v0=c0;function k0(e,t){var n={};return e&&"string"==typeof e?((0,b0.default)(e,(function(e,r){e&&r&&(n[(0,v0.camelCase)(e,t)]=r)})),n):n}k0.default=k0;const w0=c(k0),x0=_0("end"),E0=_0("start");function _0(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function S0(e){return e&&"object"==typeof e?"position"in e||"type"in e?C0(e.position):"start"in e||"end"in e?C0(e):"line"in e||"column"in e?T0(e):"":""}function T0(e){return A0(e&&e.line)+":"+A0(e&&e.column)}function C0(e){return T0(e&&e.start)+"-"+T0(e&&e.end)}function A0(e){return e&&"number"==typeof e?e:1}class N0 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=S0(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}N0.prototype.file="",N0.prototype.name="",N0.prototype.reason="",N0.prototype.message="",N0.prototype.stack="",N0.prototype.column=void 0,N0.prototype.line=void 0,N0.prototype.ancestors=void 0,N0.prototype.cause=void 0,N0.prototype.fatal=void 0,N0.prototype.place=void 0,N0.prototype.ruleId=void 0,N0.prototype.source=void 0;const I0={}.hasOwnProperty,R0=new Map,O0=/[A-Z]/g,P0=new Set(["table","tbody","thead","tfoot","tr"]),L0=new Set(["td","th"]),D0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M0(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=E0(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?qJ:WJ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=F0(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function F0(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=qJ,e.schema=a);e.ancestors.push(t);const o=U0(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&I0.call(t.properties,a)){const o=z0(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&L0.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=H0(e,t);P0.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&pJ(t.value):pJ(t));var t})));return j0(e,i,o,t),B0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=qJ,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:U0(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const a=t.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else $0(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else $0(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=H0(e,t);return j0(e,i,o,t),B0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return B0(r,H0(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function j0(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function B0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function H0(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:R0;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=F0(e,o,i);void 0!==s&&n.push(s)}return n}function z0(e,t,n){const r=$J(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?iJ(n):KJ(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return w0(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new N0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=D0+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)I0.call(e,n)&&(t[V0(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?BJ[r.property]||r.property:r.attribute,n]}}function U0(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=uJ(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=uJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return I0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$0(e)}function $0(e,t){const n=new N0("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=D0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function V0(e){let t=e.replace(O0,G0);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function G0(e){return"-"+e.toLowerCase()}const W0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},q0={};function Y0(e,t){return K0(e,"boolean"!=typeof q0.includeImageAlt||q0.includeImageAlt,"boolean"!=typeof q0.includeHtml||q0.includeHtml)}function K0(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return X0(e.children,t,n)}return Array.isArray(e)?X0(e,t,n):""}function X0(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=K0(e[a],t,n);return r.join("")}const Q0=document.createElement("i");function Z0(e){const t="&"+e+";";Q0.innerHTML=t;const n=Q0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function J0(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function e1(e,t){return e.length>0?(J0(e,e.length,0,t),e):t}const t1={}.hasOwnProperty;function n1(e){const t={};let n=-1;for(;++n<e.length;)r1(t,e[n]);return t}function r1(e,t){let n;for(n in t){const r=(t1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){t1.call(r,o)||(r[o]=[]);const e=a[o];a1(r[o],Array.isArray(e)?e:e?[e]:[])}}}function a1(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);J0(e,0,0,r)}function o1(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function i1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const s1=v1(/[A-Za-z]/),l1=v1(/[\dA-Za-z]/),c1=v1(/[#-'*+\--9=?A-Z^-~]/);function u1(e){return null!==e&&(e<32||127===e)}const d1=v1(/\d/),p1=v1(/[\dA-Fa-f]/),h1=v1(/[!-/:-@[-`{-~]/);function f1(e){return null!==e&&e<-2}function m1(e){return null!==e&&(e<0||32===e)}function g1(e){return-2===e||-1===e||32===e}const y1=v1(new RegExp("\\p{P}|\\p{S}","u")),b1=v1(/\s/);function v1(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function k1(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&l1(e.charCodeAt(n+1))&&l1(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function w1(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(g1(r))return e.enter(n),i(r);return t(r)};function i(r){return g1(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const x1={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),w1(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):f1(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const E1={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}y(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return J0(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return f(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_1,u,d)(a)}function u(e){return r&&b(),y(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(_1,h,f)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):f1(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;J0(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},_1={tokenize:function(e,t,n){return w1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function S1(e){return null===e||m1(e)||b1(e)?1:y1(e)?2:void 0}function T1(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const C1={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};A1(d,-s),A1(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=e1(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=e1(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=e1(l,T1(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=e1(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=e1(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,J0(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=S1(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=S1(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function A1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const N1={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return s1(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||l1(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||l1(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||u1(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):c1(t)?(e.consume(t),l):n(t)}function c(e){return l1(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||l1(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const I1={partial:!0,tokenize:function(e,t,n){return function(t){return g1(t)?w1(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||f1(e)?t(e):n(e)}}};const R1={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(g1(t))return w1(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(R1,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return g1(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const O1={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return h1(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const P1={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=l1,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=p1,c):(e.enter("characterReferenceValue"),a=7,o=d1,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==l1||Z0(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const L1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},D1={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),g1(t)?w1(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),g1(t)?w1(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||f1(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),g1(t)?w1(e,c,"whitespace")(t):c(t))}function c(n){return null===n||f1(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(L1,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||f1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):g1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),w1(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||f1(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||f1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&g1(t)?w1(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||f1(t)?e.check(L1,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||f1(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const M1={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),w1(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):f1(t)?e.attempt(F1,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||f1(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},F1={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):w1(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):f1(e)?a(e):n(e)}}};const j1={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||f1(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class B1{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&H1(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),H1(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),H1(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);H1(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);H1(this.left,t.reverse())}}}function H1(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function z1(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new B1(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,U1(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return J0(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function U1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const $1={resolve:function(e){return z1(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):f1(t)?e.check(V1,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},V1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w1(e,a,"linePrefix")};function a(a){if(null===a||f1(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function G1(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||u1(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||f1(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!m1(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||u1(a)?n(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function W1(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):f1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||f1(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!g1(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function q1(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||f1(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Y1(e,t){let n;return function r(a){if(f1(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(g1(a))return w1(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const K1={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return W1.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=i1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return m1(t)?Y1(e,s)(t):s(t)}function s(t){return G1(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(X1,c,c)(t)}function c(t){return g1(t)?w1(e,u,"whitespace")(t):u(t)}function u(o){return null===o||f1(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},X1={partial:!0,tokenize:function(e,t,n){return function(t){return m1(t)?Y1(e,r)(t):n(t)};function r(t){return q1(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return g1(t)?w1(e,o,"whitespace")(t):o(t)}function o(e){return null===e||f1(e)?t(e):n(e)}}};const Q1={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return f1(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Z1={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},J0(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||m1(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||f1(n)?(e.exit("atxHeading"),t(n)):g1(n)?w1(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||m1(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const J1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e2=["pre","script","style","textarea"],t2={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:L):s1(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):s1(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function h(t){return s1(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||m1(s)){const l=47===s,c=i.toLowerCase();return l||o||!e2.includes(c)?J1.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):y(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||l1(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function g(t){return g1(t)?(e.consume(t),g):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||s1(t)?(e.consume(t),b):g1(t)?(e.consume(t),y):_(t)}function b(t){return 45===t||46===t||58===t||95===t||l1(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),k):g1(t)?(e.consume(t),v):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):g1(t)?(e.consume(t),k):x(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||f1(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||m1(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||g1(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||f1(t)?T(t):g1(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!f1(t)||6!==a&&7!==a?null===t||f1(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(n2,M,C)(t))}function C(t){return e.check(r2,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||f1(t)?C(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),L):T(t)}function R(t){return 47===t?(e.consume(t),i="",O):T(t)}function O(t){if(62===t){const n=i.toLowerCase();return e2.includes(n)?(e.consume(t),D):T(t)}return s1(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||f1(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},n2={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(I1,t,n)}}},r2={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(f1(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const a2={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),b):s1(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):s1(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):f1(t)?(i=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):f1(t)?(i=f,O(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?R(t):f1(t)?(i=y,O(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):f1(t)?(i=b,O(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function k(t){return s1(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||l1(t)?(e.consume(t),w):x(t)}function x(t){return f1(t)?(i=x,O(t)):g1(t)?(e.consume(t),x):R(t)}function E(t){return 45===t||l1(t)?(e.consume(t),E):47===t||62===t||m1(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||s1(t)?(e.consume(t),S):f1(t)?(i=_,O(t)):g1(t)?(e.consume(t),_):R(t)}function S(t){return 45===t||46===t||58===t||95===t||l1(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),C):f1(t)?(i=T,O(t)):g1(t)?(e.consume(t),T):_(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):f1(t)?(i=C,O(t)):g1(t)?(e.consume(t),C):(e.consume(t),N)}function A(t){return t===a?(e.consume(t),a=void 0,I):null===t?n(t):f1(t)?(i=A,O(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||m1(t)?_(t):(e.consume(t),N)}function I(e){return 47===e||62===e||m1(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return g1(t)?w1(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const o2={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&J0(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=e1(o,e.slice(r+1,r+s+3)),o=e1(o,[["enter",u,t]]),o=e1(o,T1(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=e1(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=e1(o,e.slice(a+1)),o=e1(o,[["exit",l,t]]),J0(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(i1(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(i2,c,o?c:u)(t):91===t?e.attempt(s2,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(l2,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},i2={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return m1(t)?Y1(e,a)(t):a(t)}function a(t){return 41===t?c(t):G1(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return m1(t)?Y1(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?q1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return m1(t)?Y1(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},s2={tokenize:function(e,t,n){const r=this;return function(t){return W1.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(i1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},l2={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const c2={name:"labelStartImage",resolveAll:o2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const u2={name:"labelStartLink",resolveAll:o2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const d2={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),w1(e,t,"linePrefix")}}};const p2={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||f1(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),g1(t)?w1(e,o,"whitespace")(t):o(t))}}};const h2={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(I1,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,w1(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!g1(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(m2,t,a)(n)}));function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,w1(e,e.attempt(h2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:d1(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(p2,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return d1(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(I1,r.interrupt?n:c,e.attempt(f2,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return g1(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},f2={partial:!0,tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return!g1(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},m2={partial:!0,tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const g2={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),g1(t)?w1(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||f1(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const y2={tokenize:function(e){const t=this,n=e.attempt(I1,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,w1(e,e.attempt(this.parser.constructs.flow,r,e.attempt($1,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const b2={resolveAll:x2()},v2=w2("string"),k2=w2("text");function w2(e){return{resolveAll:x2("text"===e?E2:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function x2(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function E2(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const _2={42:h2,43:h2,45:h2,48:h2,49:h2,50:h2,51:h2,52:h2,53:h2,54:h2,55:h2,56:h2,57:h2,62:R1},S2={91:K1},T2={[-2]:M1,[-1]:M1,32:M1},C2={35:Z1,42:p2,45:[g2,p2],60:t2,61:g2,95:p2,96:D1,126:D1},A2={38:P1,92:O1},N2={[-5]:d2,[-4]:d2,[-3]:d2,33:c2,38:P1,42:C1,60:[N1,a2],91:u2,92:[Q1,O1],93:o2,95:C1,96:j1},I2={null:[C1,b2]},R2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:S2,disable:{null:[]},document:_2,flow:C2,flowInitial:T2,insideSpan:I2,string:A2,text:N2},Symbol.toStringTag,{value:"Module"}));function O2(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){f1(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,b()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=e1(i,e),h(),null!==i[i.length-1])return[];return y(t,0),c.events=T1(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function h(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,o){let i,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,h),a}function y(e){return h.restore(),++u<i.length?m(i[u]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&J0(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const P2=/[\0\t\n\r]/g;const L2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function D2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return o1(n.slice(t?2:1),t?16:10)}return Z0(n)||e}const M2={}.hasOwnProperty;function F2(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(Q),blockQuote:o(W),characterEscape:S,characterReference:S,codeFenced:o(q),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(q,i),codeText:o(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Z),hardBreakTrailing:o(Z),htmlFlow:o(J,i),htmlFlowData:S,htmlText:o(J,i),htmlTextData:S,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Q),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(y),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:k,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:C,link:l(O),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(_),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};B2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];M2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||z2).call(o,void 0,e[0])}for(r.position={start:j2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:j2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:j2(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+S0({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||z2).call(this,e,r[0])}n.position.end=j2(e.end)}function u(){return Y0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=i1(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:j2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=j2(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=j2(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(L2,D2)}(t),n.identifier=i1(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=o1(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Z0(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=j2(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!z1(e););return e}(function(e){const t={constructs:n1([R2,...(e||{}).extensions||[]]),content:n(x1),defined:[],document:n(E1),flow:n(y2),lazy:{},string:n(v2),text:n(k2)};return t;function n(e){return function(n){return O2(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(P2.lastIndex=u,l=P2.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function j2(e){return{line:e.line,column:e.column,offset:e.offset}}function B2(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?B2(e,r):H2(e,r)}}function H2(e,t){let n;for(n in t)if(M2.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function z2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+S0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+S0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+S0({start:t.start,end:t.end})+") is still open")}function U2(e){const t=this;t.parser=function(n){return F2(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $2(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function V2(e){const t=e.spread;return null==t?e.children.length>1:t}function G2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(W2(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(W2(t.slice(a),a>0,!1)),o.join("")}function W2(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const q2={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=k1(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $2(e,t);const a={src:k1(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:k1(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $2(e,t);const a={href:k1(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:k1(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=V2(n[r])}return t}(n):V2(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=E0(t.children[1]),i=x0(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:G2(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Y2,yaml:Y2,definition:Y2,footnoteDefinition:Y2};function Y2(){}const K2="object"==typeof self?self:globalThis,X2=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new K2[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new K2[o](i),a)};return r})(new Map,e)(0),Q2="",{toString:Z2}={},{keys:J2}=Object,e5=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Z2.call(e).slice(8,-1);switch(n){case"Array":return[1,Q2];case"Object":return[2,Q2];case"Date":return[3,Q2];case"RegExp":return[4,Q2];case"Map":return[5,Q2];case"Set":return[6,Q2];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},t5=([e,t])=>0===e&&("function"===t||"symbol"===t),n5=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=e5(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of J2(r))!e&&t5(e5(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!t5(e5(a))&&!t5(e5(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&t5(e5(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},r5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?X2(n5(e,t)):structuredClone(e):(e,t)=>X2(n5(e,t));function a5(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function o5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const i5=function(e){if(null==e)return l5;if("function"==typeof e)return s5(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=i5(e[n]);return s5(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return s5(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return s5(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function s5(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function l5(){return!0}const c5=[],u5=!0,d5=!1;function p5(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=i5(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=c5;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[u5,e];return null==e?c5:[e]}(n(a,l)),p[0]===d5))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===d5)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function h5(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),p5(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}const f5={}.hasOwnProperty,m5={};function g5(e,t){e.position&&(t.position=function(e){const t=E0(e),n=x0(e);if(t&&n)return{start:t,end:n}}(e))}function y5(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,r5(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function b5(e,t){const n=t.data||{},r=!("value"in t)||f5.call(n,"hProperties")||f5.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function v5(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function k5(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function w5(e,t){const n=function(e,t){const n=t||m5,r=new Map,a=new Map,o=new Map,i={...q2,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=k5(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=k5(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:y5,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(f5.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=r5(n);return r.children=s.all(e),r}return r5(e)}return(s.options.unknownHandler||b5)(s,e,t)},options:n,patch:g5,wrap:v5};return h5(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||a5,r=e.options.footnoteBackLabel||o5,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=k1(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...r5(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function x5(e,t){return e&&"run"in e?async function(n,r){const a=w5(n,{file:r,...t});await e.run(a,r)}:function(n,r){return w5(n,{file:r,...e||t})}}function E5(e){if(e)throw e}var _5=Object.prototype.hasOwnProperty,S5=Object.prototype.toString,T5=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,A5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===S5.call(e)},N5=function(e){if(!e||"[object Object]"!==S5.call(e))return!1;var t,n=_5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&_5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||_5.call(e,t)},I5=function(e,t){T5&&"__proto__"===t.name?T5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},R5=function(e,t){if("__proto__"===t){if(!_5.call(e,t))return;if(C5)return C5(e,t).value}return e[t]},O5=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=R5(s,n),s!==(a=R5(t,n))&&(u&&a&&(N5(a)||(o=A5(a)))?(o?(o=!1,i=r&&A5(r)?r:[]):i=r&&N5(r)?r:{},I5(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&I5(s,{name:n,newValue:a}));return s};const P5=c(O5);function L5(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function D5(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const M5={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');F5(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(F5(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){F5(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)F5(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){F5(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function F5(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const j5={cwd:function(){return"/"}};function B5(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function H5(e){if("string"==typeof e)e=new URL(e);else if(!B5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const z5=["history","path","basename","stem","extname","dirname"];class U5{constructor(e){let t;t=e?B5(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":j5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<z5.length;){const e=z5[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)z5.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?M5.basename(this.path):void 0}set basename(e){V5(e,"basename"),$5(e,"basename"),this.path=M5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?M5.dirname(this.path):void 0}set dirname(e){G5(this.basename,"dirname"),this.path=M5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?M5.extname(this.path):void 0}set extname(e){if($5(e,"extname"),G5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=M5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){B5(e)&&(e=H5(e)),V5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?M5.basename(this.path,this.extname):void 0}set stem(e){V5(e,"stem"),$5(e,"stem"),this.path=M5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new N0(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function $5(e,t){if(e&&e.includes(M5.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M5.sep+"`")}function V5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function G5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const W5=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},q5={}.hasOwnProperty;class Y5 extends W5{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=D5()}copy(){const e=new Y5;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(P5(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Z5("data",this.frozen),this.namespace[e]=t,this):q5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Z5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=t3(e),n=this.parser||this.Parser;return X5("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),X5("process",this.parser||this.Parser),Q5("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=t3(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,(function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),X5("processSync",this.parser||this.Parser),Q5("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,E5(e),t=r})),e3("processSync","process",n),t}run(e,t,n){J5(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=t3(t);r.run(e,i,(function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){E5(e),n=t,r=!0})),e3("runSync","run",r),n}stringify(e,t){this.freeze();const n=t3(t),r=this.compiler||this.Compiler;return Q5("stringify",r),J5(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Z5("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=P5(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];L5(i)&&L5(r)&&(r=P5(!0,i,r)),n[a]=[e,r,...o]}}}}const K5=(new Y5).freeze();function X5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Q5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Z5(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function J5(e){if(!L5(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function e3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function t3(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new U5(e)}const n3=[],r3={allowDangerousHtml:!0},a3=/^(https?|ircs?|mailto|xmpp)$/i,o3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function i3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,i=e.disallowedElements,s=e.rehypePlugins||n3,l=e.remarkPlugins||n3,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...r3}:r3,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||s3,h=K5().use(U2).use(l).use(x5,c).use(s),f=new U5;"string"==typeof r&&(f.value=r);for(const y of o3)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=h.parse(f);let g=h.runSync(m,f);return a&&(g={type:"element",tagName:"div",properties:{className:a},children:"root"===g.type?g.children:[g]}),h5(g,(function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return u?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in W0)if(Object.hasOwn(W0,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=W0[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,a)),o&&a&&"number"==typeof r)return d&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}})),M0(g,{Fragment:qh.Fragment,components:o,ignoreInvalidStyle:!0,jsx:qh.jsx,jsxs:qh.jsxs,passKeys:!0,passNode:!0})}function s3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||a3.test(e.slice(0,t))?e:""}const l3=/[#.]/g;function c3(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){l3.lastIndex=i;const e=l3.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))u3(e,i.properties,t,n)}for(const e of o)d3(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function u3(e,t,n,r){const a=$J(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?YJ(r):a.commaSeparated?oJ(r):a.commaOrSpaceSeparated?YJ(oJ(r).join(" ")):p3(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(p3(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function d3(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)d3(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?d3(e,t.children):e.push(t)}}function p3(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||mJ(n)===mJ(t)))return!0}return n}const h3=c3(WJ,"div"),f3=c3(qJ,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function m3(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const g3={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y3={}.hasOwnProperty,b3=Object.prototype;function v3(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},w3(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:k3(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=m3(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=m3(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},w3(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},w3(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===g3.svg?qJ:WJ;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;y3.call(b3,n)||(a[n]=e.value)}const o="svg"===e.schema.space?f3:h3,i=o(t.tagName,a,k3(e,t.childNodes));if(w3(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&x3(r.startTag),o=r&&r.endTag&&x3(r.endTag),s=v3(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function k3(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=v3(e,t[n]);r.push(a)}return r}function w3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=x3(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)y3.call(n.attrs,a)&&(r[$J(e.schema,a).property]=x3(n.attrs[a]));n.startTag;const o=x3(n.startTag),i=n.endTag?x3(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function x3(e){const t=E3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=E3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function E3(e){return e.line&&e.column?e:void 0}class _3{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function S3(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new _3(n,r,t)}function T3(e){return e.toLowerCase()}_3.prototype.property={},_3.prototype.normal={},_3.prototype.space=null;class C3{constructor(e,t){this.property=e,this.attribute=t}}C3.prototype.space=null,C3.prototype.boolean=!1,C3.prototype.booleanish=!1,C3.prototype.overloadedBoolean=!1,C3.prototype.number=!1,C3.prototype.commaSeparated=!1,C3.prototype.spaceSeparated=!1,C3.prototype.commaOrSpaceSeparated=!1,C3.prototype.mustUseProperty=!1,C3.prototype.defined=!1;let A3=0;const N3=M3(),I3=M3(),R3=M3(),O3=M3(),P3=M3(),L3=M3(),D3=M3();function M3(){return 2**++A3}const F3=Object.freeze(Object.defineProperty({__proto__:null,boolean:N3,booleanish:I3,commaOrSpaceSeparated:D3,commaSeparated:L3,number:O3,overloadedBoolean:R3,spaceSeparated:P3},Symbol.toStringTag,{value:"Module"})),j3=Object.keys(F3);class B3 extends C3{constructor(e,t,n,r){let a=-1;if(super(e,t),H3(this,"space",r),"number"==typeof n)for(;++a<j3.length;){const e=j3[a];H3(this,j3[a],(n&F3[e])===F3[e])}}}function H3(e,t,n){n&&(e[t]=n)}B3.prototype.defined=!0;const z3={}.hasOwnProperty;function U3(e){const t={},n={};let r;for(r in e.properties)if(z3.call(e.properties,r)){const a=e.properties[r],o=new B3(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[T3(r)]=r,n[T3(o.attribute)]=r}return new _3(t,n,e.space)}const $3=U3({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),V3=U3({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function G3(e,t){return t in e?e[t]:t}function W3(e,t){return G3(e,t.toLowerCase())}const q3=U3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:W3,properties:{xmlns:null,xmlnsXLink:null}}),Y3=U3({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:I3,ariaAutoComplete:null,ariaBusy:I3,ariaChecked:I3,ariaColCount:O3,ariaColIndex:O3,ariaColSpan:O3,ariaControls:P3,ariaCurrent:null,ariaDescribedBy:P3,ariaDetails:null,ariaDisabled:I3,ariaDropEffect:P3,ariaErrorMessage:null,ariaExpanded:I3,ariaFlowTo:P3,ariaGrabbed:I3,ariaHasPopup:null,ariaHidden:I3,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P3,ariaLevel:O3,ariaLive:null,ariaModal:I3,ariaMultiLine:I3,ariaMultiSelectable:I3,ariaOrientation:null,ariaOwns:P3,ariaPlaceholder:null,ariaPosInSet:O3,ariaPressed:I3,ariaReadOnly:I3,ariaRelevant:null,ariaRequired:I3,ariaRoleDescription:P3,ariaRowCount:O3,ariaRowIndex:O3,ariaRowSpan:O3,ariaSelected:I3,ariaSetSize:O3,ariaSort:null,ariaValueMax:O3,ariaValueMin:O3,ariaValueNow:O3,ariaValueText:null,role:null}}),K3=U3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:W3,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:L3,acceptCharset:P3,accessKey:P3,action:null,allow:null,allowFullScreen:N3,allowPaymentRequest:N3,allowUserMedia:N3,alt:null,as:null,async:N3,autoCapitalize:null,autoComplete:P3,autoFocus:N3,autoPlay:N3,blocking:P3,capture:null,charSet:null,checked:N3,cite:null,className:P3,cols:O3,colSpan:null,content:null,contentEditable:I3,controls:N3,controlsList:P3,coords:O3|L3,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N3,defer:N3,dir:null,dirName:null,disabled:N3,download:R3,draggable:I3,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N3,formTarget:null,headers:P3,height:O3,hidden:N3,high:O3,href:null,hrefLang:null,htmlFor:P3,httpEquiv:P3,id:null,imageSizes:null,imageSrcSet:null,inert:N3,inputMode:null,integrity:null,is:null,isMap:N3,itemId:null,itemProp:P3,itemRef:P3,itemScope:N3,itemType:P3,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N3,low:O3,manifest:null,max:null,maxLength:O3,media:null,method:null,min:null,minLength:O3,multiple:N3,muted:N3,name:null,nonce:null,noModule:N3,noValidate:N3,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N3,optimum:O3,pattern:null,ping:P3,placeholder:null,playsInline:N3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N3,referrerPolicy:null,rel:P3,required:N3,reversed:N3,rows:O3,rowSpan:O3,sandbox:P3,scope:null,scoped:N3,seamless:N3,selected:N3,shadowRootClonable:N3,shadowRootDelegatesFocus:N3,shadowRootMode:null,shape:null,size:O3,sizes:null,slot:null,span:O3,spellCheck:I3,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O3,step:null,style:null,tabIndex:O3,target:null,title:null,translate:null,type:null,typeMustMatch:N3,useMap:null,value:I3,width:O3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P3,axis:null,background:null,bgColor:null,border:O3,borderColor:null,bottomMargin:O3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N3,declare:N3,event:null,face:null,frame:null,frameBorder:null,hSpace:O3,leftMargin:O3,link:null,longDesc:null,lowSrc:null,marginHeight:O3,marginWidth:O3,noResize:N3,noHref:N3,noShade:N3,noWrap:N3,object:null,profile:null,prompt:null,rev:null,rightMargin:O3,rules:null,scheme:null,scrolling:I3,standby:null,summary:null,text:null,topMargin:O3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N3,disableRemotePlayback:N3,prefix:null,property:null,results:O3,security:null,unselectable:null}}),X3=U3({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:G3,properties:{about:D3,accentHeight:O3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O3,amplitude:O3,arabicForm:null,ascent:O3,attributeName:null,attributeType:null,azimuth:O3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O3,by:null,calcMode:null,capHeight:O3,className:P3,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O3,diffuseConstant:O3,direction:null,display:null,dur:null,divisor:O3,dominantBaseline:null,download:N3,dx:null,dy:null,edgeMode:null,editable:null,elevation:O3,enableBackground:null,end:null,event:null,exponent:O3,externalResourcesRequired:null,fill:null,fillOpacity:O3,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:L3,g2:L3,glyphName:L3,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O3,horizOriginX:O3,horizOriginY:O3,id:null,ideographic:O3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O3,k:O3,k1:O3,k2:O3,k3:O3,k4:O3,kernelMatrix:D3,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O3,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O3,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O3,overlineThickness:O3,paintOrder:null,panose1:null,path:null,pathLength:O3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P3,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O3,pointsAtY:O3,pointsAtZ:O3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D3,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D3,rev:D3,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D3,requiredFeatures:D3,requiredFonts:D3,requiredFormats:D3,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O3,specularExponent:O3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O3,strikethroughThickness:O3,string:null,stroke:null,strokeDashArray:D3,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O3,strokeOpacity:O3,strokeWidth:null,style:null,surfaceScale:O3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D3,tabIndex:O3,tableValues:null,target:null,targetX:O3,targetY:O3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D3,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O3,underlineThickness:O3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O3,values:null,vAlphabetic:O3,vMathematical:O3,vectorEffect:null,vHanging:O3,vIdeographic:O3,version:null,vertAdvY:O3,vertOriginX:O3,vertOriginY:O3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Q3=/^data[-\w.:]+$/i,Z3=/-[a-z]/g,J3=/[A-Z]/g;function e4(e){return"-"+e.toLowerCase()}function t4(e){return e.charAt(1).toUpperCase()}const n4=S3([V3,$3,q3,Y3,K3],"html"),r4=S3([V3,$3,q3,Y3,X3],"svg"),a4={}.hasOwnProperty;function o4(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&a4.call(t,e)){const n=String(t[e]);a=a4.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const i4={},s4={}.hasOwnProperty,l4=o4("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=u4(e.children,n,t),d4(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=r4);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&s4.call(e.properties,o)){const t=c4(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:g3[i],childNodes:[],parentNode:null};s.childNodes=u4(e.children,s,r),d4(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=u4(e.children,n,t),d4(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return d4(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return d4(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return d4(e,t),t}}});function c4(e,t,n){const r=function(e,t){const n=T3(t);let r=t,a=C3;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Q3.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Z3,t4);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Z3.test(e)){let n=e.replace(J3,e4);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=B3}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?iJ(n):KJ(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=g3[r.space]}return a}function u4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=l4(e[r],n);o.parentNode=t,a.push(o)}return a}function d4(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const p4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),f4="�";var m4,g4;(g4=m4||(m4={}))[g4.EOF=-1]="EOF",g4[g4.NULL=0]="NULL",g4[g4.TABULATION=9]="TABULATION",g4[g4.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",g4[g4.LINE_FEED=10]="LINE_FEED",g4[g4.FORM_FEED=12]="FORM_FEED",g4[g4.SPACE=32]="SPACE",g4[g4.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",g4[g4.QUOTATION_MARK=34]="QUOTATION_MARK",g4[g4.AMPERSAND=38]="AMPERSAND",g4[g4.APOSTROPHE=39]="APOSTROPHE",g4[g4.HYPHEN_MINUS=45]="HYPHEN_MINUS",g4[g4.SOLIDUS=47]="SOLIDUS",g4[g4.DIGIT_0=48]="DIGIT_0",g4[g4.DIGIT_9=57]="DIGIT_9",g4[g4.SEMICOLON=59]="SEMICOLON",g4[g4.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",g4[g4.EQUALS_SIGN=61]="EQUALS_SIGN",g4[g4.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",g4[g4.QUESTION_MARK=63]="QUESTION_MARK",g4[g4.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",g4[g4.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",g4[g4.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",g4[g4.GRAVE_ACCENT=96]="GRAVE_ACCENT",g4[g4.LATIN_SMALL_A=97]="LATIN_SMALL_A",g4[g4.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const y4="--",b4="[CDATA[",v4="doctype",k4="script",w4="public",x4="system";function E4(e){return e>=55296&&e<=57343}function _4(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function S4(e){return e>=64976&&e<=65007||h4.has(e)}var T4,C4;(C4=T4||(T4={})).controlCharacterInInputStream="control-character-in-input-stream",C4.noncharacterInInputStream="noncharacter-in-input-stream",C4.surrogateInInputStream="surrogate-in-input-stream",C4.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",C4.endTagWithAttributes="end-tag-with-attributes",C4.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",C4.unexpectedSolidusInTag="unexpected-solidus-in-tag",C4.unexpectedNullCharacter="unexpected-null-character",C4.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",C4.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",C4.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",C4.missingEndTagName="missing-end-tag-name",C4.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",C4.unknownNamedCharacterReference="unknown-named-character-reference",C4.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",C4.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",C4.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",C4.eofBeforeTagName="eof-before-tag-name",C4.eofInTag="eof-in-tag",C4.missingAttributeValue="missing-attribute-value",C4.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",C4.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",C4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",C4.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",C4.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",C4.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",C4.missingDoctypePublicIdentifier="missing-doctype-public-identifier",C4.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",C4.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",C4.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",C4.cdataInHtmlContent="cdata-in-html-content",C4.incorrectlyOpenedComment="incorrectly-opened-comment",C4.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",C4.eofInDoctype="eof-in-doctype",C4.nestedComment="nested-comment",C4.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",C4.eofInComment="eof-in-comment",C4.incorrectlyClosedComment="incorrectly-closed-comment",C4.eofInCdata="eof-in-cdata",C4.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",C4.nullCharacterReference="null-character-reference",C4.surrogateCharacterReference="surrogate-character-reference",C4.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",C4.controlCharacterReference="control-character-reference",C4.noncharacterCharacterReference="noncharacter-character-reference",C4.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",C4.missingDoctypeName="missing-doctype-name",C4.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",C4.duplicateAttribute="duplicate-attribute",C4.nonConformingDoctype="non-conforming-doctype",C4.missingDoctype="missing-doctype",C4.misplacedDoctype="misplaced-doctype",C4.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",C4.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",C4.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",C4.openElementsLeftAfterEof="open-elements-left-after-eof",C4.abandonedHeadElementChild="abandoned-head-element-child",C4.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",C4.nestedNoscriptInHead="nested-noscript-in-head",C4.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class A4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m4.EOF;return this._err(T4.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m4.EOF;const n=this.html.charCodeAt(t);return n===m4.CARRIAGE_RETURN?m4.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m4.EOF;let e=this.html.charCodeAt(this.pos);if(e===m4.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,m4.LINE_FEED;if(e===m4.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,E4(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===m4.LINE_FEED||e===m4.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){_4(e)?this._err(T4.controlCharacterInInputStream):S4(e)&&this._err(T4.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var N4,I4;function R4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(I4=N4||(N4={}))[I4.CHARACTER=0]="CHARACTER",I4[I4.NULL_CHARACTER=1]="NULL_CHARACTER",I4[I4.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",I4[I4.START_TAG=3]="START_TAG",I4[I4.END_TAG=4]="END_TAG",I4[I4.COMMENT=5]="COMMENT",I4[I4.DOCTYPE=6]="DOCTYPE",I4[I4.EOF=7]="EOF",I4[I4.HIBERNATION=8]="HIBERNATION";const O4=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),P4=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var L4;const D4=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),M4=null!==(L4=String.fromCodePoint)&&void 0!==L4?L4:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var F4,j4;(j4=F4||(F4={}))[j4.NUM=35]="NUM",j4[j4.SEMI=59]="SEMI",j4[j4.EQUALS=61]="EQUALS",j4[j4.ZERO=48]="ZERO",j4[j4.NINE=57]="NINE",j4[j4.LOWER_A=97]="LOWER_A",j4[j4.LOWER_F=102]="LOWER_F",j4[j4.LOWER_X=120]="LOWER_X",j4[j4.LOWER_Z=122]="LOWER_Z",j4[j4.UPPER_A=65]="UPPER_A",j4[j4.UPPER_F=70]="UPPER_F",j4[j4.UPPER_Z=90]="UPPER_Z";var B4,H4,z4,U4,$4,V4,G4,W4,q4,Y4,K4,X4,Q4,Z4,J4,e6;function t6(e){return e>=F4.ZERO&&e<=F4.NINE}function n6(e){return e===F4.EQUALS||function(e){return e>=F4.UPPER_A&&e<=F4.UPPER_Z||e>=F4.LOWER_A&&e<=F4.LOWER_Z||t6(e)}(e)}(H4=B4||(B4={}))[H4.VALUE_LENGTH=49152]="VALUE_LENGTH",H4[H4.BRANCH_LENGTH=16256]="BRANCH_LENGTH",H4[H4.JUMP_TABLE=127]="JUMP_TABLE",(U4=z4||(z4={}))[U4.EntityStart=0]="EntityStart",U4[U4.NumericStart=1]="NumericStart",U4[U4.NumericDecimal=2]="NumericDecimal",U4[U4.NumericHex=3]="NumericHex",U4[U4.NamedEntity=4]="NamedEntity",(V4=$4||($4={}))[V4.Legacy=0]="Legacy",V4[V4.Strict=1]="Strict",V4[V4.Attribute=2]="Attribute";class r6{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=z4.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$4.Strict}startEntity(e){this.decodeMode=e,this.state=z4.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case z4.EntityStart:return e.charCodeAt(t)===F4.NUM?(this.state=z4.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=z4.NamedEntity,this.stateNamedEntity(e,t));case z4.NumericStart:return this.stateNumericStart(e,t);case z4.NumericDecimal:return this.stateNumericDecimal(e,t);case z4.NumericHex:return this.stateNumericHex(e,t);case z4.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===F4.LOWER_X?(this.state=z4.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=z4.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const a=e.charCodeAt(t);if(!(t6(a)||(r=a,r>=F4.UPPER_A&&r<=F4.UPPER_F||r>=F4.LOWER_A&&r<=F4.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!t6(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===F4.SEMI)this.consumed+=1;else if(this.decodeMode===$4.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=D4.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==F4.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&B4.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=o6(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===$4.Attribute&&(0===a||n6(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&B4.VALUE_LENGTH)>>14,0!==a){if(o===F4.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==$4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&B4.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~B4.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case z4.NamedEntity:return 0===this.result||this.decodeMode===$4.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case z4.NumericDecimal:return this.emitNumericEntity(0,2);case z4.NumericHex:return this.emitNumericEntity(0,3);case z4.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case z4.EntityStart:return 0}}}function a6(e){let t="";const n=new r6(e,(e=>t+=M4(e)));return function(e,r){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),n.startEntity(r);const i=n.write(e,o+1);if(i<0){a=o+n.end();break}a=o+i,o=0===i?a+1:a}const i=t+e.slice(a);return t="",i}}function o6(e,t,n,r){const a=(t&B4.BRANCH_LENGTH)>>7,o=t&B4.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}a6(O4),a6(P4),(W4=G4||(G4={})).HTML="http://www.w3.org/1999/xhtml",W4.MATHML="http://www.w3.org/1998/Math/MathML",W4.SVG="http://www.w3.org/2000/svg",W4.XLINK="http://www.w3.org/1999/xlink",W4.XML="http://www.w3.org/XML/1998/namespace",W4.XMLNS="http://www.w3.org/2000/xmlns/",(Y4=q4||(q4={})).TYPE="type",Y4.ACTION="action",Y4.ENCODING="encoding",Y4.PROMPT="prompt",Y4.NAME="name",Y4.COLOR="color",Y4.FACE="face",Y4.SIZE="size",(X4=K4||(K4={})).NO_QUIRKS="no-quirks",X4.QUIRKS="quirks",X4.LIMITED_QUIRKS="limited-quirks",(Z4=Q4||(Q4={})).A="a",Z4.ADDRESS="address",Z4.ANNOTATION_XML="annotation-xml",Z4.APPLET="applet",Z4.AREA="area",Z4.ARTICLE="article",Z4.ASIDE="aside",Z4.B="b",Z4.BASE="base",Z4.BASEFONT="basefont",Z4.BGSOUND="bgsound",Z4.BIG="big",Z4.BLOCKQUOTE="blockquote",Z4.BODY="body",Z4.BR="br",Z4.BUTTON="button",Z4.CAPTION="caption",Z4.CENTER="center",Z4.CODE="code",Z4.COL="col",Z4.COLGROUP="colgroup",Z4.DD="dd",Z4.DESC="desc",Z4.DETAILS="details",Z4.DIALOG="dialog",Z4.DIR="dir",Z4.DIV="div",Z4.DL="dl",Z4.DT="dt",Z4.EM="em",Z4.EMBED="embed",Z4.FIELDSET="fieldset",Z4.FIGCAPTION="figcaption",Z4.FIGURE="figure",Z4.FONT="font",Z4.FOOTER="footer",Z4.FOREIGN_OBJECT="foreignObject",Z4.FORM="form",Z4.FRAME="frame",Z4.FRAMESET="frameset",Z4.H1="h1",Z4.H2="h2",Z4.H3="h3",Z4.H4="h4",Z4.H5="h5",Z4.H6="h6",Z4.HEAD="head",Z4.HEADER="header",Z4.HGROUP="hgroup",Z4.HR="hr",Z4.HTML="html",Z4.I="i",Z4.IMG="img",Z4.IMAGE="image",Z4.INPUT="input",Z4.IFRAME="iframe",Z4.KEYGEN="keygen",Z4.LABEL="label",Z4.LI="li",Z4.LINK="link",Z4.LISTING="listing",Z4.MAIN="main",Z4.MALIGNMARK="malignmark",Z4.MARQUEE="marquee",Z4.MATH="math",Z4.MENU="menu",Z4.META="meta",Z4.MGLYPH="mglyph",Z4.MI="mi",Z4.MO="mo",Z4.MN="mn",Z4.MS="ms",Z4.MTEXT="mtext",Z4.NAV="nav",Z4.NOBR="nobr",Z4.NOFRAMES="noframes",Z4.NOEMBED="noembed",Z4.NOSCRIPT="noscript",Z4.OBJECT="object",Z4.OL="ol",Z4.OPTGROUP="optgroup",Z4.OPTION="option",Z4.P="p",Z4.PARAM="param",Z4.PLAINTEXT="plaintext",Z4.PRE="pre",Z4.RB="rb",Z4.RP="rp",Z4.RT="rt",Z4.RTC="rtc",Z4.RUBY="ruby",Z4.S="s",Z4.SCRIPT="script",Z4.SEARCH="search",Z4.SECTION="section",Z4.SELECT="select",Z4.SOURCE="source",Z4.SMALL="small",Z4.SPAN="span",Z4.STRIKE="strike",Z4.STRONG="strong",Z4.STYLE="style",Z4.SUB="sub",Z4.SUMMARY="summary",Z4.SUP="sup",Z4.TABLE="table",Z4.TBODY="tbody",Z4.TEMPLATE="template",Z4.TEXTAREA="textarea",Z4.TFOOT="tfoot",Z4.TD="td",Z4.TH="th",Z4.THEAD="thead",Z4.TITLE="title",Z4.TR="tr",Z4.TRACK="track",Z4.TT="tt",Z4.U="u",Z4.UL="ul",Z4.SVG="svg",Z4.VAR="var",Z4.WBR="wbr",Z4.XMP="xmp",(e6=J4||(J4={}))[e6.UNKNOWN=0]="UNKNOWN",e6[e6.A=1]="A",e6[e6.ADDRESS=2]="ADDRESS",e6[e6.ANNOTATION_XML=3]="ANNOTATION_XML",e6[e6.APPLET=4]="APPLET",e6[e6.AREA=5]="AREA",e6[e6.ARTICLE=6]="ARTICLE",e6[e6.ASIDE=7]="ASIDE",e6[e6.B=8]="B",e6[e6.BASE=9]="BASE",e6[e6.BASEFONT=10]="BASEFONT",e6[e6.BGSOUND=11]="BGSOUND",e6[e6.BIG=12]="BIG",e6[e6.BLOCKQUOTE=13]="BLOCKQUOTE",e6[e6.BODY=14]="BODY",e6[e6.BR=15]="BR",e6[e6.BUTTON=16]="BUTTON",e6[e6.CAPTION=17]="CAPTION",e6[e6.CENTER=18]="CENTER",e6[e6.CODE=19]="CODE",e6[e6.COL=20]="COL",e6[e6.COLGROUP=21]="COLGROUP",e6[e6.DD=22]="DD",e6[e6.DESC=23]="DESC",e6[e6.DETAILS=24]="DETAILS",e6[e6.DIALOG=25]="DIALOG",e6[e6.DIR=26]="DIR",e6[e6.DIV=27]="DIV",e6[e6.DL=28]="DL",e6[e6.DT=29]="DT",e6[e6.EM=30]="EM",e6[e6.EMBED=31]="EMBED",e6[e6.FIELDSET=32]="FIELDSET",e6[e6.FIGCAPTION=33]="FIGCAPTION",e6[e6.FIGURE=34]="FIGURE",e6[e6.FONT=35]="FONT",e6[e6.FOOTER=36]="FOOTER",e6[e6.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e6[e6.FORM=38]="FORM",e6[e6.FRAME=39]="FRAME",e6[e6.FRAMESET=40]="FRAMESET",e6[e6.H1=41]="H1",e6[e6.H2=42]="H2",e6[e6.H3=43]="H3",e6[e6.H4=44]="H4",e6[e6.H5=45]="H5",e6[e6.H6=46]="H6",e6[e6.HEAD=47]="HEAD",e6[e6.HEADER=48]="HEADER",e6[e6.HGROUP=49]="HGROUP",e6[e6.HR=50]="HR",e6[e6.HTML=51]="HTML",e6[e6.I=52]="I",e6[e6.IMG=53]="IMG",e6[e6.IMAGE=54]="IMAGE",e6[e6.INPUT=55]="INPUT",e6[e6.IFRAME=56]="IFRAME",e6[e6.KEYGEN=57]="KEYGEN",e6[e6.LABEL=58]="LABEL",e6[e6.LI=59]="LI",e6[e6.LINK=60]="LINK",e6[e6.LISTING=61]="LISTING",e6[e6.MAIN=62]="MAIN",e6[e6.MALIGNMARK=63]="MALIGNMARK",e6[e6.MARQUEE=64]="MARQUEE",e6[e6.MATH=65]="MATH",e6[e6.MENU=66]="MENU",e6[e6.META=67]="META",e6[e6.MGLYPH=68]="MGLYPH",e6[e6.MI=69]="MI",e6[e6.MO=70]="MO",e6[e6.MN=71]="MN",e6[e6.MS=72]="MS",e6[e6.MTEXT=73]="MTEXT",e6[e6.NAV=74]="NAV",e6[e6.NOBR=75]="NOBR",e6[e6.NOFRAMES=76]="NOFRAMES",e6[e6.NOEMBED=77]="NOEMBED",e6[e6.NOSCRIPT=78]="NOSCRIPT",e6[e6.OBJECT=79]="OBJECT",e6[e6.OL=80]="OL",e6[e6.OPTGROUP=81]="OPTGROUP",e6[e6.OPTION=82]="OPTION",e6[e6.P=83]="P",e6[e6.PARAM=84]="PARAM",e6[e6.PLAINTEXT=85]="PLAINTEXT",e6[e6.PRE=86]="PRE",e6[e6.RB=87]="RB",e6[e6.RP=88]="RP",e6[e6.RT=89]="RT",e6[e6.RTC=90]="RTC",e6[e6.RUBY=91]="RUBY",e6[e6.S=92]="S",e6[e6.SCRIPT=93]="SCRIPT",e6[e6.SEARCH=94]="SEARCH",e6[e6.SECTION=95]="SECTION",e6[e6.SELECT=96]="SELECT",e6[e6.SOURCE=97]="SOURCE",e6[e6.SMALL=98]="SMALL",e6[e6.SPAN=99]="SPAN",e6[e6.STRIKE=100]="STRIKE",e6[e6.STRONG=101]="STRONG",e6[e6.STYLE=102]="STYLE",e6[e6.SUB=103]="SUB",e6[e6.SUMMARY=104]="SUMMARY",e6[e6.SUP=105]="SUP",e6[e6.TABLE=106]="TABLE",e6[e6.TBODY=107]="TBODY",e6[e6.TEMPLATE=108]="TEMPLATE",e6[e6.TEXTAREA=109]="TEXTAREA",e6[e6.TFOOT=110]="TFOOT",e6[e6.TD=111]="TD",e6[e6.TH=112]="TH",e6[e6.THEAD=113]="THEAD",e6[e6.TITLE=114]="TITLE",e6[e6.TR=115]="TR",e6[e6.TRACK=116]="TRACK",e6[e6.TT=117]="TT",e6[e6.U=118]="U",e6[e6.UL=119]="UL",e6[e6.SVG=120]="SVG",e6[e6.VAR=121]="VAR",e6[e6.WBR=122]="WBR",e6[e6.XMP=123]="XMP";const i6=new Map([[Q4.A,J4.A],[Q4.ADDRESS,J4.ADDRESS],[Q4.ANNOTATION_XML,J4.ANNOTATION_XML],[Q4.APPLET,J4.APPLET],[Q4.AREA,J4.AREA],[Q4.ARTICLE,J4.ARTICLE],[Q4.ASIDE,J4.ASIDE],[Q4.B,J4.B],[Q4.BASE,J4.BASE],[Q4.BASEFONT,J4.BASEFONT],[Q4.BGSOUND,J4.BGSOUND],[Q4.BIG,J4.BIG],[Q4.BLOCKQUOTE,J4.BLOCKQUOTE],[Q4.BODY,J4.BODY],[Q4.BR,J4.BR],[Q4.BUTTON,J4.BUTTON],[Q4.CAPTION,J4.CAPTION],[Q4.CENTER,J4.CENTER],[Q4.CODE,J4.CODE],[Q4.COL,J4.COL],[Q4.COLGROUP,J4.COLGROUP],[Q4.DD,J4.DD],[Q4.DESC,J4.DESC],[Q4.DETAILS,J4.DETAILS],[Q4.DIALOG,J4.DIALOG],[Q4.DIR,J4.DIR],[Q4.DIV,J4.DIV],[Q4.DL,J4.DL],[Q4.DT,J4.DT],[Q4.EM,J4.EM],[Q4.EMBED,J4.EMBED],[Q4.FIELDSET,J4.FIELDSET],[Q4.FIGCAPTION,J4.FIGCAPTION],[Q4.FIGURE,J4.FIGURE],[Q4.FONT,J4.FONT],[Q4.FOOTER,J4.FOOTER],[Q4.FOREIGN_OBJECT,J4.FOREIGN_OBJECT],[Q4.FORM,J4.FORM],[Q4.FRAME,J4.FRAME],[Q4.FRAMESET,J4.FRAMESET],[Q4.H1,J4.H1],[Q4.H2,J4.H2],[Q4.H3,J4.H3],[Q4.H4,J4.H4],[Q4.H5,J4.H5],[Q4.H6,J4.H6],[Q4.HEAD,J4.HEAD],[Q4.HEADER,J4.HEADER],[Q4.HGROUP,J4.HGROUP],[Q4.HR,J4.HR],[Q4.HTML,J4.HTML],[Q4.I,J4.I],[Q4.IMG,J4.IMG],[Q4.IMAGE,J4.IMAGE],[Q4.INPUT,J4.INPUT],[Q4.IFRAME,J4.IFRAME],[Q4.KEYGEN,J4.KEYGEN],[Q4.LABEL,J4.LABEL],[Q4.LI,J4.LI],[Q4.LINK,J4.LINK],[Q4.LISTING,J4.LISTING],[Q4.MAIN,J4.MAIN],[Q4.MALIGNMARK,J4.MALIGNMARK],[Q4.MARQUEE,J4.MARQUEE],[Q4.MATH,J4.MATH],[Q4.MENU,J4.MENU],[Q4.META,J4.META],[Q4.MGLYPH,J4.MGLYPH],[Q4.MI,J4.MI],[Q4.MO,J4.MO],[Q4.MN,J4.MN],[Q4.MS,J4.MS],[Q4.MTEXT,J4.MTEXT],[Q4.NAV,J4.NAV],[Q4.NOBR,J4.NOBR],[Q4.NOFRAMES,J4.NOFRAMES],[Q4.NOEMBED,J4.NOEMBED],[Q4.NOSCRIPT,J4.NOSCRIPT],[Q4.OBJECT,J4.OBJECT],[Q4.OL,J4.OL],[Q4.OPTGROUP,J4.OPTGROUP],[Q4.OPTION,J4.OPTION],[Q4.P,J4.P],[Q4.PARAM,J4.PARAM],[Q4.PLAINTEXT,J4.PLAINTEXT],[Q4.PRE,J4.PRE],[Q4.RB,J4.RB],[Q4.RP,J4.RP],[Q4.RT,J4.RT],[Q4.RTC,J4.RTC],[Q4.RUBY,J4.RUBY],[Q4.S,J4.S],[Q4.SCRIPT,J4.SCRIPT],[Q4.SEARCH,J4.SEARCH],[Q4.SECTION,J4.SECTION],[Q4.SELECT,J4.SELECT],[Q4.SOURCE,J4.SOURCE],[Q4.SMALL,J4.SMALL],[Q4.SPAN,J4.SPAN],[Q4.STRIKE,J4.STRIKE],[Q4.STRONG,J4.STRONG],[Q4.STYLE,J4.STYLE],[Q4.SUB,J4.SUB],[Q4.SUMMARY,J4.SUMMARY],[Q4.SUP,J4.SUP],[Q4.TABLE,J4.TABLE],[Q4.TBODY,J4.TBODY],[Q4.TEMPLATE,J4.TEMPLATE],[Q4.TEXTAREA,J4.TEXTAREA],[Q4.TFOOT,J4.TFOOT],[Q4.TD,J4.TD],[Q4.TH,J4.TH],[Q4.THEAD,J4.THEAD],[Q4.TITLE,J4.TITLE],[Q4.TR,J4.TR],[Q4.TRACK,J4.TRACK],[Q4.TT,J4.TT],[Q4.U,J4.U],[Q4.UL,J4.UL],[Q4.SVG,J4.SVG],[Q4.VAR,J4.VAR],[Q4.WBR,J4.WBR],[Q4.XMP,J4.XMP]]);function s6(e){var t;return null!==(t=i6.get(e))&&void 0!==t?t:J4.UNKNOWN}const l6=J4,c6={[G4.HTML]:new Set([l6.ADDRESS,l6.APPLET,l6.AREA,l6.ARTICLE,l6.ASIDE,l6.BASE,l6.BASEFONT,l6.BGSOUND,l6.BLOCKQUOTE,l6.BODY,l6.BR,l6.BUTTON,l6.CAPTION,l6.CENTER,l6.COL,l6.COLGROUP,l6.DD,l6.DETAILS,l6.DIR,l6.DIV,l6.DL,l6.DT,l6.EMBED,l6.FIELDSET,l6.FIGCAPTION,l6.FIGURE,l6.FOOTER,l6.FORM,l6.FRAME,l6.FRAMESET,l6.H1,l6.H2,l6.H3,l6.H4,l6.H5,l6.H6,l6.HEAD,l6.HEADER,l6.HGROUP,l6.HR,l6.HTML,l6.IFRAME,l6.IMG,l6.INPUT,l6.LI,l6.LINK,l6.LISTING,l6.MAIN,l6.MARQUEE,l6.MENU,l6.META,l6.NAV,l6.NOEMBED,l6.NOFRAMES,l6.NOSCRIPT,l6.OBJECT,l6.OL,l6.P,l6.PARAM,l6.PLAINTEXT,l6.PRE,l6.SCRIPT,l6.SECTION,l6.SELECT,l6.SOURCE,l6.STYLE,l6.SUMMARY,l6.TABLE,l6.TBODY,l6.TD,l6.TEMPLATE,l6.TEXTAREA,l6.TFOOT,l6.TH,l6.THEAD,l6.TITLE,l6.TR,l6.TRACK,l6.UL,l6.WBR,l6.XMP]),[G4.MATHML]:new Set([l6.MI,l6.MO,l6.MN,l6.MS,l6.MTEXT,l6.ANNOTATION_XML]),[G4.SVG]:new Set([l6.TITLE,l6.FOREIGN_OBJECT,l6.DESC]),[G4.XLINK]:new Set,[G4.XML]:new Set,[G4.XMLNS]:new Set},u6=new Set([l6.H1,l6.H2,l6.H3,l6.H4,l6.H5,l6.H6]);var d6,p6;Q4.STYLE,Q4.SCRIPT,Q4.XMP,Q4.IFRAME,Q4.NOEMBED,Q4.NOFRAMES,Q4.PLAINTEXT,(p6=d6||(d6={}))[p6.DATA=0]="DATA",p6[p6.RCDATA=1]="RCDATA",p6[p6.RAWTEXT=2]="RAWTEXT",p6[p6.SCRIPT_DATA=3]="SCRIPT_DATA",p6[p6.PLAINTEXT=4]="PLAINTEXT",p6[p6.TAG_OPEN=5]="TAG_OPEN",p6[p6.END_TAG_OPEN=6]="END_TAG_OPEN",p6[p6.TAG_NAME=7]="TAG_NAME",p6[p6.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",p6[p6.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",p6[p6.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",p6[p6.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",p6[p6.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",p6[p6.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",p6[p6.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",p6[p6.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",p6[p6.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",p6[p6.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",p6[p6.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",p6[p6.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",p6[p6.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",p6[p6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",p6[p6.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",p6[p6.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",p6[p6.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",p6[p6.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",p6[p6.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",p6[p6.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",p6[p6.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",p6[p6.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",p6[p6.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",p6[p6.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",p6[p6.BOGUS_COMMENT=40]="BOGUS_COMMENT",p6[p6.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",p6[p6.COMMENT_START=42]="COMMENT_START",p6[p6.COMMENT_START_DASH=43]="COMMENT_START_DASH",p6[p6.COMMENT=44]="COMMENT",p6[p6.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",p6[p6.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",p6[p6.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",p6[p6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",p6[p6.COMMENT_END_DASH=49]="COMMENT_END_DASH",p6[p6.COMMENT_END=50]="COMMENT_END",p6[p6.COMMENT_END_BANG=51]="COMMENT_END_BANG",p6[p6.DOCTYPE=52]="DOCTYPE",p6[p6.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",p6[p6.DOCTYPE_NAME=54]="DOCTYPE_NAME",p6[p6.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",p6[p6.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",p6[p6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",p6[p6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",p6[p6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",p6[p6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",p6[p6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",p6[p6.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",p6[p6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",p6[p6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",p6[p6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",p6[p6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",p6[p6.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",p6[p6.CDATA_SECTION=68]="CDATA_SECTION",p6[p6.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",p6[p6.CDATA_SECTION_END=70]="CDATA_SECTION_END",p6[p6.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",p6[p6.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const h6={DATA:d6.DATA,RCDATA:d6.RCDATA,RAWTEXT:d6.RAWTEXT,SCRIPT_DATA:d6.SCRIPT_DATA,PLAINTEXT:d6.PLAINTEXT,CDATA_SECTION:d6.CDATA_SECTION};function f6(e){return e>=m4.LATIN_CAPITAL_A&&e<=m4.LATIN_CAPITAL_Z}function m6(e){return function(e){return e>=m4.LATIN_SMALL_A&&e<=m4.LATIN_SMALL_Z}(e)||f6(e)}function g6(e){return m6(e)||function(e){return e>=m4.DIGIT_0&&e<=m4.DIGIT_9}(e)}function y6(e){return e+32}function b6(e){return e===m4.SPACE||e===m4.LINE_FEED||e===m4.TABULATION||e===m4.FORM_FEED}function v6(e){return b6(e)||e===m4.SOLIDUS||e===m4.GREATER_THAN_SIGN}class k6{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=d6.DATA,this.returnState=d6.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new A4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new r6(O4,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(T4.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(T4.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===m4.NULL?T4.nullCharacterReference:e>1114111?T4.characterReferenceOutsideUnicodeRange:E4(e)?T4.surrogateCharacterReference:S4(e)?T4.noncharacterCharacterReference:_4(e)||e===m4.CARRIAGE_RETURN?T4.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:N4.START_TAG,tagName:"",tagID:J4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:N4.END_TAG,tagName:"",tagID:J4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:N4.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:N4.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===R4(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(T4.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=s6(e.tagName),e.type===N4.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(T4.endTagWithAttributes),e.selfClosing&&this._err(T4.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case N4.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case N4.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case N4.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:N4.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=b6(e)?N4.WHITESPACE_CHARACTER:e===m4.NULL?N4.NULL_CHARACTER:N4.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(N4.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=d6.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?$4.Attribute:$4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===d6.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===d6.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case d6.DATA:this._stateData(e);break;case d6.RCDATA:this._stateRcdata(e);break;case d6.RAWTEXT:this._stateRawtext(e);break;case d6.SCRIPT_DATA:this._stateScriptData(e);break;case d6.PLAINTEXT:this._statePlaintext(e);break;case d6.TAG_OPEN:this._stateTagOpen(e);break;case d6.END_TAG_OPEN:this._stateEndTagOpen(e);break;case d6.TAG_NAME:this._stateTagName(e);break;case d6.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case d6.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case d6.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case d6.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case d6.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case d6.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case d6.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case d6.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case d6.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case d6.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case d6.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case d6.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case d6.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case d6.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case d6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case d6.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case d6.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case d6.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case d6.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case d6.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case d6.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case d6.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case d6.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case d6.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case d6.BOGUS_COMMENT:this._stateBogusComment(e);break;case d6.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case d6.COMMENT_START:this._stateCommentStart(e);break;case d6.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case d6.COMMENT:this._stateComment(e);break;case d6.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case d6.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case d6.COMMENT_END:this._stateCommentEnd(e);break;case d6.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case d6.DOCTYPE:this._stateDoctype(e);break;case d6.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case d6.DOCTYPE_NAME:this._stateDoctypeName(e);break;case d6.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case d6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case d6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case d6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case d6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case d6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case d6.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case d6.CDATA_SECTION:this._stateCdataSection(e);break;case d6.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case d6.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case d6.CHARACTER_REFERENCE:this._stateCharacterReference();break;case d6.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.TAG_OPEN;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitCodePoint(e);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m4.AMPERSAND:this._startCharacterReference();break;case m4.LESS_THAN_SIGN:this.state=d6.RCDATA_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.RAWTEXT_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(m6(e))this._createStartTagToken(),this.state=d6.TAG_NAME,this._stateTagName(e);else switch(e){case m4.EXCLAMATION_MARK:this.state=d6.MARKUP_DECLARATION_OPEN;break;case m4.SOLIDUS:this.state=d6.END_TAG_OPEN;break;case m4.QUESTION_MARK:this._err(T4.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e);break;case m4.EOF:this._err(T4.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(T4.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=d6.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(m6(e))this._createEndTagToken(),this.state=d6.TAG_NAME,this._stateTagName(e);else switch(e){case m4.GREATER_THAN_SIGN:this._err(T4.missingEndTagName),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(T4.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.SOLIDUS:this.state=d6.SELF_CLOSING_START_TAG;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.tagName+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateRcdataLessThanSign(e){e===m4.SOLIDUS?this.state=d6.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=d6.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){m6(e)?(this.state=d6.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=d6.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=d6.BEFORE_ATTRIBUTE_NAME,!1;case m4.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=d6.SELF_CLOSING_START_TAG,!1;case m4.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=d6.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===m4.SOLIDUS?this.state=d6.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){m6(e)?(this.state=d6.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case m4.SOLIDUS:this.state=d6.SCRIPT_DATA_END_TAG_OPEN;break;case m4.EXCLAMATION_MARK:this.state=d6.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){m6(e)?(this.state=d6.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===m4.HYPHEN_MINUS?(this.state=d6.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===m4.HYPHEN_MINUS?(this.state=d6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case m4.HYPHEN_MINUS:this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.GREATER_THAN_SIGN:this.state=d6.SCRIPT_DATA,this._emitChars(">");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m4.SOLIDUS?this.state=d6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:m6(e)?(this._emitChars("<"),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){m6(e)?(this.state=d6.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(k4,!1)&&v6(this.preprocessor.peek(k4.length))){this._emitCodePoint(e);for(let e=0;e<k4.length;e++)this._emitCodePoint(this._consume());this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case m4.HYPHEN_MINUS:this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.GREATER_THAN_SIGN:this.state=d6.SCRIPT_DATA,this._emitChars(">");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m4.SOLIDUS?(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(k4,!1)&&v6(this.preprocessor.peek(k4.length))){this._emitCodePoint(e);for(let e=0;e<k4.length;e++)this._emitCodePoint(this._consume());this.state=d6.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.SOLIDUS:case m4.GREATER_THAN_SIGN:case m4.EOF:this.state=d6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m4.EQUALS_SIGN:this._err(T4.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=d6.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=d6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:case m4.SOLIDUS:case m4.GREATER_THAN_SIGN:case m4.EOF:this._leaveAttrName(),this.state=d6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m4.EQUALS_SIGN:this._leaveAttrName(),this.state=d6.BEFORE_ATTRIBUTE_VALUE;break;case m4.QUOTATION_MARK:case m4.APOSTROPHE:case m4.LESS_THAN_SIGN:this._err(T4.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.name+=f4;break;default:this.currentAttr.name+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateAfterAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.SOLIDUS:this.state=d6.SELF_CLOSING_START_TAG;break;case m4.EQUALS_SIGN:this.state=d6.BEFORE_ATTRIBUTE_VALUE;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=d6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:this.state=d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this.state=d6.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingAttributeValue),this.state=d6.DATA,this.emitCurrentTagToken();break;default:this.state=d6.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this._leaveAttrValue(),this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.QUOTATION_MARK:case m4.APOSTROPHE:case m4.LESS_THAN_SIGN:case m4.EQUALS_SIGN:case m4.GRAVE_ACCENT:this._err(T4.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this._leaveAttrValue(),this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.SOLIDUS:this._leaveAttrValue(),this.state=d6.SELF_CLOSING_START_TAG;break;case m4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._err(T4.missingWhitespaceBetweenAttributes),this.state=d6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case m4.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._err(T4.unexpectedSolidusInTag),this.state=d6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.data+=f4;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(y4,!0)?(this._createCommentToken(y4.length+1),this.state=d6.COMMENT_START):this._consumeSequenceIfMatch(v4,!1)?(this.currentLocation=this.getCurrentLocation(v4.length+1),this.state=d6.DOCTYPE):this._consumeSequenceIfMatch(b4,!0)?this.inForeignNode?this.state=d6.CDATA_SECTION:(this._err(T4.cdataInHtmlContent),this._createCommentToken(b4.length+1),this.currentToken.data="[CDATA[",this.state=d6.BOGUS_COMMENT):this._ensureHibernation()||(this._err(T4.incorrectlyOpenedComment),this._createCommentToken(2),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_START_DASH;break;case m4.GREATER_THAN_SIGN:{this._err(T4.abruptClosingOfEmptyComment),this.state=d6.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptClosingOfEmptyComment),this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=d6.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END_DASH;break;case m4.LESS_THAN_SIGN:t.data+="<",this.state=d6.COMMENT_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.data+=f4;break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case m4.EXCLAMATION_MARK:t.data+="!",this.state=d6.COMMENT_LESS_THAN_SIGN_BANG;break;case m4.LESS_THAN_SIGN:t.data+="<";break;default:this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===m4.HYPHEN_MINUS?this.state=d6.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=d6.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===m4.HYPHEN_MINUS?this.state=d6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=d6.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==m4.GREATER_THAN_SIGN&&e!==m4.EOF&&this._err(T4.nestedComment),this.state=d6.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END;break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EXCLAMATION_MARK:this.state=d6.COMMENT_END_BANG;break;case m4.HYPHEN_MINUS:t.data+="-";break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:t.data+="--!",this.state=d6.COMMENT_END_DASH;break;case m4.GREATER_THAN_SIGN:this._err(T4.incorrectlyClosedComment),this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=d6.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:this.state=d6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case m4.EOF:{this._err(T4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(T4.missingWhitespaceBeforeDoctypeName),this.state=d6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(f6(e))this._createDoctypeToken(String.fromCharCode(y6(e))),this.state=d6.DOCTYPE_NAME;else switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._createDoctypeToken(f4),this.state=d6.DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:{this._err(T4.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=d6.DATA;break}case m4.EOF:{this._err(T4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=d6.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.AFTER_DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.name+=f4;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(w4,!1)?this.state=d6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(x4,!1)?this.state=d6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(T4.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.publicId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.publicId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.QUOTATION_MARK:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.systemId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.systemId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.NULL:this._err(T4.unexpectedNullCharacter);break;case m4.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case m4.RIGHT_SQUARE_BRACKET:this.state=d6.CDATA_SECTION_BRACKET;break;case m4.EOF:this._err(T4.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===m4.RIGHT_SQUARE_BRACKET?this.state=d6.CDATA_SECTION_END:(this._emitChars("]"),this.state=d6.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA;break;case m4.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=d6.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m4.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&g6(this.preprocessor.peek(1))?d6.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){g6(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===m4.SEMICOLON&&this._err(T4.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const w6=new Set([J4.DD,J4.DT,J4.LI,J4.OPTGROUP,J4.OPTION,J4.P,J4.RB,J4.RP,J4.RT,J4.RTC]),x6=new Set([...w6,J4.CAPTION,J4.COLGROUP,J4.TBODY,J4.TD,J4.TFOOT,J4.TH,J4.THEAD,J4.TR]),E6=new Set([J4.APPLET,J4.CAPTION,J4.HTML,J4.MARQUEE,J4.OBJECT,J4.TABLE,J4.TD,J4.TEMPLATE,J4.TH]),_6=new Set([...E6,J4.OL,J4.UL]),S6=new Set([...E6,J4.BUTTON]),T6=new Set([J4.ANNOTATION_XML,J4.MI,J4.MN,J4.MO,J4.MS,J4.MTEXT]),C6=new Set([J4.DESC,J4.FOREIGN_OBJECT,J4.TITLE]),A6=new Set([J4.TR,J4.TEMPLATE,J4.HTML]),N6=new Set([J4.TBODY,J4.TFOOT,J4.THEAD,J4.TEMPLATE,J4.HTML]),I6=new Set([J4.TABLE,J4.TEMPLATE,J4.HTML]),R6=new Set([J4.TD,J4.TH]);class O6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=J4.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===J4.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===G4.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==G4.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(u6,G4.HTML)}popUntilTableCellPopped(){this.popUntilPopped(R6,G4.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(I6,G4.HTML)}clearBackToTableBodyContext(){this.clearBackTo(N6,G4.HTML)}clearBackToTableRowContext(){this.clearBackTo(A6,G4.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===J4.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===J4.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case G4.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case G4.SVG:if(C6.has(r))return!1;break;case G4.MATHML:if(T6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,E6)}hasInListItemScope(e){return this.hasInDynamicScope(e,_6)}hasInButtonScope(e){return this.hasInDynamicScope(e,S6)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case G4.HTML:if(u6.has(t))return!0;if(E6.has(t))return!1;break;case G4.SVG:if(C6.has(t))return!1;break;case G4.MATHML:if(T6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===G4.HTML)switch(this.tagIDs[t]){case e:return!0;case J4.TABLE:case J4.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===G4.HTML)switch(this.tagIDs[e]){case J4.TBODY:case J4.THEAD:case J4.TFOOT:return!0;case J4.TABLE:case J4.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===G4.HTML)switch(this.tagIDs[t]){case e:return!0;case J4.OPTION:case J4.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;w6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;x6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&x6.has(this.currentTagId);)this.pop()}}var P6,L6;(L6=P6||(P6={}))[L6.Marker=0]="Marker",L6[L6.Element=1]="Element";const D6={type:P6.Marker};class M6{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===P6.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(D6)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:P6.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:P6.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(D6);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===P6.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===P6.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===P6.Element&&t.element===e))}}const F6={createDocument:()=>({nodeName:"#document",mode:K4.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find((e=>"#documentType"===e.nodeName));if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};F6.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(F6.isTextNode(n))return void(n.value+=t)}F6.appendChild(e,F6.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&F6.isTextNode(r)?r.value+=t:F6.insertBefore(e,F6.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},j6="html",B6=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],H6=[...B6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],z6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),U6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$6=[...U6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function V6(e,t){return t.some((t=>e.startsWith(t)))}const G6="text/html",W6="application/xhtml+xml",q6=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Y6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G4.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G4.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G4.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G4.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G4.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G4.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G4.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:G4.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G4.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G4.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G4.XMLNS}]]),K6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),X6=new Set([J4.B,J4.BIG,J4.BLOCKQUOTE,J4.BODY,J4.BR,J4.CENTER,J4.CODE,J4.DD,J4.DIV,J4.DL,J4.DT,J4.EM,J4.EMBED,J4.H1,J4.H2,J4.H3,J4.H4,J4.H5,J4.H6,J4.HEAD,J4.HR,J4.I,J4.IMG,J4.LI,J4.LISTING,J4.MENU,J4.META,J4.NOBR,J4.OL,J4.P,J4.PRE,J4.RUBY,J4.S,J4.SMALL,J4.SPAN,J4.STRONG,J4.STRIKE,J4.SUB,J4.SUP,J4.TABLE,J4.TT,J4.U,J4.UL,J4.VAR]);function Q6(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Z6(e){for(let t=0;t<e.attrs.length;t++){const n=q6.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function J6(e){for(let t=0;t<e.attrs.length;t++){const n=Y6.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function e8(e,t,n,r){return(!r||r===G4.HTML)&&function(e,t,n){if(t===G4.MATHML&&e===J4.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===q4.ENCODING){const e=n[r].value.toLowerCase();return e===G6||e===W6}return t===G4.SVG&&(e===J4.FOREIGN_OBJECT||e===J4.DESC||e===J4.TITLE)}(e,t,n)||(!r||r===G4.MATHML)&&function(e,t){return t===G4.MATHML&&(e===J4.MI||e===J4.MO||e===J4.MN||e===J4.MS||e===J4.MTEXT)}(e,t)}var t8,n8;(n8=t8||(t8={}))[n8.INITIAL=0]="INITIAL",n8[n8.BEFORE_HTML=1]="BEFORE_HTML",n8[n8.BEFORE_HEAD=2]="BEFORE_HEAD",n8[n8.IN_HEAD=3]="IN_HEAD",n8[n8.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",n8[n8.AFTER_HEAD=5]="AFTER_HEAD",n8[n8.IN_BODY=6]="IN_BODY",n8[n8.TEXT=7]="TEXT",n8[n8.IN_TABLE=8]="IN_TABLE",n8[n8.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",n8[n8.IN_CAPTION=10]="IN_CAPTION",n8[n8.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",n8[n8.IN_TABLE_BODY=12]="IN_TABLE_BODY",n8[n8.IN_ROW=13]="IN_ROW",n8[n8.IN_CELL=14]="IN_CELL",n8[n8.IN_SELECT=15]="IN_SELECT",n8[n8.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",n8[n8.IN_TEMPLATE=17]="IN_TEMPLATE",n8[n8.AFTER_BODY=18]="AFTER_BODY",n8[n8.IN_FRAMESET=19]="IN_FRAMESET",n8[n8.AFTER_FRAMESET=20]="AFTER_FRAMESET",n8[n8.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",n8[n8.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const r8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},a8=new Set([J4.TABLE,J4.TBODY,J4.TFOOT,J4.THEAD,J4.TR]),o8={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:F6,onParseError:null};class i8{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=t8.INITIAL,this.originalInsertionMode=t8.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...o8,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new k6(this.options,this),this.activeFormattingElements=new M6(this.treeAdapter),this.fragmentContextID=n?s6(this.treeAdapter.getTagName(n)):J4.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new O6(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...o8,...t};null!=e||(e=n.treeAdapter.createElement(Q4.TEMPLATE,G4.HTML,[]));const r=n.treeAdapter.createElement("documentmock",G4.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===J4.TEMPLATE&&a.tmplInsertionModeStack.unshift(t8.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:r8,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===G4.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,G4.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=t8.TEXT}switchToPlaintextParsing(){this.insertionMode=t8.TEXT,this.originalInsertionMode=t8.IN_BODY,this.tokenizer.state=h6.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Q4.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===G4.HTML)switch(this.fragmentContextID){case J4.TITLE:case J4.TEXTAREA:this.tokenizer.state=h6.RCDATA;break;case J4.STYLE:case J4.XMP:case J4.IFRAME:case J4.NOEMBED:case J4.NOFRAMES:case J4.NOSCRIPT:this.tokenizer.state=h6.RAWTEXT;break;case J4.SCRIPT:this.tokenizer.state=h6.SCRIPT_DATA;break;case J4.PLAINTEXT:this.tokenizer.state=h6.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,G4.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,G4.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Q4.HTML,G4.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,J4.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===N4.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==J4.SVG||this.treeAdapter.getTagName(t)!==Q4.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==G4.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===J4.MGLYPH||e.tagID===J4.MALIGNMARK)&&!this._isIntegrationPoint(n,t,G4.HTML))}_processToken(e){switch(e.type){case N4.CHARACTER:this.onCharacter(e);break;case N4.NULL_CHARACTER:this.onNullCharacter(e);break;case N4.COMMENT:this.onComment(e);break;case N4.DOCTYPE:this.onDoctype(e);break;case N4.START_TAG:this._processStartTag(e);break;case N4.END_TAG:this.onEndTag(e);break;case N4.EOF:this.onEof(e);break;case N4.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return e8(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===P6.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=t8.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(J4.P),this.openElements.popUntilTagNamePopped(J4.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case J4.TR:return void(this.insertionMode=t8.IN_ROW);case J4.TBODY:case J4.THEAD:case J4.TFOOT:return void(this.insertionMode=t8.IN_TABLE_BODY);case J4.CAPTION:return void(this.insertionMode=t8.IN_CAPTION);case J4.COLGROUP:return void(this.insertionMode=t8.IN_COLUMN_GROUP);case J4.TABLE:return void(this.insertionMode=t8.IN_TABLE);case J4.BODY:return void(this.insertionMode=t8.IN_BODY);case J4.FRAMESET:return void(this.insertionMode=t8.IN_FRAMESET);case J4.SELECT:return void this._resetInsertionModeForSelect(e);case J4.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case J4.HTML:return void(this.insertionMode=this.headElement?t8.AFTER_HEAD:t8.BEFORE_HEAD);case J4.TD:case J4.TH:if(e>0)return void(this.insertionMode=t8.IN_CELL);break;case J4.HEAD:if(e>0)return void(this.insertionMode=t8.IN_HEAD)}this.insertionMode=t8.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===J4.TEMPLATE)break;if(e===J4.TABLE)return void(this.insertionMode=t8.IN_SELECT_IN_TABLE)}this.insertionMode=t8.IN_SELECT}_isElementCausesFosterParenting(e){return a8.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case J4.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===G4.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case J4.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return c6[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.IN_BODY:case t8.IN_CAPTION:case t8.IN_CELL:case t8.IN_TEMPLATE:T8(this,e);break;case t8.TEXT:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_TABLE_TEXT:H8(this,e);break;case t8.IN_COLUMN_GROUP:V8(this,e);break;case t8.AFTER_BODY:J8(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=f4,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.TEXT:this._insertCharacters(e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_COLUMN_GROUP:V8(this,e);break;case t8.AFTER_BODY:J8(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)f8(this,e);else switch(this.insertionMode){case t8.INITIAL:case t8.BEFORE_HTML:case t8.BEFORE_HEAD:case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:case t8.IN_BODY:case t8.IN_TABLE:case t8.IN_CAPTION:case t8.IN_COLUMN_GROUP:case t8.IN_TABLE_BODY:case t8.IN_ROW:case t8.IN_CELL:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:case t8.IN_TEMPLATE:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:f8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case t8.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?K4.QUIRKS:function(e){if(e.name!==j6)return K4.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return K4.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),z6.has(n))return K4.QUIRKS;let e=null===t?H6:B6;if(V6(n,e))return K4.QUIRKS;if(e=null===t?U6:$6,V6(n,e))return K4.LIMITED_QUIRKS}return K4.NO_QUIRKS}(t);(function(e){return e.name===j6&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,T4.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=t8.BEFORE_HTML}(this,e);break;case t8.BEFORE_HEAD:case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:this._err(e,T4.misplacedDoctype);break;case t8.IN_TABLE_TEXT:z8(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,T4.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===J4.FONT&&e.attrs.some((({name:e})=>e===q4.COLOR||e===q4.SIZE||e===q4.FACE))||X6.has(t)}(t))t9(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===G4.MATHML?Q6(t):r===G4.SVG&&(!function(e){const t=K6.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=s6(e.tagName))}(t),Z6(t)),J6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:!function(e,t){t.tagID===J4.HTML?(e._insertElement(t,G4.HTML),e.insertionMode=t8.BEFORE_HEAD):y8(e,t)}(this,e);break;case t8.BEFORE_HEAD:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.HEAD:e._insertElement(t,G4.HTML),e.headElement=e.openElements.current,e.insertionMode=t8.IN_HEAD;break;default:b8(e,t)}}(this,e);break;case t8.IN_HEAD:v8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BASEFONT:case J4.BGSOUND:case J4.HEAD:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.STYLE:v8(e,t);break;case J4.NOSCRIPT:e._err(t,T4.nestedNoscriptInHead);break;default:x8(e,t)}}(this,e);break;case t8.AFTER_HEAD:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BODY:e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=t8.IN_BODY;break;case J4.FRAMESET:e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_FRAMESET;break;case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.SCRIPT:case J4.STYLE:case J4.TEMPLATE:case J4.TITLE:e._err(t,T4.abandonedHeadElementChild),e.openElements.push(e.headElement,J4.HEAD),v8(e,t),e.openElements.remove(e.headElement);break;case J4.HEAD:e._err(t,T4.misplacedStartTagForHeadElement);break;default:E8(e,t)}}(this,e);break;case t8.IN_BODY:R8(this,e);break;case t8.IN_TABLE:M8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_CAPTION:!function(e,t){const n=t.tagID;U8.has(n)?e.openElements.hasInTableScope(J4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_TABLE,M8(e,t)):R8(e,t)}(this,e);break;case t8.IN_COLUMN_GROUP:$8(this,e);break;case t8.IN_TABLE_BODY:G8(this,e);break;case t8.IN_ROW:q8(this,e);break;case t8.IN_CELL:!function(e,t){const n=t.tagID;U8.has(n)?(e.openElements.hasInTableScope(J4.TD)||e.openElements.hasInTableScope(J4.TH))&&(e._closeTableCell(),q8(e,t)):R8(e,t)}(this,e);break;case t8.IN_SELECT:K8(this,e);break;case t8.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===J4.CAPTION||n===J4.TABLE||n===J4.TBODY||n===J4.TFOOT||n===J4.THEAD||n===J4.TR||n===J4.TD||n===J4.TH?(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),e._processStartTag(t)):K8(e,t)}(this,e);break;case t8.IN_TEMPLATE:!function(e,t){switch(t.tagID){case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.SCRIPT:case J4.STYLE:case J4.TEMPLATE:case J4.TITLE:v8(e,t);break;case J4.CAPTION:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.tmplInsertionModeStack[0]=t8.IN_TABLE,e.insertionMode=t8.IN_TABLE,M8(e,t);break;case J4.COL:e.tmplInsertionModeStack[0]=t8.IN_COLUMN_GROUP,e.insertionMode=t8.IN_COLUMN_GROUP,$8(e,t);break;case J4.TR:e.tmplInsertionModeStack[0]=t8.IN_TABLE_BODY,e.insertionMode=t8.IN_TABLE_BODY,G8(e,t);break;case J4.TD:case J4.TH:e.tmplInsertionModeStack[0]=t8.IN_ROW,e.insertionMode=t8.IN_ROW,q8(e,t);break;default:e.tmplInsertionModeStack[0]=t8.IN_BODY,e.insertionMode=t8.IN_BODY,R8(e,t)}}(this,e);break;case t8.AFTER_BODY:!function(e,t){t.tagID===J4.HTML?R8(e,t):J8(e,t)}(this,e);break;case t8.IN_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.FRAMESET:e._insertElement(t,G4.HTML);break;case J4.FRAME:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.NOFRAMES:v8(e,t)}}(this,e);break;case t8.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.NOFRAMES:v8(e,t)}}(this,e);break;case t8.AFTER_AFTER_BODY:!function(e,t){t.tagID===J4.HTML?R8(e,t):e9(e,t)}(this,e);break;case t8.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.NOFRAMES:v8(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===J4.P||t.tagID===J4.BR)return t9(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===G4.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==J4.HTML&&n!==J4.HEAD&&n!==J4.BODY&&n!==J4.BR||y8(e,t)}(this,e);break;case t8.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===J4.HEAD||n===J4.BODY||n===J4.HTML||n===J4.BR?b8(e,t):e._err(t,T4.endTagWithoutMatchingOpenElement)}(this,e);break;case t8.IN_HEAD:!function(e,t){switch(t.tagID){case J4.HEAD:e.openElements.pop(),e.insertionMode=t8.AFTER_HEAD;break;case J4.BODY:case J4.BR:case J4.HTML:w8(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case J4.NOSCRIPT:e.openElements.pop(),e.insertionMode=t8.IN_HEAD;break;case J4.BR:x8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.AFTER_HEAD:!function(e,t){switch(t.tagID){case J4.BODY:case J4.HTML:case J4.BR:E8(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.IN_BODY:P8(this,e);break;case t8.TEXT:!function(e,t){var n;t.tagID===J4.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case t8.IN_TABLE:F8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case J4.CAPTION:case J4.TABLE:e.openElements.hasInTableScope(J4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_TABLE,n===J4.TABLE&&F8(e,t));break;case J4.BODY:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TBODY:case J4.TD:case J4.TFOOT:case J4.TH:case J4.THEAD:case J4.TR:break;default:P8(e,t)}}(this,e);break;case t8.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case J4.COLGROUP:e.openElements.currentTagId===J4.COLGROUP&&(e.openElements.pop(),e.insertionMode=t8.IN_TABLE);break;case J4.TEMPLATE:k8(e,t);break;case J4.COL:break;default:V8(e,t)}}(this,e);break;case t8.IN_TABLE_BODY:W8(this,e);break;case t8.IN_ROW:Y8(this,e);break;case t8.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case J4.TD:case J4.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_ROW);break;case J4.TABLE:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Y8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:break;default:P8(e,t)}}(this,e);break;case t8.IN_SELECT:X8(this,e);break;case t8.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===J4.CAPTION||n===J4.TABLE||n===J4.TBODY||n===J4.TFOOT||n===J4.THEAD||n===J4.TR||n===J4.TD||n===J4.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),e.onEndTag(t)):X8(e,t)}(this,e);break;case t8.IN_TEMPLATE:!function(e,t){t.tagID===J4.TEMPLATE&&k8(e,t)}(this,e);break;case t8.AFTER_BODY:Z8(this,e);break;case t8.IN_FRAMESET:!function(e,t){t.tagID!==J4.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===J4.FRAMESET||(e.insertionMode=t8.AFTER_FRAMESET))}(this,e);break;case t8.AFTER_FRAMESET:!function(e,t){t.tagID===J4.HTML&&(e.insertionMode=t8.AFTER_AFTER_FRAMESET)}(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onEof(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.IN_BODY:case t8.IN_TABLE:case t8.IN_CAPTION:case t8.IN_COLUMN_GROUP:case t8.IN_TABLE_BODY:case t8.IN_ROW:case t8.IN_CELL:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:L8(this,e);break;case t8.TEXT:!function(e,t){e._err(t,T4.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_TEMPLATE:Q8(this,e);break;case t8.AFTER_BODY:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:m8(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m4.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:case t8.TEXT:case t8.IN_COLUMN_GROUP:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:this._insertCharacters(e);break;case t8.IN_BODY:case t8.IN_CAPTION:case t8.IN_CELL:case t8.IN_TEMPLATE:case t8.AFTER_BODY:case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:S8(this,e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_TABLE_TEXT:B8(this,e)}}}function s8(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):O8(e,t),n}function l8(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function c8(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=u8(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function u8(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function d8(e,t,n){const r=s6(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===J4.TEMPLATE&&a===G4.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function p8(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function h8(e,t){for(let n=0;n<8;n++){const n=s8(e,t);if(!n)break;const r=l8(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=c8(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&d8(e,o,a),p8(e,r,n)}}function f8(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function m8(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function g8(e,t){e._err(t,T4.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,K4.QUIRKS),e.insertionMode=t8.BEFORE_HTML,e._processToken(t)}function y8(e,t){e._insertFakeRootElement(),e.insertionMode=t8.BEFORE_HEAD,e._processToken(t)}function b8(e,t){e._insertFakeElement(Q4.HEAD,J4.HEAD),e.headElement=e.openElements.current,e.insertionMode=t8.IN_HEAD,e._processToken(t)}function v8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.TITLE:e._switchToTextParsing(t,h6.RCDATA);break;case J4.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,h6.RAWTEXT):(e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_HEAD_NO_SCRIPT);break;case J4.NOFRAMES:case J4.STYLE:e._switchToTextParsing(t,h6.RAWTEXT);break;case J4.SCRIPT:e._switchToTextParsing(t,h6.SCRIPT_DATA);break;case J4.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=t8.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(t8.IN_TEMPLATE);break;case J4.HEAD:e._err(t,T4.misplacedStartTagForHeadElement);break;default:w8(e,t)}}function k8(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==J4.TEMPLATE&&e._err(t,T4.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(J4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,T4.endTagWithoutMatchingOpenElement)}function w8(e,t){e.openElements.pop(),e.insertionMode=t8.AFTER_HEAD,e._processToken(t)}function x8(e,t){const n=t.type===N4.EOF?T4.openElementsLeftAfterEof:T4.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=t8.IN_HEAD,e._processToken(t)}function E8(e,t){e._insertFakeElement(Q4.BODY,J4.BODY),e.insertionMode=t8.IN_BODY,_8(e,t)}function _8(e,t){switch(t.type){case N4.CHARACTER:T8(e,t);break;case N4.WHITESPACE_CHARACTER:S8(e,t);break;case N4.COMMENT:f8(e,t);break;case N4.START_TAG:R8(e,t);break;case N4.END_TAG:P8(e,t);break;case N4.EOF:L8(e,t)}}function S8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function T8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function A8(e){const t=R4(e,q4.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function N8(e,t){e._switchToTextParsing(t,h6.RAWTEXT)}function I8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML)}function R8(e,t){switch(t.tagID){case J4.I:case J4.S:case J4.B:case J4.U:case J4.EM:case J4.TT:case J4.BIG:case J4.CODE:case J4.FONT:case J4.SMALL:case J4.STRIKE:case J4.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Q4.A);n&&(h8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.H1:case J4.H2:case J4.H3:case J4.H4:case J4.H5:case J4.H6:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),u6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.P:case J4.DL:case J4.OL:case J4.UL:case J4.DIV:case J4.DIR:case J4.NAV:case J4.MAIN:case J4.MENU:case J4.ASIDE:case J4.CENTER:case J4.FIGURE:case J4.FOOTER:case J4.HEADER:case J4.HGROUP:case J4.DIALOG:case J4.DETAILS:case J4.ADDRESS:case J4.ARTICLE:case J4.SEARCH:case J4.SECTION:case J4.SUMMARY:case J4.FIELDSET:case J4.BLOCKQUOTE:case J4.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.LI:case J4.DD:case J4.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===J4.LI&&t===J4.LI||(n===J4.DD||n===J4.DT)&&(t===J4.DD||t===J4.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==J4.ADDRESS&&t!==J4.DIV&&t!==J4.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.BR:case J4.IMG:case J4.WBR:case J4.AREA:case J4.EMBED:case J4.KEYGEN:C8(e,t);break;case J4.HR:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._appendElement(t,G4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case J4.RB:case J4.RTC:!function(e,t){e.openElements.hasInScope(J4.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.RT:case J4.RP:!function(e,t){e.openElements.hasInScope(J4.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(J4.RTC),e._insertElement(t,G4.HTML)}(e,t);break;case J4.PRE:case J4.LISTING:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case J4.XMP:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,h6.RAWTEXT)}(e,t);break;case J4.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Z6(t),J6(t),t.selfClosing?e._appendElement(t,G4.SVG):e._insertElement(t,G4.SVG),t.ackSelfClosing=!0}(e,t);break;case J4.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case J4.BASE:case J4.LINK:case J4.META:case J4.STYLE:case J4.TITLE:case J4.SCRIPT:case J4.BGSOUND:case J4.BASEFONT:case J4.TEMPLATE:v8(e,t);break;case J4.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case J4.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case J4.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(J4.NOBR)&&(h8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Q6(t),J6(t),t.selfClosing?e._appendElement(t,G4.MATHML):e._insertElement(t,G4.MATHML),t.ackSelfClosing=!0}(e,t);break;case J4.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==K4.QUIRKS&&e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=t8.IN_TABLE}(e,t);break;case J4.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G4.HTML),A8(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case J4.PARAM:case J4.TRACK:case J4.SOURCE:!function(e,t){e._appendElement(t,G4.HTML),t.ackSelfClosing=!0}(e,t);break;case J4.IMAGE:!function(e,t){t.tagName=Q4.IMG,t.tagID=J4.IMG,C8(e,t)}(e,t);break;case J4.BUTTON:!function(e,t){e.openElements.hasInScope(J4.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.framesetOk=!1}(e,t);break;case J4.APPLET:case J4.OBJECT:case J4.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case J4.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,h6.RAWTEXT)}(e,t);break;case J4.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===t8.IN_TABLE||e.insertionMode===t8.IN_CAPTION||e.insertionMode===t8.IN_TABLE_BODY||e.insertionMode===t8.IN_ROW||e.insertionMode===t8.IN_CELL?t8.IN_SELECT_IN_TABLE:t8.IN_SELECT}(e,t);break;case J4.OPTION:case J4.OPTGROUP:!function(e,t){e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.NOEMBED:case J4.NOFRAMES:N8(e,t);break;case J4.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_FRAMESET)}(e,t);break;case J4.TEXTAREA:!function(e,t){e._insertElement(t,G4.HTML),e.skipNextNewLine=!0,e.tokenizer.state=h6.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=t8.TEXT}(e,t);break;case J4.NOSCRIPT:e.options.scriptingEnabled?N8(e,t):I8(e,t);break;case J4.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.tokenizer.state=h6.PLAINTEXT}(e,t);break;case J4.COL:case J4.TH:case J4.TD:case J4.TR:case J4.HEAD:case J4.FRAME:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.CAPTION:case J4.COLGROUP:break;default:I8(e,t)}}function O8(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==J4.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function P8(e,t){switch(t.tagID){case J4.A:case J4.B:case J4.I:case J4.S:case J4.U:case J4.EM:case J4.TT:case J4.BIG:case J4.CODE:case J4.FONT:case J4.NOBR:case J4.SMALL:case J4.STRIKE:case J4.STRONG:h8(e,t);break;case J4.P:!function(e){e.openElements.hasInButtonScope(J4.P)||e._insertFakeElement(Q4.P,J4.P),e._closePElement()}(e);break;case J4.DL:case J4.UL:case J4.OL:case J4.DIR:case J4.DIV:case J4.NAV:case J4.PRE:case J4.MAIN:case J4.MENU:case J4.ASIDE:case J4.BUTTON:case J4.CENTER:case J4.FIGURE:case J4.FOOTER:case J4.HEADER:case J4.HGROUP:case J4.DIALOG:case J4.ADDRESS:case J4.ARTICLE:case J4.DETAILS:case J4.SEARCH:case J4.SECTION:case J4.SUMMARY:case J4.LISTING:case J4.FIELDSET:case J4.BLOCKQUOTE:case J4.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case J4.LI:!function(e){e.openElements.hasInListItemScope(J4.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(J4.LI),e.openElements.popUntilTagNamePopped(J4.LI))}(e);break;case J4.DD:case J4.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case J4.H1:case J4.H2:case J4.H3:case J4.H4:case J4.H5:case J4.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case J4.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Q4.BR,J4.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case J4.BODY:!function(e,t){if(e.openElements.hasInScope(J4.BODY)&&(e.insertionMode=t8.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case J4.HTML:!function(e,t){e.openElements.hasInScope(J4.BODY)&&(e.insertionMode=t8.AFTER_BODY,Z8(e,t))}(e,t);break;case J4.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(J4.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(J4.FORM):n&&e.openElements.remove(n))}(e);break;case J4.APPLET:case J4.OBJECT:case J4.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:O8(e,t)}}function L8(e,t){e.tmplInsertionModeStack.length>0?Q8(e,t):m8(e,t)}function D8(e,t){if(a8.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=t8.IN_TABLE_TEXT,t.type){case N4.CHARACTER:H8(e,t);break;case N4.WHITESPACE_CHARACTER:B8(e,t)}else j8(e,t)}function M8(e,t){switch(t.tagID){case J4.TD:case J4.TH:case J4.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q4.TBODY,J4.TBODY),e.insertionMode=t8.IN_TABLE_BODY,G8(e,t)}(e,t);break;case J4.STYLE:case J4.SCRIPT:case J4.TEMPLATE:v8(e,t);break;case J4.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q4.COLGROUP,J4.COLGROUP),e.insertionMode=t8.IN_COLUMN_GROUP,$8(e,t)}(e,t);break;case J4.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,G4.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case J4.TABLE:!function(e,t){e.openElements.hasInTableScope(J4.TABLE)&&(e.openElements.popUntilTagNamePopped(J4.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case J4.TBODY:case J4.TFOOT:case J4.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_TABLE_BODY}(e,t);break;case J4.INPUT:!function(e,t){A8(t)?e._appendElement(t,G4.HTML):j8(e,t),t.ackSelfClosing=!0}(e,t);break;case J4.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_CAPTION}(e,t);break;case J4.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_COLUMN_GROUP}(e,t);break;default:j8(e,t)}}function F8(e,t){switch(t.tagID){case J4.TABLE:e.openElements.hasInTableScope(J4.TABLE)&&(e.openElements.popUntilTagNamePopped(J4.TABLE),e._resetInsertionMode());break;case J4.TEMPLATE:k8(e,t);break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TBODY:case J4.TD:case J4.TFOOT:case J4.TH:case J4.THEAD:case J4.TR:break;default:j8(e,t)}}function j8(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_8(e,t),e.fosterParentingEnabled=n}function B8(e,t){e.pendingCharacterTokens.push(t)}function H8(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function z8(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)j8(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const U8=new Set([J4.CAPTION,J4.COL,J4.COLGROUP,J4.TBODY,J4.TD,J4.TFOOT,J4.TH,J4.THEAD,J4.TR]);function $8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.COL:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.TEMPLATE:v8(e,t);break;default:V8(e,t)}}function V8(e,t){e.openElements.currentTagId===J4.COLGROUP&&(e.openElements.pop(),e.insertionMode=t8.IN_TABLE,e._processToken(t))}function G8(e,t){switch(t.tagID){case J4.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_ROW;break;case J4.TH:case J4.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Q4.TR,J4.TR),e.insertionMode=t8.IN_ROW,q8(e,t);break;case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE,M8(e,t));break;default:M8(e,t)}}function W8(e,t){const n=t.tagID;switch(t.tagID){case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE);break;case J4.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE,F8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TD:case J4.TH:case J4.TR:break;default:F8(e,t)}}function q8(e,t){switch(t.tagID){case J4.TH:case J4.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_CELL,e.activeFormattingElements.insertMarker();break;case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.TR:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,G8(e,t));break;default:M8(e,t)}}function Y8(e,t){switch(t.tagID){case J4.TR:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY);break;case J4.TABLE:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,W8(e,t));break;case J4.TBODY:case J4.TFOOT:case J4.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(J4.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,W8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TD:case J4.TH:break;default:F8(e,t)}}function K8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.OPTION:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e._insertElement(t,G4.HTML);break;case J4.OPTGROUP:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop(),e._insertElement(t,G4.HTML);break;case J4.HR:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop(),e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.INPUT:case J4.KEYGEN:case J4.TEXTAREA:case J4.SELECT:e.openElements.hasInSelectScope(J4.SELECT)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),t.tagID!==J4.SELECT&&e._processStartTag(t));break;case J4.SCRIPT:case J4.TEMPLATE:v8(e,t)}}function X8(e,t){switch(t.tagID){case J4.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===J4.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===J4.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop();break;case J4.OPTION:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop();break;case J4.SELECT:e.openElements.hasInSelectScope(J4.SELECT)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode());break;case J4.TEMPLATE:k8(e,t)}}function Q8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(J4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):m8(e,t)}function Z8(e,t){var n;if(t.tagID===J4.HTML){if(e.fragmentContext||(e.insertionMode=t8.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===J4.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else J8(e,t)}function J8(e,t){e.insertionMode=t8.IN_BODY,_8(e,t)}function e9(e,t){e.insertionMode=t8.IN_BODY,_8(e,t)}function t9(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==G4.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Q4.AREA,Q4.BASE,Q4.BASEFONT,Q4.BGSOUND,Q4.BR,Q4.COL,Q4.EMBED,Q4.FRAME,Q4.HR,Q4.IMG,Q4.INPUT,Q4.KEYGEN,Q4.LINK,Q4.META,Q4.PARAM,Q4.SOURCE,Q4.TRACK,Q4.WBR;const n9=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,r9=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),a9={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function o9(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=o4("type",{handlers:{root:s9,element:l9,text:c9,comment:p9,doctype:u9,raw:h9},unknown:f9}),a={parser:n?new i8(a9):i8.getFragmentParser(void 0,a9),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),m9(a,E0());const o=function(e,t){const n=t||{};return v3({file:n.file||void 0,location:!1,schema:"svg"===n.space?qJ:WJ,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&h5(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function i9(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function s9(e,t){i9(e.children,t)}function l9(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===h6.PLAINTEXT)return;m9(t,E0(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:g3.html;a===g3.html&&"svg"===n&&(a=g3.svg);const o=function(e,t){const n=(t||i4).space;return l4(e,"svg"===n?r4:n4)}({...e,children:[]},{space:a===g3.svg?"svg":"html"}),i={type:N4.START_TAG,tagName:n,tagID:s6(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:y9(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),i9(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&p4.includes(n))return;if(t.parser.tokenizer.state===h6.PLAINTEXT)return;m9(t,x0(e));const r={type:N4.END_TAG,tagName:n,tagID:s6(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:y9(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==h6.RCDATA&&t.parser.tokenizer.state!==h6.RAWTEXT&&t.parser.tokenizer.state!==h6.SCRIPT_DATA||(t.parser.tokenizer.state=h6.DATA)}(e,t)}function c9(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:N4.CHARACTER,chars:e.value,location:y9(e)};m9(t,E0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function u9(e,t){const n={type:N4.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:y9(e)};m9(t,E0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function d9(e,t){t.stitches=!0;const n=function(e){return r5("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=o9({type:"root",children:e.children},t.options);n.children=r.children}p9({type:"comment",value:{stitch:n}},t)}function p9(e,t){const n=e.value,r={type:N4.COMMENT,data:n,location:y9(e)};m9(t,E0(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function h9(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,g9(t,E0(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(n9,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function f9(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw r9.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}d9(n,t)}function m9(e,t){g9(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=h6.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function g9(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function y9(e){const t=E0(e)||{line:void 0,column:void 0,offset:void 0},n=x0(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function b9(e){return function(t,n){return o9(t,{...e,file:n})}}function v9(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function k9(e,t,n){const r=i5((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([w9(e[0]),x9(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)p5(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function w9(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function x9(e){return"function"==typeof e?e:function(){return e}}const E9="phrasing",_9=["autolink","link","image","label"];function S9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function T9(e){this.config.enter.autolinkProtocol.call(this,e)}function C9(e){this.config.exit.autolinkProtocol.call(this,e)}function A9(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function N9(e){this.config.exit.autolinkEmail.call(this,e)}function I9(e){this.exit(e)}function R9(e){k9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,O9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),P9]],{ignore:["link","linkReference"]})}function O9(e,t,n,r,a){let o="";if(!L9(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=v9(e,"(");let o=v9(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function P9(e,t,n,r){return!(!L9(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function L9(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||b1(n)||y1(n))&&(!t||47!==n)}function D9(){this.buffer()}function M9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F9(){this.buffer()}function j9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function H9(e){this.exit(e)}function z9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function U9(e){this.exit(e)}function $9(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function V9(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?W9:G9)));return s(),i},footnoteReference:$9},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function G9(e,t,n){return 0===t?e:W9(e,t,n)}function W9(e,t,n){return(n?"":" ")+e}$9.peek=function(){return"["};const q9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Y9(e){this.enter({type:"delete",children:[]},e)}function K9(e){this.exit(e)}function X9(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Q9(e){return e.length}function Z9(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function J9(e,t,n){return">"+(n?"":" ")+e}function e7(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function t7(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&(o=n.stack,i=n.unsafe[a],e7(o,i.inConstruct,!0)&&!e7(o,i.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,i;return"\\\n"}function n7(e,t,n){return(n?"":" ")+e}function r7(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function a7(e){return"&#x"+e.toString(16).toUpperCase()+";"}function o7(e,t,n){const r=S1(e),a=S1(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function i7(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=o7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=a7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=o7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+a7(d));const h=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function s7(e){return e.value||""}function l7(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function c7(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function u7(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function d7(e,t){const n=Y0(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function p7(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(d7(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function h7(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function f7(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function m7(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}X9.peek=function(){return"~"},i7.peek=function(e,t,n){return n.options.emphasis||"*"},s7.peek=function(){return"<"},l7.peek=function(){return"!"},c7.peek=function(){return"!"},u7.peek=function(){return"`"},p7.peek=function(e,t,n){return d7(e,n)?"<":"["},h7.peek=function(){return"["};const g7=i5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function y7(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=o7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=a7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=o7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+a7(d));const h=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}y7.peek=function(e,t,n){return n.options.strong||"*"};const b7={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),J9);return a(),i},break:t7,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,n7);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:i7,hardBreak:t7,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return h5(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,d5})),Boolean((!e.depth||e.depth<3)&&Y0(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=a7(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:s7,image:l7,imageReference:c7,inlineCode:u7,link:p7,linkReference:h7,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):f7(n);const s=e.ordered?"."===i?")":".":function(e){const t=f7(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),m7(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||f7(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some((function(e){return g7(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:y7,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(m7(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function v7(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function k7(e){this.exit(e),this.data.inTable=void 0}function w7(e){this.enter({type:"tableRow",children:[]},e)}function x7(e){this.exit(e)}function E7(e){this.enter({type:"tableCell",children:[]},e)}function _7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function S7(e,t){return"|"===t?t:e}function T7(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=b7.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Q9,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=Z9(r[p]);else{const e=Z9(r);for(;++p<c;)o[p]=e}p=-1;const h=[],f=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[p]&&(l[p]=a),f[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<c;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function C7(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function A7(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function N7(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=b7.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),l}const I7={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},R7={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(P7,l,s)(t):null===t||m1(t)||b1(t)||45!==t&&y1(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},O7={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(P7,t,o)(i):null===i||m1(i)||b1(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},P7={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||m1(i)||b1(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||m1(e)||b1(e)?t(e):r(e)}function o(e){return s1(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):s1(t)?(e.consume(t),i):n(t)}},partial:!0},L7={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return l1(e)?n(e):t(e)}},partial:!0},D7={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!H7.call(r,r.previous)||V7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(I7,e.attempt(R7,e.attempt(O7,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:H7},M7={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&z7.call(r,r.previous)&&!V7(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(s1(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||u1(t)||m1(t)||b1(t)||y1(t)?n(t):e.attempt(R7,e.attempt(O7,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:z7},F7={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!$7(t)||!U7.call(r,r.previous)||V7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return $7(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(L7,c,l)(t):45===t||95===t||l1(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&s1(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:U7},j7={};let B7=48;for(;B7<123;)j7[B7]=F7,B7++,58===B7?B7=65:91===B7&&(B7=97);function H7(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||m1(e)}function z7(e){return!s1(e)}function U7(e){return!(47===e||$7(e))}function $7(e){return 43===e||45===e||46===e||95===e||l1(e)}function V7(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}j7[43]=F7,j7[45]=F7,j7[46]=F7,j7[95]=F7,j7[72]=[F7,M7],j7[104]=[F7,M7],j7[87]=[F7,D7],j7[119]=[F7,D7];const G7={tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function W7(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=i1(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function q7(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Y7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||m1(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(i1(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return m1(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function K7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||m1(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=i1(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return m1(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),w1(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function X7(e,t,n){return e.check(I1,t,e.attempt(G7,t,n))}function Q7(e){e.exit("gfmFootnoteDefinition")}function Z7(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=S1(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=S1(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&J0(i,i.length,0,T1(s,e.slice(r+1,n),t)),J0(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),J0(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class J7{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function eee(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function tee(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?k:s;if(o===k&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):f1(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):g1(t)?w1(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||m1(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,g1(t)?w1(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return g1(t)?w1(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||f1(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return g1(t)?w1(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||f1(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function k(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||f1(n)?(e.exit("tableRow"),t(n)):g1(n)?w1(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||m1(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function nee(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new J7;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(aee(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=ree(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=ree(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],a=ree(p,t,l,s,o,a)):0!==c[1]&&(a=ree(p,t,c,s,o,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&aee(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=eee(t.events,o))}return e}function ree(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},oee(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=oee(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=oee(t.events,n[2]),o=oee(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},oee(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function aee(e,t,n,r,a){const o=[],i=oee(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function oee(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const iee={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return m1(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return f1(r)?t(r):g1(r)?e.check({tokenize:see},t,n)(r):n(r)}}};function see(e,t,n){return w1(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const lee={};function cee(e){const t=e||lee,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return n1([{text:j7},{document:{91:{name:"gfmFootnoteDefinition",tokenize:K7,continuation:{tokenize:X7},exit:Q7}},text:{91:{name:"gfmFootnoteCall",tokenize:Y7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W7,resolveTo:q7}}},Z7(e),{flow:{null:{name:"table",tokenize:tee,resolveAll:nee}}},{text:{91:iee}}])}(t)),a.push([{transforms:[R9],enter:{literalAutolink:S9,literalAutolinkEmail:T9,literalAutolinkHttp:T9,literalAutolinkWww:T9},exit:{literalAutolink:I9,literalAutolinkEmail:N9,literalAutolinkHttp:C9,literalAutolinkWww:A9}},{enter:{gfmFootnoteCallString:D9,gfmFootnoteCall:M9,gfmFootnoteDefinitionLabelString:F9,gfmFootnoteDefinition:j9},exit:{gfmFootnoteCallString:B9,gfmFootnoteCall:H9,gfmFootnoteDefinitionLabelString:z9,gfmFootnoteDefinition:U9}},{canContainEols:["delete"],enter:{strikethrough:Y9},exit:{strikethrough:K9}},{enter:{table:v7,tableData:E7,tableHeader:E7,tableRow:w7},exit:{codeText:_7,table:k7,tableData:x7,tableHeader:x7,tableRow:x7}},{exit:{taskListCheckValueChecked:C7,taskListCheckValueUnchecked:C7,paragraph:A7}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:E9,notInConstruct:_9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:E9,notInConstruct:_9},{character:":",before:"[ps]",after:"\\/",inConstruct:E9,notInConstruct:_9}]},V9(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:q9}],handlers:{delete:X9}},T7(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N7}}]}}(t))}function uee(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=uee(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dee(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=uee(e))&&(r&&(r+=" "),r+=t);return r}var pee,hee,fee,mee,gee,yee,bee,vee=Object.create,kee=Object.defineProperty,wee=Object.defineProperties,xee=Object.getOwnPropertyDescriptor,Eee=Object.getOwnPropertyDescriptors,_ee=Object.getOwnPropertyNames,See=Object.getOwnPropertySymbols,Tee=Object.getPrototypeOf,Cee=Object.prototype.hasOwnProperty,Aee=Object.prototype.propertyIsEnumerable,Nee=(e,t,n)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iee=(e,t)=>{for(var n in t||(t={}))Cee.call(t,n)&&Nee(e,n,t[n]);if(See)for(var n of See(t))Aee.call(t,n)&&Nee(e,n,t[n]);return e},Ree=(e,t)=>wee(e,Eee(t)),Oee=(e,t)=>{var n={};for(var r in e)Cee.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&See)for(var r of See(e))t.indexOf(r)<0&&Aee.call(e,r)&&(n[r]=e[r]);return n},Pee=(pee={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var k=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,k+"g")}for(var w=m.pattern||m,x=s.next,E=u;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof a)){var S,T=1;if(b){if(!(S=o(w,E,e,y))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,N=E;for(N+=x.value.length;C>=N;)N+=(x=x.next).value.length;if(E=N-=x.value.length,x.value instanceof a)continue;for(var I=x;I!==t.tail&&(N<A||"string"==typeof I.value);I=I.next)T++,N+=I.value.length;T--,_=e.slice(E,N),S.index-=E}else if(!(S=o(w,0,_,y)))continue;C=S.index;var R=S[0],O=_.slice(0,C),P=_.slice(C+R.length),L=E+_.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(O&&(D=l(t,D,O),E+=O.length),c(t,D,T),x=l(t,D,new a(p,g?r.tokenize(R,g):R,v,R)),P&&l(t,x,P),T>1){var M={cause:p+","+f,reach:L};i(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return hee||(0,pee[_ee(pee)[0]])((hee={exports:{}}).exports,hee),hee.exports}),Lee=((e,t,n)=>(n=null!=e?vee(Tee(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of _ee(t))Cee.call(e,a)||a===n||kee(e,a,{get:()=>t[a],enumerable:!(r=xee(t,a))||r.enumerable});return e})(e&&e.__esModule?n:kee(n,"default",{value:e,enumerable:!0}),e)))(Pee());Lee.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Lee.languages.markup.tag.inside["attr-value"].inside.entity=Lee.languages.markup.entity,Lee.languages.markup.doctype.inside["internal-subset"].inside=Lee.languages.markup,Lee.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Lee.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Lee.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Lee.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Lee.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Lee.languages.markup.tag,"addAttribute",{value:function(e,t){Lee.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Lee.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Lee.languages.html=Lee.languages.markup,Lee.languages.mathml=Lee.languages.markup,Lee.languages.svg=Lee.languages.markup,Lee.languages.xml=Lee.languages.extend("markup",{}),Lee.languages.ssml=Lee.languages.xml,Lee.languages.atom=Lee.languages.xml,Lee.languages.rss=Lee.languages.xml,fee=Lee,mee={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},yee="(?:[^\\\\-]|"+(gee=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",yee=RegExp(yee+"-"+yee),bee={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},fee.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:yee,inside:{escape:gee,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":mee,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:gee}},"special-escape":mee,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":bee}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:gee,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":bee}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Lee.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Lee.languages.javascript=Lee.languages.extend("clike",{"class-name":[Lee.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Lee.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Lee.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Lee.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Lee.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Lee.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Lee.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Lee.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Lee.languages.markup&&(Lee.languages.markup.tag.addInlined("script","javascript"),Lee.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Lee.languages.js=Lee.languages.javascript,Lee.languages.actionscript=Lee.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Lee.languages.actionscript["class-name"].alias="function",delete Lee.languages.actionscript.parameter,delete Lee.languages.actionscript["literal-property"],Lee.languages.markup&&Lee.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Lee.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Lee),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(Lee),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Lee),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Lee),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Lee),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Lee),Lee.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Lee.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Lee.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(h(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&h(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Lee.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,h,f,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),f=u[i],p=void 0,(h={})["interpolation-punctuation"]=a,3===(h=e.tokenize(f,h)).length&&((p=[1,1]).push.apply(p,s(h[1],e.languages.javascript,"javascript")),h.splice.apply(h,p)),p=new e.Token("interpolation",h,r.alias,f),h=m.substring(g+i.length),f=[],l&&f.push(l),f.push(p),h&&(t(m=[h]),f.push.apply(f,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(f)),o+=f.length-1):y.content=f)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(Lee),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Lee),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Lee),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Lee),Lee.languages.n4js=Lee.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Lee.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Lee.languages.n4jsd=Lee.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Lee),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(Lee),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Lee),Lee.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Lee.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Lee.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Lee),Lee.languages.c=Lee.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Lee.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Lee.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Lee.languages.c.string],char:Lee.languages.c.char,comment:Lee.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Lee.languages.c}}}}),Lee.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Lee.languages.c.boolean,Lee.languages.objectivec=Lee.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Lee.languages.objectivec["class-name"],Lee.languages.objc=Lee.languages.objectivec,Lee.languages.reason=Lee.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Lee.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Lee.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Lee),Lee.languages.go=Lee.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Lee.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Lee.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Lee),Lee.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Lee.languages.python["string-interpolation"].inside.interpolation.inside.rest=Lee.languages.python,Lee.languages.py=Lee.languages.python,Lee.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Lee.languages.webmanifest=Lee.languages.json;var Dee={};((e,t)=>{for(var n in t)kee(e,n,{get:t[n],enumerable:!0})})(Dee,{dracula:()=>Mee,duotoneDark:()=>Fee,duotoneLight:()=>jee,github:()=>Bee,gruvboxMaterialDark:()=>nte,gruvboxMaterialLight:()=>rte,jettwaveDark:()=>Zee,jettwaveLight:()=>Jee,nightOwl:()=>Hee,nightOwlLight:()=>zee,oceanicNext:()=>Vee,okaidia:()=>Gee,oneDark:()=>ete,oneLight:()=>tte,palenight:()=>Wee,shadesOfPurple:()=>qee,synthwave84:()=>Yee,ultramin:()=>Kee,vsDark:()=>Xee,vsLight:()=>Qee});var Mee={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Fee={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},jee={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Bee={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Hee={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},zee={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Uee="#c5a5c5",$ee="#8dc891",Vee={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Uee}},{types:["attr-value"],style:{color:$ee}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:$ee}},{types:["punctuation"],style:{color:$ee}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Uee}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Gee={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Wee={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},qee={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Yee={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Kee={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Xee={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Qee={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Zee={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Jee={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},ete={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},tte={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},nte={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},rte={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},ate=/\r\n|\r|\n/,ote=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},ite=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ste=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=ite(c,u.type),u.alias&&(c=ite(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(ate),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)ote(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return ote(s),l},lte=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Iee(Iee({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=Ree(Iee({},n),{backgroundColor:void 0}),r},cte=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=lte(r,o),s=(e=>K.useCallback((t=>{var n=t,{className:r,style:a,line:o}=n,i=Oee(n,["className","style","line"]);const s=Ree(Iee({},i),{className:dee("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=Iee(Iee({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=K.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return K.useCallback((e=>{var n=e,{token:r,className:a,style:o}=n,i=Oee(n,["token","className","style"]);const s=Ree(Iee({},i),{className:dee("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=Iee(Iee({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>K.useMemo((()=>{if(null==n)return ste([t]);const a={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",a),ste(a.tokens)}),[t,n,r,e]))({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ute=e=>K.createElement(cte,Ree(Iee({},e),{prism:e.prism||Lee,theme:e.theme||Xee,code:e.code,language:e.language}))
70
+ */const Rz={search:"IoSearch",thumbsUp:"LuThumbsUp",thumbsDown:"LuThumbsDown",messageCopy:"LuCopy",messageCopied:"LuCheck",messageRevise:"FiEdit",codeCopy:"LuCopy",codeCopied:"LuCheck",openLinkInNewTab:"LuArrowUpRight",openLinkInSameTab:"LuCornerDownLeft",newLine:"LuCornerDownRight",breadcrumbSeparator:"FaChevronRight",switchToSearch:"IoSearch",switchToChat:"LuSparkles",chatSubmit:"IoSend",close:"IoCloseOutline",info:"IoInformationCircleOutline",command:"LuCommand"};function Oz({iconKey:e,...t}){var n;const r=Rz[e],a=r?{builtIn:r}:{custom:""},{baseSettings:o}=nP(),i=(null==(n=o.customIcons)?void 0:n[e])||a;return qh.jsx(Iz,{"data-icon":e,iconSettings:i,...t})}const Pz=K.createContext(null);function Lz(e){const t=K.useContext(Pz);if(!t)throw new Error(`${e} must be used within Combobox.Root`);return t}function Dz(){const e=K.useContext(Pz);return(null==e?void 0:e.items)??[]}const Mz=K.forwardRef((function(e,t){const{items:n,defaultValue:r,onValueChange:a,multiple:o=!1,placeholder:i,name:s,id:l,disabled:c,required:u,invalid:d=!1,autoFocus:p,className:h,getRootNode:f,children:m}=e,g=K.useId(),y=l??g,[b,v]=K.useState(n),k=K.useMemo((()=>aB({items:b,itemToValue:e=>e.value,itemToString:e=>e.label})),[b]),w=xB(PB(AB,{id:y,collection:k,defaultValue:r??[],onValueChange(e){null==a||a(e.value)},onOpenChange(){v(n)},onInputValueChange({inputValue:e}){const t=n.filter((t=>t.label.toLowerCase().includes(e.toLowerCase())));v(t.length>0?t:[])},multiple:o,selectionBehavior:o?"clear":"replace",placeholder:i,openOnClick:!0,name:s,disabled:c,required:u,invalid:d,autoFocus:p,closeOnSelect:!0,getRootNode:f}),FB),x=K.useMemo((()=>({api:w,invalid:d,items:b})),[w,d,b]);return qh.jsx(Pz.Provider,{value:x,children:qh.jsx("div",{ref:t,...w.getRootProps(),className:h,"data-invalid":d?"":void 0,children:m})})})),Fz=K.forwardRef((function(e,t){const{api:n,invalid:r}=Lz("ComboboxControl"),a=n.getControlProps();return qh.jsx("div",{ref:t,...a,"data-invalid":r?"":void 0,"data-state":n.open?"open":"closed",...e})})),jz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxInput"),r=n.getInputProps(),a=HB(t,r.ref);return qh.jsx("input",{...r,ref:a,"data-part":"input","data-state":n.open?"open":"closed",...e})})),Bz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxTrigger"),r=n.getTriggerProps();return qh.jsx("button",{type:"button",...r,ref:t,"data-part":"trigger","data-state":n.open?"open":"closed","aria-label":"Toggle listbox",...e})})),Hz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxPositioner");return qh.jsx("div",{ref:t,...n.getPositionerProps(),...e})})),zz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxContent"),r=n.getContentProps();return qh.jsx("ul",{ref:t,...r,"data-part":"content","data-state":n.open?"open":"closed",...e})})),Uz=K.forwardRef((function({item:e,...t},n){var r;const{api:a}=Lz("ComboboxItem"),o=a.getItemProps({item:e}),i=null==(r=a.getItemState)?void 0:r.call(a,{item:e});return qh.jsx("li",{ref:n,...o,"data-part":"item","data-value":e.value,"data-highlighted":(null==i?void 0:i.highlighted)?"":void 0,"data-state":(null==i?void 0:i.selected)?"checked":"unchecked",...t})})),$z=K.forwardRef((function(e,t){return qh.jsx("span",{ref:t,"data-part":"item-text",...e})})),Vz=K.forwardRef((function(e,t){const{api:n}=Lz("ComboboxSelectedTags"),r=n.selectedItems??[];return 0===r.length?null:qh.jsx("div",{ref:t,"data-part":"selected-tags",...e,children:r.map((e=>qh.jsxs("span",{"data-part":"tag","data-value":e.value,children:[qh.jsx("span",{"data-part":"tag-text",children:e.label}),qh.jsx("button",{type:"button","data-part":"tag-clear",onClick:t=>{t.preventDefault(),t.stopPropagation(),n.clearValue(e.value)},"aria-label":`Remove ${e.label}`,children:qh.jsx(Iz,{iconSettings:{builtIn:"IoCloseOutline"}})})]},e.value)))})})),Gz=K.forwardRef((function({item:e,children:t,...n},r){var a;const{api:o}=Lz("ComboboxItemIndicator"),i=null==(a=o.getItemState)?void 0:a.call(o,{item:e});return(null==i?void 0:i.selected)?qh.jsx("span",{ref:r,"data-part":"item-indicator","data-state":"checked",...n,children:t??"✓"}):null})),Wz={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:"",combobox:[]};function qz(e){return e?null==e?void 0:e.reduce(((e,t)=>{var n;return"combobox"===t.inputType?e[t.name]="defaultValue"in t&&null!=t.defaultValue?null==(n=t.defaultValue)?[]:Array.isArray(n)?n:""===n?[]:[n]:Wz.combobox:"defaultValue"in t&&t.defaultValue?e[t.name]=t.defaultValue:t.inputType&&(e[t.name]=Wz[t.inputType]),e}),{}):{}}const Yz=K.createContext(void 0);const Kz=({children:e})=>{const t=function(){var e;const[t,n]=K.useState(null),[r,a]=K.useState(null),[o,i]=K.useState(!1),{conversation:s}=iP(),l=iD(),{logEvent:c}=wP(),u=()=>{var e;n(null),a(null),i(!1),"close_modal"===(null==(e=null==t?void 0:t.buttons.close)?void 0:e.action)&&(null==l||l.setOpen(!1))},d=K.useMemo((()=>null==t?void 0:t.fields.map((e=>{const t={...e};return"_type"in e&&"include_chat_session"===e._type&&(t.inputType="checkbox",s.id?(t.isHidden=e.isHidden,t.isRequired=e.isRequired):(t.isHidden=!0,t.isRequired=!1)),t}))),[null==t?void 0:t.fields,s.id]),p=null==d?void 0:d.find((e=>"_type"in e&&"include_chat_session"===e._type)),h=K.useMemo((()=>qz(d)),[d]),{control:f,handleSubmit:m,formState:{errors:g,isSubmitting:y},setError:b,reset:v}=rD({defaultValues:h});K.useEffect((()=>{h&&v(h)}),[v,h]);const k=m((async e=>{const n=s.id&&p&&e[p.name]?s:null;try{if(await(null==t?void 0:t.buttons.submit.onSubmit({values:e,conversation:n})),r){const e="name"in r;c({eventName:"user_escalation_indicated",properties:{escalationType:"support_form",getHelpOptionName:e?null==r?void 0:r.name:void 0,toolCallActionLabel:e||null==r?void 0:r.label,conversation:n||s}})}c({eventName:"ai_chat_form_submitted",properties:{conversation:n||s,values:e}}),i(!0),(null==t?void 0:t.successView)||u()}catch(a){b("root.serverError",{message:a instanceof Error?a.message:"Something went wrong."})}})),w=null==(e=null==g?void 0:g.root)?void 0:e.serverError;return{form:t,openForm:(e,t)=>{n(e),a(t||null)},closeForm:u,handleSubmit:k,isSuccess:o,isSubmitting:y,formError:w,fields:d,errors:g,control:f,defaultValues:h}}();return qh.jsx(Yz.Provider,{value:t,children:e})},Xz=()=>{const e=K.useContext(Yz);if(!e)throw new Error("useChatForm must be used within a ChatFormProvider");return e},Qz=K.createContext(void 0),Zz=({children:e,widget:t})=>qh.jsx(Qz.Provider,{value:t,children:e}),Jz=()=>K.useContext(Qz),eU=e=>{const[t,n]=K.useState(!1);return K.useEffect((()=>{const t=window.matchMedia(e);n(t.matches);const r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}),[e]),t},tU=new TextEncoder;async function nU(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?tU.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const rU={getSolution:async()=>{},prefetchSolution:()=>{},invalidateSolution:()=>{}},aU=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await nU(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.warn("Error solving captcha:",t)}},oU={type:"function",function:{name:"provideLinks",description:"Provides links",parameters:{type:"object",properties:{links:{anyOf:[{type:"array",items:{type:"object",properties:{label:{type:["string","null"]},url:{type:"string"},title:{type:["string","null"]},description:{type:["string","null"]},type:{anyOf:[{anyOf:[{type:"string",enum:["documentation","site","discourse_post","github_issue","github_discussion","stackoverflow_question","discord_forum_post","discord_message","custom_question_answer"]},{type:"string"}]},{type:"null"}]},breadcrumbs:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}]}},required:["url"],additionalProperties:!0}},{type:"null"}]},text:{type:"string"}},required:["text"],additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"},function:e=>e,parse:JSON.parse}},iU=()=>{const{chatId:e,isSharedChat:t,setConversation:n,conversation:r,resetConversation:a}=iP(),{baseSettings:o,aiChatSettings:i}=nP(),{aiApiBaseUrl:s,shouldBypassCaptcha:l,filters:c}=o,u=iD(),{getSolution:d,prefetchSolution:p,invalidateSolution:h}=(({fetchUrl:e,shouldBypassCaptcha:t=!1,shouldMakeInitialRequest:n=!0})=>{if(t)return rU;const r=K.useRef(null),a=K.useCallback((()=>{r.current||(r.current=aU(e))}),[e]),o=K.useCallback((async()=>{let t=await r.current;return t||(r.current=aU(e),t=await r.current),r.current=null,t}),[e]),i=K.useCallback((()=>{r.current=null}),[]);return K.useEffect((()=>{n&&a()}),[a,n]),{getSolution:o,prefetchSolution:a,invalidateSolution:i}})({fetchUrl:`${s}/v1/challenge`,shouldBypassCaptcha:l,shouldMakeInitialRequest:!u||u.isOpen}),f=new fb({baseURL:`${s}/v1`,apiKey:o.apiKey??"",dangerouslyAllowBrowser:!0}),{onInputMessageChange:m,getTools:g,prompts:y,model:b,filters:v,onToolCall:k}=i,[w,x]=K.useState(""),E=K.useRef(null);K.useEffect((()=>{null==m||m(w)}),[w]);const[_,S]=K.useState([]),[T,C]=K.useState(!1),[A,N]=K.useState(!1),[I,R]=K.useState(null),[O,P]=K.useState(null),[L,D]=K.useState([]),[M,F]=K.useState({}),j=K.useRef([]),B=K.useRef(null),{logEvent:H,getLatestConversation:z}=wP(),U=null==y?void 0:y.map(((e,t)=>({id:`system-${Date.now().toString()}-${Zh(4)}-${t}`,role:"system",content:e}))),[$,V]=K.useState(!!e);K.useEffect((()=>{if(e){const{apiKey:t,analyticsApiBaseUrl:r}=o;(async function(e,t,n){try{const r=`${n}/conversations/${e}`,a=await fetch(r,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});if(!a.ok){const e=await a.text();throw new Error(`Failed to get conversation: ${e}`)}return a.json()}catch(I){console.warn("Error in getConversation:",I)}})(e,t,r).then((e=>{if(e){H({eventName:"shared_chat_loaded",properties:{conversation:e}}),V(!1),n({...e});const t=e.messages.map((e=>({...e,content:wH(e.content)})));S(t),j.current=t}}))}}),[e]);const G=e=>{R(e),S((t=>{const n=[...t],r=n[n.length-1];return r&&(r.content=(e=>{var t;return 403===e.status||401===e.status?`There seems to be a configuration error. Please contact ${o.organizationDisplayName??"Administrator"}.`:(null==(t=e.error)?void 0:t.message)??"Hmm.. \n\nIt seems I might be having some issues right now. Please clear the chat and try again."})(e)),n})),C(!1),N(!1),h(),p()},W=!w.trim()&&!L.length||T,q=async(n=w)=>{if(W&&(!n||0===n.trim().length))return;C(!0);const r=O?2===_.length:0===_.length,a=function(e,t,n){if(!e)return;const r=n?xP(e):"",a=CP(t),o={workflow:AP(e),attachments:t};return{context:NP([r,a]),attributes:o}}(O,L,r);let o;const i=CP(L);o=L.length&&i?[{type:"text",text:i}]:n;const s={id:`${Date.now().toString()}-${Zh(4)}-1`,role:"user",content:o,metadata:a},u=[..._.length?[]:U,s];if(t&&e){RP();const e=j.current.map(((e,t)=>({id:`${e.id}-${Zh(6)}-${t}`,role:e.role,..."assistant"===e.role?{links:e.links??[]}:{},content:e.content,metadata:e.metadata,tool_calls:e.tool_calls})));S([...e,...u]),j.current=[...e,...u]}else S((e=>[...e,...u])),j.current=[...j.current,...u];D([]),x(""),H({eventName:"user_message_submitted",properties:{}},j.current);const h=z(),m=[oU,...(null==g?void 0:g({conversation:h}))||[]];try{const e={model:b,messages:j.current,stream:!0,tools:m,tool_choice:"auto"},t=await d(),n=t?btoa(JSON.stringify(t)):null,r=c||v?JSON.stringify({...c,...v}):void 0,a={};!l&&n&&(a["X-INKEEP-CHALLENGE-SOLUTION"]=n),r&&(a["inkeep-filters"]=r);const o=f.beta.chat.completions.stream(e,Object.keys(a).length>0?{headers:a}:void 0),i={id:`${Date.now().toString()}-${Zh(4)}-2`,role:"assistant",content:"",links:[],tool_calls:[]};S((e=>[...e,i])),o.on("content",((e,t)=>{N(!0),i.content=t,S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return-1===n?[...t,i]:(t[n]={...i},t)}))})),o.on("tool_calls.function.arguments.done",(async e=>{var t,n,r,a;const{name:s,arguments:l}=e,c=null==m?void 0:m.find((e=>e.function.name===s));if(!c)return;const u=("parse"in c.function?c.function.parse:JSON.parse)(l),d=null==(n=(t=c.function).function)?void 0:n.call(t,u,o);if("provideLinks"===s)i.links=u.links??[];else{const e=(null==(r=c.renderMessageButtons)?void 0:r.call(c,{args:u,execution:d}))??[];e.length>0&&F((t=>{const n=t[i.id]??[],r=new Set(n.map((e=>e.label))),a=e.filter((e=>!r.has(e.label)));return{...t,[i.id]:[...n,...a]}}))}null==(a=i.tool_calls)||a.push({id:"call_"+Zh(24),type:"function",function:{name:s,arguments:l}}),S((e=>{const t=[...e],n=t.findIndex((e=>e.id===i.id));return t[n]={...i},t})),null==k||k(e,{conversation:{...z(),messages:[...j.current,i]}})})),o.on("error",G),o.finalChatCompletion().then((async()=>{j.current=[...j.current,i],B.current=null,C(!1),N(!1),p(),await H({eventName:"assistant_message_received",properties:{}},j.current),H({eventName:"assistant_answer_displayed",properties:{}})})).catch((e=>{e instanceof Of||console.warn(e)})),B.current=o.controller}catch(y){G(y),C(!1),N(!1)}},Y=()=>{R(null),S([]),j.current=[],a(),F({}),D([]),RP(),P(null),h(),p(),H({eventName:"chat_clear_button_clicked",properties:{conversation:r}})},{openForm:X}=Xz(),Q=Jz();K.useImperativeHandle(i.chatFunctionsRef,(()=>({submitMessage:q,updateInputMessage(e){x(e)},clearChat:Y,openForm:e=>{null==Q||Q.setView("chat"),X(e)},focusInput:()=>{var e;null==(e=E.current)||e.focus()}})));const Z=eU("(max-width: 768px)");return{messages:_,input:w,isLoading:T,isStreaming:A,isLoadingConversation:$,error:I,isSubmitDisabled:W,handleInputChange:e=>{const t=e.target.value;x(t)},handleInputKeyDown:e=>{"Enter"!==e.key||e.shiftKey||W||e.nativeEvent.isComposing||(e.preventDefault(),q())},handleSubmit:q,stop:()=>{B.current&&(B.current.abort(),B.current=null),C(!1),N(!1),p()},clear:Y,handleWorkflow:e=>{P(e);const{initialReplyMessage:t,displayName:n}=e,r={id:_.length.toString()+Zh(4),role:"user",content:n},a={id:(_.length+1).toString()+Zh(4),role:"assistant",content:t,links:[]},o=[{id:`system-${Date.now().toString()}-${Zh(4)}-${e.id}`,role:"system",content:`Company has asked user to follow this guided workflow:\n${xP(e)}`},...U,r,a];S(o),D([])},selectedWorkflow:O,messageAttachments:L,setMessageAttachments:D,addAttachment:e=>{D((t=>[...t,e]))},messageButtons:M,isEmpty:0===_.length,inputRef:E,isMobile:Z}};const sU=K.createContext(void 0);function lU(){const{baseSettings:e}=nP(),{apiKey:t,analyticsApiBaseUrl:n,analyticsProperties:r}=e,[a,o]=K.useState(null),[i,s]=K.useState({}),{conversation:l}=iP(),{messages:c,selectedWorkflow:u}=vG(),{userProperties:d}=mP(),{logEvent:p}=wP(),h=K.useCallback((async(e,a,o=[])=>{const i=await async function(e){try{const{type:t,messageId:n,reasons:r=[],apiKey:a,apiUrl:o,userProperties:i,properties:s}=e,l=`${o}/feedback`,c={type:t,messageId:n,createdAt:(new Date).toISOString(),userProperties:i,properties:s};"negative"===t&&(c.reasons=r);const u=await fetch(l,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(c)});if(!u.ok){const e=await u.text();throw new Error(`Failed to send feedback: ${e}`)}return u.json()}catch(t){console.warn("Error in submitFeedback:",t)}}({type:a,messageId:e,reasons:o,apiKey:t,apiUrl:n,userProperties:d,properties:r});i&&s((t=>({...t,[e]:{type:i.type,reasons:i.reasons}})));const h=c.findIndex((t=>t.id===e)),f=c[h],m={conversationId:l.id,question:AH(c[h-1]),answer:AH(f),messageId:e,reasons:o,workflowId:null==u?void 0:u.id};p({eventName:"positive"===a?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:m}),"negative"===a&&p({eventName:"user_escalation_indicated",properties:{escalationType:"downvote",conversation:l}})}),[c,l]);return{feedback:i,currentFeedback:a,setCurrentFeedback:o,submitPositiveFeedback:K.useCallback((async e=>{h(e,"positive")}),[h]),submitNegativeFeedback:K.useCallback((async(e,t)=>{const n=function(e){const t=[];for(const n in e){"on"===e[n]&&t.push({label:n,details:e[`${n}:description`]||""})}return t.length>0?t:[]}(t);h(e,"negative",n)}),[h])}}const cU=({children:e})=>{const t=lU();return qh.jsx(sU.Provider,{value:t,children:e})},uU=()=>{const e=K.useContext(sU);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function dU(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function hU(...e){return t=>{let n=!1;const r=e.map((e=>{const r=pU(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():pU(e[t],null)}}}}function fU(...e){return K.useCallback(hU(...e),e)}function mU(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>K.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return K.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=K.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=K.useMemo((()=>s),Object.values(s));return qh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=K.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gU(r,...t)]}function gU(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return K.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var yU=K.forwardRef(((e,t)=>{const{children:n,...r}=e,a=K.Children.toArray(n),o=a.find(kU);if(o){const e=o.props.children,n=a.map((t=>t===o?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(bU,{...r,ref:t,children:K.isValidElement(e)?K.cloneElement(e,void 0,n):null})}return qh.jsx(bU,{...r,ref:t,children:n})}));yU.displayName="Slot";var bU=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return K.cloneElement(n,{...wU(r,n.props),ref:t?hU(t,e):e})}return K.Children.count(n)>1?K.Children.only(null):null}));bU.displayName="SlotClone";var vU=({children:e})=>qh.jsx(qh.Fragment,{children:e});function kU(e){return K.isValidElement(e)&&e.type===vU}function wU(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var xU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=K.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?yU:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function EU(e){const t=K.useRef(e);return K.useEffect((()=>{t.current=e})),K.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function _U(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e);K.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var SU,TU="dismissableLayer.update",CU="dismissableLayer.pointerDownOutside",AU="dismissableLayer.focusOutside",NU=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),IU=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(NU),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=fU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){OU(CU,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){OU(AU,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return _U((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(SU=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),RU(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=SU)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),RU())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(TU,e),()=>document.removeEventListener(TU,e)}),[]),qh.jsx(xU.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:dU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:dU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dU(e.onPointerDownCapture,w.onPointerDownCapture)})}));IU.displayName="DismissableLayer";function RU(){const e=new CustomEvent(TU);document.dispatchEvent(e)}function OU(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(NU),r=K.useRef(null),a=fU(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(xU.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var PU=Boolean(null==globalThis?void 0:globalThis.document)?K.useLayoutEffect:()=>{},LU=Q["useId".toString()]||(()=>{}),DU=0;function MU(e){const[t,n]=K.useState(LU());return PU((()=>{n((e=>e??String(DU++)))}),[e]),e||(t?`radix-${t}`:"")}const FU=["top","right","bottom","left"],jU=Math.min,BU=Math.max,HU=Math.round,zU=Math.floor,UU=e=>({x:e,y:e}),$U={left:"right",right:"left",bottom:"top",top:"bottom"},VU={start:"end",end:"start"};function GU(e,t,n){return BU(e,jU(t,n))}function WU(e,t){return"function"==typeof e?e(t):e}function qU(e){return e.split("-")[0]}function YU(e){return e.split("-")[1]}function KU(e){return"x"===e?"y":"x"}function XU(e){return"y"===e?"height":"width"}function QU(e){return["top","bottom"].includes(qU(e))?"y":"x"}function ZU(e){return KU(QU(e))}function JU(e){return e.replace(/start|end/g,(e=>VU[e]))}function e$(e){return e.replace(/left|right|bottom|top/g,(e=>$U[e]))}function t$(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function n$(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function r$(e,t,n){let{reference:r,floating:a}=e;const o=QU(t),i=ZU(t),s=XU(i),l=qU(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-a.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(YU(t)){case"start":h[i]-=p*(n&&c?-1:1);break;case"end":h[i]+=p*(n&&c?-1:1)}return h}async function a$(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=WU(t,e),f=t$(h),m=s[p?"floating"===d?"reference":"floating":d],g=n$(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=n$(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+f.top)/v.y,bottom:(k.bottom-g.bottom+f.bottom)/v.y,left:(g.left-k.left+f.left)/v.x,right:(k.right-g.right+f.right)/v.x}}function o$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function i$(e){return FU.some((t=>e[t]>=0))}function s$(){return"undefined"!=typeof window}function l$(e){return d$(e)?(e.nodeName||"").toLowerCase():"#document"}function c$(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u$(e){var t;return null==(t=(d$(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function d$(e){return!!s$()&&(e instanceof Node||e instanceof c$(e).Node)}function p$(e){return!!s$()&&(e instanceof Element||e instanceof c$(e).Element)}function h$(e){return!!s$()&&(e instanceof HTMLElement||e instanceof c$(e).HTMLElement)}function f$(e){return!(!s$()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof c$(e).ShadowRoot)}function m$(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=w$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function g$(e){return["table","td","th"].includes(l$(e))}function y$(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(fee){return!1}}))}function b$(e){const t=v$(),n=p$(e)?w$(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function v$(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function k$(e){return["html","body","#document"].includes(l$(e))}function w$(e){return c$(e).getComputedStyle(e)}function x$(e){return p$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E$(e){if("html"===l$(e))return e;const t=e.assignedSlot||e.parentNode||f$(e)&&e.host||u$(e);return f$(t)?t.host:t}function _$(e){const t=E$(e);return k$(t)?e.ownerDocument?e.ownerDocument.body:e.body:h$(t)&&m$(t)?t:_$(t)}function S$(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=_$(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=c$(a);if(o){const e=T$(i);return t.concat(i,i.visualViewport||[],m$(a)?a:[],e&&n?S$(e):[])}return t.concat(a,S$(a,[],n))}function T$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function C$(e){const t=w$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=h$(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=HU(n)!==o||HU(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function A$(e){return p$(e)?e:e.contextElement}function N$(e){const t=A$(e);if(!h$(t))return UU(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=C$(t);let i=(o?HU(n.width):n.width)/r,s=(o?HU(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const I$=UU(0);function R$(e){const t=c$(e);return v$()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:I$}function O$(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=A$(e);let i=UU(1);t&&(r?p$(r)&&(i=N$(r)):i=N$(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==c$(e))&&t}(o,n,r)?R$(o):UU(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=c$(o),t=r&&p$(r)?c$(r):r;let n=e,a=T$(n);for(;a&&r&&t!==n;){const e=N$(a),t=a.getBoundingClientRect(),r=w$(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=c$(a),a=T$(n)}}return n$({width:u,height:d,x:l,y:c})}function P$(e,t){const n=x$(e).scrollLeft;return t?t.left+n:O$(u$(e)).left+n}function L$(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:P$(e,r)),y:r.top+t.scrollTop}}function D$(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=c$(e),r=u$(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=v$();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=u$(e),n=x$(e),r=e.ownerDocument.body,a=BU(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=BU(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+P$(e);const s=-n.scrollTop;return"rtl"===w$(r).direction&&(i+=BU(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(u$(e));else if(p$(t))r=function(e,t){const n=O$(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=h$(e)?N$(e):UU(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=R$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return n$(r)}function M$(e,t){const n=E$(e);return!(n===t||!p$(n)||k$(n))&&("fixed"===w$(n).position||M$(n,t))}function F$(e,t,n){const r=h$(t),a=u$(t),o="fixed"===n,i=O$(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=UU(0);if(r||!r&&!o)if(("body"!==l$(t)||m$(a))&&(s=x$(t)),r){const e=O$(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=P$(a));const c=!a||r||o?UU(0):L$(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function j$(e){return"static"===w$(e).position}function B$(e,t){if(!h$(e)||"fixed"===w$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return u$(e)===n&&(n=n.ownerDocument.body),n}function H$(e,t){const n=c$(e);if(y$(e))return n;if(!h$(e)){let t=E$(e);for(;t&&!k$(t);){if(p$(t)&&!j$(t))return t;t=E$(t)}return n}let r=B$(e,t);for(;r&&g$(r)&&j$(r);)r=B$(r,t);return r&&k$(r)&&j$(r)&&!b$(r)?n:r||function(e){let t=E$(e);for(;h$(t)&&!k$(t);){if(b$(t))return t;if(y$(t))return null;t=E$(t)}return null}(e)||n}const z$={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=u$(r),s=!!t&&y$(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=UU(1);const u=UU(0),d=h$(r);if((d||!d&&!o)&&(("body"!==l$(r)||m$(i))&&(l=x$(r)),h$(r))){const e=O$(r);c=N$(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?UU(0):L$(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:u$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?y$(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=S$(e,[],!1).filter((e=>p$(e)&&"body"!==l$(e))),a=null;const o="fixed"===w$(e).position;let i=o?E$(e):e;for(;p$(i)&&!k$(i);){const t=w$(i),n=b$(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||m$(i)&&!n&&M$(e,i))?r=r.filter((e=>e!==i)):a=t,i=E$(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=D$(t,n,a);return e.top=BU(r.top,e.top),e.right=jU(r.right,e.right),e.bottom=jU(r.bottom,e.bottom),e.left=BU(r.left,e.left),e}),D$(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:H$,getElementRects:async function(e){const t=this.getOffsetParent||H$,n=this.getDimensions,r=await n(e.floating);return{reference:F$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=C$(e);return{width:t,height:n}},getScale:N$,isElement:p$,isRTL:function(e){return"rtl"===w$(e).direction}};function U$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $$(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=A$(e),u=a||o?[...c?S$(c):[],...S$(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=u$(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-zU(d)+"px "+-zU(a.clientWidth-(u+p))+"px "+-zU(a.clientHeight-(d+h))+"px "+-zU(u)+"px",threshold:BU(0,jU(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||U$(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(fee){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?O$(e):null;return l&&function t(){const r=O$(e);m&&!U$(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const V$=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=qU(n),s=YU(n),l="y"===QU(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=WU(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},G$=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=WU(e,t),c={x:n,y:r},u=await a$(t,l),d=QU(qU(a)),p=KU(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=GU(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=GU(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},W$=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=WU(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=qU(a),b=QU(s),v=qU(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[e$(s)]:function(e){const t=e$(e);return[JU(e),t,JU(t)]}(s)),x="none"!==f;!p&&x&&w.push(...function(e,t,n,r){const a=YU(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(qU(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(JU)))),o}(s,m,f,k));const E=[s,...w],_=await a$(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&S.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=YU(e),a=ZU(e),o=XU(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=e$(i)),[i,e$(i)]}(a,i,k);S.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:a,overflows:S}],!S.every((e=>e<=0))){var C,A;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=T.filter((e=>{if(x){const t=QU(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},q$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=WU(e,t),u=await a$(t,c),d=qU(a),p=YU(a),h="y"===QU(a),{width:f,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=f-u.left-u.right,k=jU(m-u[g],b),w=jU(f-u[y],v),x=!t.middlewareData.shift;let E=k,_=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!p){const e=BU(u.left,0),t=BU(u.right,0),n=BU(u.top,0),r=BU(u.bottom,0);h?_=f-2*(0!==e||0!==t?e+t:BU(u.left,u.right)):E=m-2*(0!==n||0!==r?n+r:BU(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:E});const S=await i.getDimensions(s.floating);return f!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Y$=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=WU(e,t);switch(r){case"referenceHidden":{const e=o$(await a$(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:i$(e)}}}case"escaped":{const e=o$(await a$(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:i$(e)}}}default:return{}}}}},K$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=WU(e,t)||{};if(null==c)return{};const d=t$(u),p={x:n,y:r},h=ZU(a),f=XU(h),m=await i.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=s.floating[v]||o.floating[f]);const _=k/2-w/2,S=E/2-m[f]/2-1,T=jU(d[y],S),C=jU(d[b],S),A=T,N=E-m[f]-C,I=E/2-m[f]/2+_,R=GU(A,I,N),O=!l.arrow&&null!=YU(a)&&I!==R&&o.reference[f]/2-(I<A?T:C)-m[f]/2<0,P=O?I<A?I-A:I-N:0;return{[h]:p[h]+P,data:{[h]:R,centerOffset:I-R-P,...O&&{alignmentOffset:P}},reset:O}}}),X$=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=WU(e,t),u={x:n,y:r},d=QU(a),p=KU(d);let h=u[p],f=u[d];const m=WU(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(qU(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},Q$=(e,t,n)=>{const r=new Map,a={platform:z$,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=r$(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,h={...h,[n]:{...h[n],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=r$(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:o})};var Z$="undefined"!=typeof document?K.useLayoutEffect:K.useEffect;function J$(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!J$(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!J$(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eV(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tV(e,t){const n=eV(e);return Math.round(t*n)/n}function nV(e){const t=K.useRef(e);return Z$((()=>{t.current=e})),t}function rV(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=K.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=K.useState(r);J$(p,r)||h(r);const[f,m]=K.useState(null),[g,y]=K.useState(null),b=K.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),v=K.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),k=o||f,w=i||g,x=K.useRef(null),E=K.useRef(null),_=K.useRef(u),S=null!=l,T=nV(l),C=nV(a),A=nV(c),N=K.useCallback((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),Q$(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};I.current&&!J$(_.current,t)&&(_.current=t,se.flushSync((()=>{d(t)})))}))}),[p,t,n,C,A]);Z$((()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const I=K.useRef(!1);Z$((()=>(I.current=!0,()=>{I.current=!1})),[]),Z$((()=>{if(k&&(x.current=k),w&&(E.current=w),k&&w){if(T.current)return T.current(k,w,N);N()}}),[k,w,N,T,S]);const R=K.useMemo((()=>({reference:x,floating:E,setReference:b,setFloating:v})),[b,v]),O=K.useMemo((()=>({reference:k,floating:w})),[k,w]),P=K.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=tV(O.floating,u.x),r=tV(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eV(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return K.useMemo((()=>({...u,update:N,refs:R,elements:O,floatingStyles:P})),[u,N,R,O,P])}const aV=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?K$({element:n.current,padding:r}).fn(t):{}:n?K$({element:n,padding:r}).fn(t):{};var a}}),oV=(e,t)=>({...V$(e),options:[e,t]}),iV=(e,t)=>({...G$(e),options:[e,t]}),sV=(e,t)=>({...X$(e),options:[e,t]}),lV=(e,t)=>({...W$(e),options:[e,t]}),cV=(e,t)=>({...q$(e),options:[e,t]}),uV=(e,t)=>({...Y$(e),options:[e,t]}),dV=(e,t)=>({...aV(e),options:[e,t]});var pV=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(xU.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));pV.displayName="Arrow";var hV=pV;function fV(e){const[t,n]=K.useState(void 0);return PU((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var mV="Popper",[gV,yV]=mU(mV),[bV,vV]=gV(mV),kV=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(bV,{scope:t,anchor:r,onAnchorChange:a,children:n})};kV.displayName=mV;var wV="PopperAnchor",xV=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=vV(wV,n),i=K.useRef(null),s=fU(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(xU.div,{...a,ref:s})}));xV.displayName=wV;var EV="PopperContent",[_V,SV]=gV(EV),TV=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=vV(EV,l),[E,_]=K.useState(null),S=fU(t,(e=>_(e))),[T,C]=K.useState(null),A=fV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(IV),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),RV({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=OV(j),$=EU(k);PU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return PU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx(_V,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(xU.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));TV.displayName=EV;var CV="PopperArrow",AV={top:"bottom",right:"left",bottom:"top",left:"right"},NV=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=SV(CV,n),o=AV[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(hV,{...r,ref:t,style:{...r.style,display:"block"}})})}));function IV(e){return null!==e}NV.displayName=CV;var RV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=OV(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function OV(e){const[t,n="center"]=e.split("-");return[t,n]}var PV=kV,LV=xV,DV=TV,MV=NV;var FV=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=K.useState(),r=K.useRef({}),a=K.useRef(e),o=K.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return K.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K.useEffect((()=>{const e=jV(r.current);o.current="mounted"===s?e:"none"}),[s]),PU((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=jV(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),PU((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=jV(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=jV(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:K.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):K.Children.only(n),o=fU(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?K.cloneElement(a,{ref:o}):null};function jV(e){return(null==e?void 0:e.animationName)||"none"}function BV({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=K.useState(e),[r]=n,a=K.useRef(r),o=EU(t);return K.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=EU(n);return[i,K.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}FV.displayName="Presence";var HV=K.forwardRef(((e,t)=>qh.jsx(xU.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));HV.displayName="VisuallyHidden";var zV=HV,[UV,$V]=mU("Tooltip",[yV]),VV=yV(),GV="TooltipProvider",WV=700,qV="tooltip.open",[YV,KV]=UV(GV),XV=e=>{const{__scopeTooltip:t,delayDuration:n=WV,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,[i,s]=K.useState(!0),l=K.useRef(!1),c=K.useRef(0);return K.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),qh.jsx(YV,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:K.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:K.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:K.useCallback((e=>{l.current=e}),[]),disableHoverableContent:a,children:o})};XV.displayName=GV;var QV="Tooltip",[ZV,JV]=UV(QV),eG=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=KV(QV,e.__scopeTooltip),c=VV(t),[u,d]=K.useState(null),p=MU(),h=K.useRef(0),f=i??l.disableHoverableContent,m=s??l.delayDuration,g=K.useRef(!1),[y=!1,b]=BV({prop:r,defaultProp:a,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(qV))):l.onClose(),null==o||o(e)}}),v=K.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),k=K.useCallback((()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)}),[b]),w=K.useCallback((()=>{window.clearTimeout(h.current),h.current=0,b(!1)}),[b]),x=K.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{g.current=!0,b(!0),h.current=0}),m)}),[m,b]);return K.useEffect((()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)}),[]),qh.jsx(PV,{...c,children:qh.jsx(ZV,{scope:t,contentId:p,open:y,stateAttribute:v,trigger:u,onTriggerChange:d,onTriggerEnter:K.useCallback((()=>{l.isOpenDelayed?x():k()}),[l.isOpenDelayed,x,k]),onTriggerLeave:K.useCallback((()=>{f?w():(window.clearTimeout(h.current),h.current=0)}),[w,f]),onOpen:k,onClose:w,disableHoverableContent:f,children:n})})};eG.displayName=QV;var tG="TooltipTrigger",nG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=JV(tG,n),o=KV(tG,n),i=VV(n),s=fU(t,K.useRef(null),a.onTriggerChange),l=K.useRef(!1),c=K.useRef(!1),u=K.useCallback((()=>l.current=!1),[]);return K.useEffect((()=>()=>document.removeEventListener("pointerup",u)),[u]),qh.jsx(LV,{asChild:!0,...i,children:qh.jsx(xU.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:s,onPointerMove:dU(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0))})),onPointerLeave:dU(e.onPointerLeave,(()=>{a.onTriggerLeave(),c.current=!1})),onPointerDown:dU(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:dU(e.onFocus,(()=>{l.current||a.onOpen()})),onBlur:dU(e.onBlur,a.onClose),onClick:dU(e.onClick,a.onClose)})})}));nG.displayName=tG;var[rG,aG]=UV("TooltipPortal",{forceMount:void 0}),oG="TooltipContent",iG=K.forwardRef(((e,t)=>{const n=aG(oG,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=JV(oG,e.__scopeTooltip);return qh.jsx(FV,{present:r||i.open,children:i.disableHoverableContent?qh.jsx(uG,{side:a,...o,ref:t}):qh.jsx(sG,{side:a,...o,ref:t})})})),sG=K.forwardRef(((e,t)=>{const n=JV(oG,e.__scopeTooltip),r=KV(oG,e.__scopeTooltip),a=K.useRef(null),o=fU(t,a),[i,s]=K.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=K.useCallback((()=>{s(null),d(!1)}),[d]),h=K.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},a=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...a,...function(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}(t.getBoundingClientRect())]);s(o),d(!0)}),[d]);return K.useEffect((()=>()=>p()),[p]),K.useEffect((()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[l,u,h,p]),K.useEffect((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),a=!function(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o].x,s=t[o].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(a=!a)}return a}(n,i);r?p():a&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,u,i,c,p]),qh.jsx(uG,{...e,ref:o})})),[lG,cG]=UV(QV,{isInside:!1}),uG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=JV(oG,n),c=VV(n),{onClose:u}=l;return K.useEffect((()=>(document.addEventListener(qV,u),()=>document.removeEventListener(qV,u))),[u]),K.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,u]),qh.jsx(IU,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:qh.jsxs(DV,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[qh.jsx(vU,{children:r}),qh.jsx(lG,{scope:n,isInside:!0,children:qh.jsx(zV,{id:l.contentId,role:"tooltip",children:a||r})})]})})}));iG.displayName=oG;var dG="TooltipArrow",pG=K.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=VV(n);return cG(dG,n).isInside?null:qh.jsx(MV,{...a,...r,ref:t})}));pG.displayName=dG;var hG=XV,fG=nG,mG=iG,gG=pG;const yG=K.createContext(void 0),bG=({children:e,...t})=>{const n=iU();return qh.jsx(yG.Provider,{value:{...n,...t},children:qh.jsx(cU,{children:qh.jsx(hG,{children:e})})})},vG=()=>{const e=K.useContext(yG);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},kG=K.createContext(void 0);function wG({children:e}){const t=function(){var e;const[t,n]=K.useState(null),{value:r,setTrue:a,setFalse:o}=Qh(!1),[i,s]=K.useState({title:"",content:""}),[l,c]=K.useState({title:void 0,content:void 0}),{addAttachment:u}=vG(),d={data:i,errors:l,labels:{title:(null==(e=null==t?void 0:t.workflowModalProps)?void 0:e.titleInputLabel)||"Title",content:(null==t?void 0:t.contentType.contentInputLabel)||"Content"},validate(){const e={};return i.title.trim()||(e.title=`${d.labels.title} is required`),i.content.trim()||(e.content=`${d.labels.content} is required`),e},onChange(e){const{name:t,value:n}=e.target;s((e=>({...e,[t]:n})))},onSubmit(e){if(e.preventDefault(),!(null==t?void 0:t.contentType))return;const n=d.validate();if(Object.values(n).some((e=>!!e)))return void c(n);const r={...i,id:Zh(),contentType:t.contentType};u(r),o(),s({title:"",content:""}),c({title:void 0,content:void 0})}};return{selectedInput:t,selectInput:n,isOpen:r,onOpen:a,onClose:o,form:d}}();return qh.jsx(kG.Provider,{value:t,children:e})}const xG=()=>{const e=K.useContext(kG);if(!e)throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");return e},EG=K.createContext(void 0),_G=({children:e,name:t})=>{const n=K.useRef(null);return qh.jsx(EG.Provider,{value:{name:t,focusItem:n},children:e})},SG=()=>{const e=K.useContext(EG);if(!e)throw new Error("useFeedbackItem must be used within a FeedbackItemProvider");return e},TG=K.createContext(void 0),CG=({children:e,field:t,fieldProps:n,autoFocus:r})=>{const{errors:a}=Xz(),o=a[t.name];return qh.jsx(TG.Provider,{value:{field:t,fieldProps:n,error:o,autoFocus:r},children:e})},AG=()=>{const e=K.useContext(TG);if(!e)throw new Error("useFormField must be used within a FormFieldProvider");return e},NG=K.createContext(void 0);const IG=({children:e,value:t})=>qh.jsx(NG.Provider,{value:t,children:e}),RG=K.createContext(void 0);function OG({children:e}){const[t,n]=X.useState(null),{value:r,setTrue:a,setFalse:o}=Qh(!1);return qh.jsx(RG.Provider,{value:{selectedItem:t,selectItem:n,isOpen:r,onOpen:a,onClose:o},children:e})}const PG=()=>{const e=K.useContext(RG);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e},LG=K.createContext(void 0),DG=({children:e,message:t})=>qh.jsx(LG.Provider,{value:{message:t},children:e}),MG=()=>{const e=K.useContext(LG);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},FG=["light","dark"],jG="(prefers-color-scheme: dark)",BG="undefined"==typeof window,HG=K.createContext(void 0),zG={setColorMode:e=>{},colorModes:[]};function UG(e,t){const n=K.useContext(HG)??zG;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const $G=e=>(K.useContext(HG),qh.jsx(GG,{...e})),VG=["light","dark"],GG=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=VG,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[h,f]=K.useState((()=>qG(a,i))),[m,g]=K.useState((()=>qG(a))),y=l?Object.values(l):o,b=K.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=KG());const c=l?l[o]:o,u=t?YG():null,h=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),f=h?h.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(f.classList.remove(...y),c&&f.classList.add(c)):c?f.setAttribute(s,c):f.removeAttribute(s),r){const e=FG.includes(i)?i:null,t=FG.includes(o)?o:e;f.style.colorScheme=t}null==u||u()}),[]),v=K.useCallback((e=>{f(e);try{localStorage.setItem(a,e)}catch(fee){}}),[e]),k=K.useCallback((t=>{const r=KG(t);g(r),"system"===h&&n&&!e&&b("system")}),[h,e]);K.useEffect((()=>{const e=window.matchMedia(jG);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),K.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),K.useEffect((()=>{b(e??h)}),[e,h]);const w=K.useMemo((()=>({colorMode:h,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===h?m:h,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[h,v,e,m,n,o]);return qh.jsxs(HG.Provider,{value:w,children:[qh.jsx(WG,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},WG=K.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),h=(()=>{if(!a)return"";return(FG.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),f=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&FG.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${f(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${jG}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${d?"":`else{${f(o,!1,!1)}}`}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return qh.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),qG=(e,t)=>{if(BG)return;let n;try{n=localStorage.getItem(e)||void 0}catch(fee){}return n||t},YG=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},KG=e=>{e||(e=window.matchMedia(jG));return e.matches?"dark":"light"};var XG=Object.prototype.hasOwnProperty;function QG(e,t,n){for(n of e.keys())if(ZG(n,t))return n}function ZG(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ZG(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=QG(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=QG(t,a)))return!1;if(!ZG(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(XG.call(e,n)&&++r&&!XG.call(t,n))return!1;if(!(n in t)||!ZG(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function JG(){const{baseSettings:e}=nP(),[t,n]=K.useState([]),r=function(e){const t=K.useRef(void 0);ZG(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=K.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??ef("link_")))),o=e.map((e=>{const t=e.key??ef("stylesheet_");return qh.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:qh.jsxs(qh.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const eW=({children:e})=>{const{baseSettings:t}=nP(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{disableLoadingDefaultFont:c,fontFamily:u,fontSize:d,spacing:p,borderRadius:h,zIndex:f}=n,m=Cx(s,r),g=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=Nx[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").replace(/\./g,"_").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:Ph(n.colors,m),fontFamily:u,fontSize:d,spacing:p,borderRadius:h,zIndex:f}),{customStyles:y,loaded:b}=JG(),{sync:v,forcedColorMode:k,...w}=i??{},[x,E]=K.useState(),_=K.useRef(null);return K.useEffect((()=>{var e,t;if(!(null==v?void 0:v.target))return;const n="string"==typeof v.target?document.querySelector(v.target):v.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,v.attributes),o=(null==(e=v.isDarkMode)?void 0:e.call(v,a))?"dark":"light";null==(t=v.onChange)||t.call(v,o),E(o)}));a.observe(n,{attributes:!0,attributeFilter:v.attributes,childList:!1,subtree:!1}),_.current=a;const o=(null==(e=v.isDarkMode)?void 0:e.call(v,r(n,null==v?void 0:v.attributes)))?"dark":"light";return null==(t=v.onChange)||t.call(v,o),E(o),()=>a.disconnect()}),[v]),qh.jsxs(qh.Fragment,{children:[!c&&qh.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n "}}),y,b&&qh.jsx($G,{forcedColorMode:k??x,...w,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:qh.jsx("div",{className:l,style:{display:"contents",...g},children:e})})]})};function tW(e){const{children:t,config:n,componentType:r}=e;return qh.jsx(tP,{value:{...n,componentType:r},children:qh.jsx(eW,{children:qh.jsx(fP,{children:qh.jsx(yP,{children:t})})})})}const nW=K.createContext(void 0),rW=({children:e,source:t})=>qh.jsx(nW.Provider,{value:{source:t},children:e}),aW=()=>{const e=K.useContext(nW);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function oW(e){const t=K.useRef(e);return K.useEffect((()=>{t.current=e})),K.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function iW({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=K.useState(e),[r]=n,a=K.useRef(r),o=oW(t);return K.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=oW(n);return[i,K.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}const sW=K.createContext(void 0),lW=({children:e,value:t})=>qh.jsx(sW.Provider,{value:t,children:e}),cW=()=>{const e=K.useContext(sW);if(!e)throw new Error("useSidebarChat must be used within a SidebarChatProvider");return e};var uW=K.useLayoutEffect,dW=function(e,t){"function"!=typeof e?e.current=t:e(t)},pW={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},hW=function(e){Object.keys(pW).forEach((function(t){e.style.setProperty(t,pW[t],"important")}))},fW=null,mW=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var gW=function(){},yW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],bW=!!document.documentElement.currentStyle,vW=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,yW.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(bW&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function kW(e,t,n){var r,a,o=(r=n,a=X.useRef(r),uW((function(){a.current=r})),a);K.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var wW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],xW=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?gW:o,s=e.onHeightChange,l=void 0===s?gW:s,c=zB(e,wW),u=void 0!==c.value,d=K.useRef(null),p=function(e,t){var n=X.useRef();return X.useCallback((function(r){e.current=r,n.current&&dW(n.current,null),n.current=t,t&&dW(t,r)}),[t])}(d,t),h=K.useRef(0),f=K.useRef(),m=function(){var e=d.current,t=n&&f.current?f.current:vW(e);if(t){f.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),fW||((fW=document.createElement("textarea")).setAttribute("tabindex","-1"),fW.setAttribute("aria-hidden","true"),hW(fW)),null===fW.parentNode&&document.body.appendChild(fW);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;fW.style[t]=i[t]})),hW(fW),fW.value=t;var l=mW(fW,e);fW.value=t,l=mW(fW,e),fW.value="x";var c=fW.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];h.current!==i&&(h.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return K.useLayoutEffect(m),function(e,t){kW(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),kW(window,"resize",m),function(e){kW(document.fonts,"loadingdone",e)}(m),K.createElement("textarea",UB({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},EW=K.forwardRef(xW),_W="Avatar",[SW,TW]=mU(_W),[CW,AW]=SW(_W),NW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,o]=K.useState("idle");return qh.jsx(CW,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:qh.jsx(xU.span,{...r,ref:t})})}));NW.displayName=_W;var IW="AvatarImage",RW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...o}=e,i=AW(IW,n),s=function(e,t){const[n,r]=K.useState("idle");return PU((()=>{if(!e)return void r("error");let n=!0;const a=new window.Image,o=e=>()=>{n&&r(e)};return r("loading"),a.onload=o("loaded"),a.onerror=o("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{n=!1}}),[e,t]),n}(r,o.referrerPolicy),l=EU((e=>{a(e),i.onImageLoadingStatusChange(e)}));return PU((()=>{"idle"!==s&&l(s)}),[s,l]),"loaded"===s?qh.jsx(xU.img,{...o,ref:t,src:r}):null}));RW.displayName=IW;var OW="AvatarFallback",PW=K.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,o=AW(OW,n),[i,s]=K.useState(void 0===r);return K.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>s(!0)),r);return()=>window.clearTimeout(e)}}),[r]),i&&"loaded"!==o.imageLoadingStatus?qh.jsx(xU.span,{...a,ref:t}):null}));PW.displayName=OW;var LW=NW,DW=RW,MW=PW;var FW="Checkbox",[jW,BW]=mU(FW),[HW,zW]=jW(FW),UW=K.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,h]=K.useState(null),f=fU(t,(e=>h(e))),m=K.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=BV({prop:a,defaultProp:o,onChange:c}),v=K.useRef(y);return K.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),qh.jsxs(HW,{scope:n,state:y,disabled:s,children:[qh.jsx(xU.button,{type:"button",role:"checkbox","aria-checked":WW(y)?"mixed":y,"aria-required":i,"data-state":qW(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:f,onKeyDown:dU(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:dU(e.onClick,(e=>{b((e=>!!WW(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&qh.jsx(GW,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!WW(o)&&o})]})}));UW.displayName=FW;var $W="CheckboxIndicator",VW=K.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=zW($W,n);return qh.jsx(FV,{present:r||WW(o.state)||!0===o.state,children:qh.jsx(xU.span,{"data-state":qW(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));VW.displayName=$W;var GW=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=K.useRef(null),s=function(e){const t=K.useRef({value:e,previous:e});return K.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),l=fV(t);K.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=WW(n),a.call(e,!WW(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=K.useRef(!WW(n)&&n);return qh.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function WW(e){return"indeterminate"===e}function qW(e){return WW(e)?"indeterminate":e?"checked":"unchecked"}var YW=UW,KW=VW,XW=K.forwardRef(((e,t)=>{const{children:n,...r}=e,a=K.Children.toArray(n),o=a.find(JW);if(o){const e=o.props.children,n=a.map((t=>t===o?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(QW,{...r,ref:t,children:K.isValidElement(e)?K.cloneElement(e,void 0,n):null})}return qh.jsx(QW,{...r,ref:t,children:n})}));XW.displayName="Slot";var QW=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?hU(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));QW.displayName="SlotClone";var ZW=({children:e})=>qh.jsx(qh.Fragment,{children:e});function JW(e){return K.isValidElement(e)&&e.type===ZW}var eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=K.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?XW:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});var tq,nq="dismissableLayer.update",rq="dismissableLayer.pointerDownOutside",aq="dismissableLayer.focusOutside",oq=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iq=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(oq),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=fU(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){lq(rq,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=EU(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){lq(aq,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return _U((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(tq=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),sq(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=tq)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),sq())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(nq,e),()=>document.removeEventListener(nq,e)}),[]),qh.jsx(eq.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:dU(e.onFocusCapture,x.onFocusCapture),onBlurCapture:dU(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dU(e.onPointerDownCapture,w.onPointerDownCapture)})}));iq.displayName="DismissableLayer";function sq(){const e=new CustomEvent(nq);document.dispatchEvent(e)}function lq(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(oq),r=K.useRef(null),a=fU(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(eq.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var cq=0;function uq(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dq="focusScope.autoFocusOnMount",pq="focusScope.autoFocusOnUnmount",hq={bubbles:!1,cancelable:!0},fq=K.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=K.useState(null),c=EU(a),u=EU(o),d=K.useRef(null),p=fU(t,(e=>l(e))),h=K.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:bq(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||bq(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bq(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),K.useEffect((()=>{if(s){vq.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(dq,hq);s.addEventListener(dq,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bq(r,{select:t}),document.activeElement!==n)return}((e=mq(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bq(s))}return()=>{s.removeEventListener(dq,c),setTimeout((()=>{const e=new CustomEvent(pq,hq);s.addEventListener(pq,u),s.dispatchEvent(e),e.defaultPrevented||bq(t??document.body,{select:!0}),s.removeEventListener(pq,u),vq.remove(h)}),0)}}var e}),[s,c,u,h]);const f=K.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=mq(e),n=gq(t,e),r=gq(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&bq(o,{select:!0})):(e.preventDefault(),n&&bq(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return qh.jsx(eq.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function mq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gq(e,t){for(const n of e)if(!yq(n,{upTo:t}))return n}function yq(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bq(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}fq.displayName="FocusScope";var vq=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=kq(e,t),e.unshift(t)},remove(t){var n;e=kq(e,t),null==(n=e[0])||n.resume()}}}();function kq(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var wq=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(eq.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));wq.displayName="Arrow";var xq=wq,Eq="Popper",[_q,Sq]=mU(Eq),[Tq,Cq]=_q(Eq),Aq=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(Tq,{scope:t,anchor:r,onAnchorChange:a,children:n})};Aq.displayName=Eq;var Nq="PopperAnchor",Iq=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=Cq(Nq,n),i=K.useRef(null),s=fU(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(eq.div,{...a,ref:s})}));Iq.displayName=Nq;var Rq="PopperContent",[Oq,Pq]=_q(Rq),Lq=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=Cq(Rq,l),[E,_]=K.useState(null),S=fU(t,(e=>_(e))),[T,C]=K.useState(null),A=fV(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(jq),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),Bq({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=Hq(j),$=EU(k);PU((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return PU((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx(Oq,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(eq.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));Lq.displayName=Rq;var Dq="PopperArrow",Mq={top:"bottom",right:"left",bottom:"top",left:"right"},Fq=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=Pq(Dq,n),o=Mq[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(xq,{...r,ref:t,style:{...r.style,display:"block"}})})}));function jq(e){return null!==e}Fq.displayName=Dq;var Bq=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=Hq(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function Hq(e){const[t,n="center"]=e.split("-");return[t,n]}var zq=Aq,Uq=Iq,$q=Lq,Vq=Fq,Gq=new WeakMap,Wq=new WeakMap,qq={},Yq=0,Kq=function(e){return e&&(e.host||Kq(e.parentNode))},Xq=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Kq(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);qq[n]||(qq[n]=new WeakMap);var o=qq[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(Gq.get(e)||0)+1,c=(o.get(e)||0)+1;Gq.set(e,l),o.set(e,c),i.push(e),1===l&&a&&Wq.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(fee){console.error("aria-hidden: cannot operate on ",e,fee)}}))};return u(t),s.clear(),Yq++,function(){i.forEach((function(e){var t=Gq.get(e)-1,a=o.get(e)-1;Gq.set(e,t),o.set(e,a),t||(Wq.has(e)||e.removeAttribute(r),Wq.delete(e)),a||e.removeAttribute(n)})),--Yq||(Gq=new WeakMap,Gq=new WeakMap,Wq=new WeakMap,qq={})}},Qq=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),Xq(r,a,n,"aria-hidden")):function(){return null}},Zq="right-scroll-bar-position",Jq="width-before-scroll-bar";function eY(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tY="undefined"!=typeof window?K.useLayoutEffect:K.useEffect,nY=new WeakMap;function rY(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return eY(e,t)}))},(a=K.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return tY((function(){var t=nY.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||eY(e,null)})),r.forEach((function(e){n.has(e)||eY(e,a)}))}nY.set(o,e)}),[e]),o}function aY(e){return e}var oY=function(e){var t=e.sideCar,n=GB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return K.createElement(r,VB({},n))};oY.isSideCarExport=!0;var iY=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=aY);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=VB({async:!0,ssr:!1},e),t}(),sY=function(){},lY=K.forwardRef((function(e,t){var n=K.useRef(null),r=K.useState({onScrollCapture:sY,onWheelCapture:sY,onTouchMoveCapture:sY}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,k=GB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=rY([n,t]),E=VB(VB({},k),a);return K.createElement(K.Fragment,null,u&&K.createElement(w,{sideCar:iY,removeScrollBar:c,shards:d,noRelative:h,noIsolation:f,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),i?K.cloneElement(K.Children.only(s),VB(VB({},E),{ref:x})):K.createElement(b,VB({},E,{className:l,ref:x}),s))}));lY.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lY.classNames={fullWidth:Jq,zeroRight:Zq};function cY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var uY=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=cY())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dY=function(){var e,t=(e=uY(),function(t,n){K.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},pY={left:0,top:0,right:0,gap:0},hY=function(e){return parseInt(e||"",10)||0},fY=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pY;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[hY(n),hY(r),hY(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mY=dY(),gY="data-scroll-locked",yY=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(gY,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Zq," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jq," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zq," .").concat(Zq," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Jq," .").concat(Jq," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},bY=function(){var e=parseInt(document.body.getAttribute(gY)||"0",10);return isFinite(e)?e:0},vY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;K.useEffect((function(){return document.body.setAttribute(gY,(bY()+1).toString()),function(){var e=bY()-1;e<=0?document.body.removeAttribute(gY):document.body.setAttribute(gY,e.toString())}}),[]);var o=K.useMemo((function(){return fY(a)}),[a]);return K.createElement(mY,{styles:yY(o,!t,a,n?"":"!important")})},kY=!1;if("undefined"!=typeof window)try{var wY=Object.defineProperty({},"passive",{get:function(){return kY=!0,!0}});window.addEventListener("test",wY,wY),window.removeEventListener("test",wY,wY)}catch(uEe){kY=!1}var xY=!!kY&&{passive:!1},EY=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_Y=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),SY(e,r)){var a=TY(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},SY=function(e,t){return"v"===e?function(e){return EY(e,"overflowY")}(t):function(e){return EY(e,"overflowX")}(t)},TY=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},CY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},AY=function(e){return[e.deltaX,e.deltaY]},NY=function(e){return e&&"current"in e?e.current:e},IY=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},RY=0,OY=[];function PY(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const LY=(DY=function(e){var t=K.useRef([]),n=K.useRef([0,0]),r=K.useRef(),a=K.useState(RY++)[0],o=K.useState(dY)[0],i=K.useRef(e);K.useEffect((function(){i.current=e}),[e]),K.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=WB([e.lockRef.current],(e.shards||[]).map(NY),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=K.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=CY(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=_Y(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=_Y(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var h=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{if(!i)break;var p=TY(e,i),h=p[0],f=p[1]-p[2]-a*h;(h||f)&&SY(e,i)&&(u+=f,d+=h);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)}),[]),l=K.useCallback((function(e){var n=e;if(OY.length&&OY[OY.length-1]===o){var r="deltaY"in n?AY(n):CY(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(NY).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=K.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:PY(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=K.useCallback((function(e){n.current=CY(e),r.current=void 0}),[]),d=K.useCallback((function(t){c(t.type,AY(t),t.target,s(t,e.lockRef.current))}),[]),p=K.useCallback((function(t){c(t.type,CY(t),t.target,s(t,e.lockRef.current))}),[]);K.useEffect((function(){return OY.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,xY),document.addEventListener("touchmove",l,xY),document.addEventListener("touchstart",u,xY),function(){OY=OY.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,xY),document.removeEventListener("touchmove",l,xY),document.removeEventListener("touchstart",u,xY)}}),[]);var h=e.removeScrollBar,f=e.inert;return K.createElement(K.Fragment,null,f?K.createElement(o,{styles:IY(a)}):null,h?K.createElement(vY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},iY.useMedium(DY),oY);var DY,MY=K.forwardRef((function(e,t){return K.createElement(lY,VB({},e,{ref:t,sideCar:LY}))}));MY.classNames=lY.classNames;var FY="Popover",[jY,BY]=mU(FY,[Sq]),HY=Sq(),[zY,UY]=jY(FY),$Y=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=HY(t),l=K.useRef(null),[c,u]=K.useState(!1),[d=!1,p]=BV({prop:r,defaultProp:a,onChange:o});return qh.jsx(zq,{...s,children:qh.jsx(zY,{scope:t,contentId:MU(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:K.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:K.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:K.useCallback((()=>u(!1)),[]),modal:i,children:n})})};$Y.displayName=FY;var VY="PopoverAnchor";K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(VY,n),o=HY(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return K.useEffect((()=>(i(),()=>s())),[i,s]),qh.jsx(Uq,{...o,...r,ref:t})})).displayName=VY;var GY="PopoverTrigger",WY=K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(GY,n),o=HY(n),i=fU(t,a.triggerRef),s=qh.jsx(eq.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":nK(a.open),...r,ref:i,onClick:dU(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:qh.jsx(Uq,{asChild:!0,...o,children:s})}));WY.displayName=GY;var[qY,YY]=jY("PopoverPortal",{forceMount:void 0}),KY="PopoverContent",XY=K.forwardRef(((e,t)=>{const n=YY(KY,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=UY(KY,e.__scopePopover);return qh.jsx(FV,{present:r||o.open,children:o.modal?qh.jsx(QY,{...a,ref:t}):qh.jsx(ZY,{...a,ref:t})})}));XY.displayName=KY;var QY=K.forwardRef(((e,t)=>{const n=UY(KY,e.__scopePopover),r=K.useRef(null),a=fU(t,r),o=K.useRef(!1);return K.useEffect((()=>{const e=r.current;if(e)return Qq(e)}),[]),qh.jsx(MY,{as:XW,allowPinchZoom:!0,children:qh.jsx(JY,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dU(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:dU(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:dU(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),ZY=K.forwardRef(((e,t)=>{const n=UY(KY,e.__scopePopover),r=K.useRef(!1),a=K.useRef(!1);return qh.jsx(JY,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),JY=K.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=UY(KY,n),h=HY(n);return K.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??uq()),document.body.insertAdjacentElement("beforeend",e[1]??uq()),cq++,()=>{1===cq&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),cq--}}),[]),qh.jsx(fq,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:qh.jsx(iq,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:qh.jsx($q,{"data-state":nK(p.open),role:"dialog",id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),eK="PopoverClose";K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=UY(eK,n);return qh.jsx(eq.button,{type:"button",...r,ref:t,onClick:dU(e.onClick,(()=>a.onOpenChange(!1)))})})).displayName=eK;var tK=K.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,a=HY(n);return qh.jsx(Vq,{...a,...r,ref:t})}));function nK(e){return e?"open":"closed"}tK.displayName="PopoverArrow";var rK=$Y,aK=WY,oK=XY,iK=tK,sK=K.createContext(void 0);var lK="ScrollArea",[cK,uK]=mU(lK),[dK,pK]=cK(lK),hK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=K.useState(null),[c,u]=K.useState(null),[d,p]=K.useState(null),[h,f]=K.useState(null),[m,g]=K.useState(null),[y,b]=K.useState(0),[v,k]=K.useState(0),[w,x]=K.useState(!1),[E,_]=K.useState(!1),S=fU(t,(e=>l(e))),T=function(e){const t=K.useContext(sK);return e||t||"ltr"}(a);return qh.jsx(dK,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:h,onScrollbarXChange:f,scrollbarXEnabled:w,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:k,children:qh.jsx(xU.div,{dir:T,...i,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));hK.displayName=lK;var fK="ScrollAreaViewport",mK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=pK(fK,n),s=fU(t,K.useRef(null),i.onViewportChange);return qh.jsxs(qh.Fragment,{children:[qh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),qh.jsx(xU.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:qh.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));mK.displayName=fK;var gK="ScrollAreaScrollbar",yK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return K.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?qh.jsx(bK,{...r,ref:t,forceMount:n}):"scroll"===a.type?qh.jsx(vK,{...r,ref:t,forceMount:n}):"auto"===a.type?qh.jsx(kK,{...r,ref:t,forceMount:n}):"always"===a.type?qh.jsx(wK,{...r,ref:t}):null}));yK.displayName=gK;var bK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),[o,i]=K.useState(!1);return K.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),qh.jsx(FV,{present:n||o,children:qh.jsx(kK,{"data-state":o?"visible":"hidden",...r,ref:t})})})),vK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=pK(gK,e.__scopeScrollArea),o="horizontal"===e.orientation,i=HK((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},K.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return K.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),K.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),qh.jsx(FV,{present:n||"hidden"!==s,children:qh.jsx(wK,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:dU(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:dU(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),kK=K.forwardRef(((e,t)=>{const n=pK(gK,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=K.useState(!1),s="horizontal"===e.orientation,l=HK((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return zK(n.viewport,l),zK(n.content,l),qh.jsx(FV,{present:r||o,children:qh.jsx(wK,{"data-state":o?"visible":"hidden",...a,ref:t})})})),wK=K.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=pK(gK,e.__scopeScrollArea),o=K.useRef(null),i=K.useRef(0),[s,l]=K.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=LK(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=DK(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return FK([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?qh.jsx(xK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=MK(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?qh.jsx(EK,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=MK(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),xK=K.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=pK(gK,e.__scopeScrollArea),[i,s]=K.useState(),l=K.useRef(null),c=fU(t,l,o.onScrollbarXChange);return K.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),qh.jsx(TK,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":DK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),jK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:PK(i.paddingLeft),paddingEnd:PK(i.paddingRight)}})}})})),EK=K.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=pK(gK,e.__scopeScrollArea),[i,s]=K.useState(),l=K.useRef(null),c=fU(t,l,o.onScrollbarYChange);return K.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),qh.jsx(TK,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":DK(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),jK(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:PK(i.paddingTop),paddingEnd:PK(i.paddingBottom)}})}})})),[_K,SK]=cK(gK),TK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,h=pK(gK,n),[f,m]=K.useState(null),g=fU(t,(e=>m(e))),y=K.useRef(null),b=K.useRef(""),v=h.viewport,k=r.content-r.viewport,w=EU(u),x=EU(l),E=HK(d,10);function _(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return K.useEffect((()=>{const e=e=>{const t=e.target;(null==f?void 0:f.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,f,k,w]),K.useEffect(x,[r,x]),zK(f,E),zK(h.content,E),qh.jsx(_K,{scope:n,scrollbar:f,hasThumb:a,onThumbChange:EU(o),onThumbPointerUp:EU(i),onThumbPositionChange:x,onThumbPointerDown:EU(s),children:qh.jsx(xU.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:dU(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),_(e)}})),onPointerMove:dU(e.onPointerMove,_),onPointerUp:dU(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),y.current=null}))})})})),CK="ScrollAreaThumb",AK=K.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=SK(CK,e.__scopeScrollArea);return qh.jsx(FV,{present:n||a.hasThumb,children:qh.jsx(NK,{ref:t,...r})})})),NK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=pK(CK,n),i=SK(CK,n),{onThumbPositionChange:s}=i,l=fU(t,(e=>i.onThumbChange(e))),c=K.useRef(void 0),u=HK((()=>{c.current&&(c.current(),c.current=void 0)}),100);return K.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=BK(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),qh.jsx(xU.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:dU(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:dU(e.onPointerUp,i.onThumbPointerUp)})}));AK.displayName=CK;var IK="ScrollAreaCorner",RK=K.forwardRef(((e,t)=>{const n=pK(IK,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?qh.jsx(OK,{...e,ref:t}):null}));RK.displayName=IK;var OK=K.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=pK(IK,n),[o,i]=K.useState(0),[s,l]=K.useState(0),c=Boolean(o&&s);return zK(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),zK(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?qh.jsx(xU.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function PK(e){return e?parseInt(e,10):0}function LK(e,t){const n=e/t;return isNaN(n)?0:n}function DK(e){const t=LK(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function MK(e,t,n="ltr"){const r=DK(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return FK([0,i],[0,s])(l)}function FK(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function jK(e,t){return e>0&&e<t}var BK=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function HK(e,t){const n=EU(e),r=K.useRef(0);return K.useEffect((()=>()=>window.clearTimeout(r.current)),[]),K.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function zK(e,t){const n=EU(t);PU((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var UK=hK,$K=mK,VK=RK;function GK(e,[t,n]){return Math.min(n,Math.max(t,e))}function WK(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function qK(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>K.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return K.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=K.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=K.useMemo((()=>s),Object.values(s));return qh.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=K.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},YK(r,...t)]}function YK(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return K.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function KK(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function XK(...e){return t=>{let n=!1;const r=e.map((e=>{const r=KK(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():KK(e[t],null)}}}}function QK(...e){return K.useCallback(XK(...e),e)}function ZK(e){const t=JK(e),n=K.forwardRef(((e,n)=>{const{children:r,...a}=e,o=K.Children.toArray(r),i=o.find(tX);if(i){const e=i.props.children,r=o.map((t=>t===i?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(t,{...a,ref:n,children:K.isValidElement(e)?K.cloneElement(e,void 0,r):null})}return qh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function JK(e){const t=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{const t=o(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?XK(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var eX=Symbol("radix.slottable");function tX(e){return K.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eX}var nX=K.createContext(void 0);function rX(e){const t=K.useContext(nX);return e||t||"ltr"}function aX(e){const t=iX(e),n=K.forwardRef(((e,n)=>{const{children:r,...a}=e,o=K.Children.toArray(r),i=o.find(lX);if(i){const e=i.props.children,r=o.map((t=>t===i?K.Children.count(e)>1?K.Children.only(null):K.isValidElement(e)?e.props.children:null:t));return qh.jsx(t,{...a,ref:n,children:K.isValidElement(e)?K.cloneElement(e,void 0,r):null})}return qh.jsx(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}var oX=aX("Slot");function iX(e){const t=K.forwardRef(((e,t)=>{const{children:n,...r}=e;if(K.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==K.Fragment&&(a.ref=t?XK(t,e):e),K.cloneElement(n,a)}return K.Children.count(n)>1?K.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var sX=Symbol("radix.slottable");function lX(e){return K.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===sX}var cX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=aX(`Primitive.${t}`),r=K.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});var uX,dX="dismissableLayer.update",pX="dismissableLayer.pointerDownOutside",hX="dismissableLayer.focusOutside",fX=K.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mX=K.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=K.useContext(fX),[u,d]=K.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=K.useState({}),f=QK(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e),r=K.useRef(!1),a=K.useRef((()=>{}));return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){yX(pX,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e),r=K.useRef(!1);return K.useEffect((()=>{const e=e=>{if(e.target&&!r.current){yX(hX,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=oW(e);K.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),K.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(uX=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),gX(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=uX)}}),[u,p,n,c]),K.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),gX())}),[u,c]),K.useEffect((()=>{const e=()=>h({});return document.addEventListener(dX,e),()=>document.removeEventListener(dX,e)}),[]),qh.jsx(cX.div,{...l,ref:f,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:WK(e.onFocusCapture,x.onFocusCapture),onBlurCapture:WK(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:WK(e.onPointerDownCapture,w.onPointerDownCapture)})}));mX.displayName="DismissableLayer";function gX(){const e=new CustomEvent(dX);document.dispatchEvent(e)}function yX(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&se.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}K.forwardRef(((e,t)=>{const n=K.useContext(fX),r=K.useRef(null),a=QK(t,r);return K.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),qh.jsx(cX.div,{...e,ref:a})})).displayName="DismissableLayerBranch";var bX=0;function vX(){K.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kX()),document.body.insertAdjacentElement("beforeend",e[1]??kX()),bX++,()=>{1===bX&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),bX--}}),[])}function kX(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wX="focusScope.autoFocusOnMount",xX="focusScope.autoFocusOnUnmount",EX={bubbles:!1,cancelable:!0},_X=K.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=K.useState(null),c=oW(a),u=oW(o),d=K.useRef(null),p=QK(t,(e=>l(e))),h=K.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K.useEffect((()=>{if(r){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:AX(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||AX(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&AX(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,h.paused]),K.useEffect((()=>{if(s){NX.add(h);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(wX,EX);s.addEventListener(wX,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(AX(r,{select:t}),document.activeElement!==n)return}((e=SX(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&AX(s))}return()=>{s.removeEventListener(wX,c),setTimeout((()=>{const e=new CustomEvent(xX,EX);s.addEventListener(xX,u),s.dispatchEvent(e),e.defaultPrevented||AX(t??document.body,{select:!0}),s.removeEventListener(xX,u),NX.remove(h)}),0)}}var e}),[s,c,u,h]);const f=K.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=SX(e),n=TX(t,e),r=TX(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&AX(o,{select:!0})):(e.preventDefault(),n&&AX(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,h.paused]);return qh.jsx(cX.div,{tabIndex:-1,...i,ref:p,onKeyDown:f})}));function SX(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function TX(e,t){for(const n of e)if(!CX(n,{upTo:t}))return n}function CX(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function AX(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}_X.displayName="FocusScope";var NX=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=IX(e,t),e.unshift(t)},remove(t){var n;e=IX(e,t),null==(n=e[0])||n.resume()}}}();function IX(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var RX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=ZK(`Primitive.${t}`),r=K.forwardRef(((e,r)=>{const{asChild:a,...o}=e,i=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),qh.jsx(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),OX=K.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return qh.jsx(RX.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:qh.jsx("polygon",{points:"0,0 30,0 15,10"})})}));OX.displayName="Arrow";var PX=OX;var LX="Popper",[DX,MX]=qK(LX),[FX,jX]=DX(LX),BX=e=>{const{__scopePopper:t,children:n}=e,[r,a]=K.useState(null);return qh.jsx(FX,{scope:t,anchor:r,onAnchorChange:a,children:n})};BX.displayName=LX;var HX="PopperAnchor",zX=K.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=jX(HX,n),i=K.useRef(null),s=QK(t,i);return K.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:qh.jsx(RX.div,{...a,ref:s})}));zX.displayName=HX;var UX="PopperContent",[$X,VX]=DX(UX),GX=K.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,x=jX(UX,l),[E,_]=K.useState(null),S=QK(t,(e=>_(e))),[T,C]=K.useState(null),A=function(e){const[t,n]=K.useState(void 0);return FO((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(T),N=(null==A?void 0:A.width)??0,I=(null==A?void 0:A.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(KX),altBoundary:L},{refs:M,floatingStyles:F,placement:j,isPositioned:B,middlewareData:H}=rV({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>$$(...e,{animationFrame:"always"===v}),elements:{reference:x.anchor},middleware:[oV({mainAxis:u+I,alignmentAxis:p}),f&&iV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?sV():void 0,...D}),f&&lV({...D}),cV({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),T&&dV({element:T,padding:h}),XX({arrowWidth:N,arrowHeight:I}),b&&uV({strategy:"referenceHidden",...D})]}),[z,U]=QX(j),$=oW(k);FO((()=>{B&&(null==$||$())}),[B,$]);const V=null==(n=H.arrow)?void 0:n.x,G=null==(r=H.arrow)?void 0:r.y,W=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[q,Y]=K.useState();return FO((()=>{E&&Y(window.getComputedStyle(E).zIndex)}),[E]),qh.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:qh.jsx($X,{scope:l,placedSide:z,onArrowChange:C,arrowX:V,arrowY:G,shouldHideArrow:W,children:qh.jsx(RX.div,{"data-side":z,"data-align":U,...w,ref:S,style:{...w.style,animation:B?void 0:"none"}})})})}));GX.displayName=UX;var WX="PopperArrow",qX={top:"bottom",right:"left",bottom:"top",left:"right"},YX=K.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=VX(WX,n),o=qX[a.placedSide];return qh.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:qh.jsx(PX,{...r,ref:t,style:{...r.style,display:"block"}})})}));function KX(e){return null!==e}YX.displayName=WX;var XX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=QX(o),h={start:"0%",center:"50%",end:"100%"}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?h:`${f}px`,y=-u+"px"):"top"===d?(g=l?h:`${f}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?h:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?h:`${m}px`),{data:{x:g,y:y}}}});function QX(e){const[t,n="center"]=e.split("-");return[t,n]}var ZX=BX,JX=zX,eQ=GX,tQ=YX,nQ=K.forwardRef(((e,t)=>{var n;const{container:r,...a}=e,[o,i]=K.useState(!1);FO((()=>i(!0)),[]);const s=r||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?le.createPortal(qh.jsx(cX.div,{...a,ref:t}),s):null}));nQ.displayName="Portal";const rQ=[" ","Enter","ArrowUp","ArrowDown"],aQ=[" ","Enter"],oQ="Select",[iQ,sQ,lQ]=function(e){const t=e+"CollectionProvider",[n,r]=qK(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=X.useRef(null),o=X.useRef(new Map).current;return qh.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=ZK(s),c=X.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=QK(t,o(s,n).collectionRef);return qh.jsx(l,{ref:a,children:r})}));c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=ZK(u),h=X.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=X.useRef(null),s=QK(t,i),l=o(u,n);return X.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),qh.jsx(p,{[d]:"",ref:s,children:r})}));return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){const n=o(e+"CollectionConsumer",t);return X.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(oQ),[cQ,uQ]=qK(oQ,[lQ,MX]),dQ=MX(),[pQ,hQ]=cQ(oQ),[fQ,mQ]=cQ(oQ),gQ=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,disabled:u,required:d}=e,p=dQ(t),[h,f]=K.useState(null),[m,g]=K.useState(null),[y,b]=K.useState(!1),v=rX(c),[k,w]=iW({prop:r,defaultProp:a??!1,onChange:o}),[x,E]=iW({prop:i,defaultProp:s,onChange:l}),_=K.useRef(null),[S,T]=K.useState(new Set);return qh.jsx(ZX,{...p,children:qh.jsx(pQ,{required:d,scope:t,trigger:h,onTriggerChange:f,valueNode:m,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:HO(),value:x,onValueChange:E,open:!!k,onOpenChange:w,dir:v,triggerPointerDownPosRef:_,disabled:u,children:qh.jsx(iQ.Provider,{scope:t,children:qh.jsx(fQ,{scope:e.__scopeSelect,onNativeOptionAdd:K.useCallback((e=>{T((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:K.useCallback((e=>{T((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})})})})};gQ.displayName=oQ;const yQ="SelectTrigger",bQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=dQ(n),i=hQ(yQ,n),s=i.disabled||r,l=QK(t,i.onTriggerChange),c=sQ(n),u=K.useRef("touch"),[d,p,h]=ZQ((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=JQ(t,e,n);void 0!==r&&i.onValueChange(r.value)})),f=e=>{s||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return qh.jsx(JX,{asChild:!0,...o,children:qh.jsx(cX.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":QQ(i.value)?"":void 0,...a,ref:l,onClick:WK(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)})),onPointerDown:WK(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())})),onKeyDown:WK(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||rQ.includes(e.key)&&(f(),e.preventDefault())}))})})}));bQ.displayName=yQ;const vQ="SelectValue",kQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=hQ(vQ,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=QK(t,l.onValueNodeChange);return FO((()=>{c(u)}),[c,u]),qh.jsx(cX.span,{...s,ref:d,style:{pointerEvents:"none"},children:QQ(l.value)?qh.jsx(qh.Fragment,{children:i}):o})}));kQ.displayName=vQ;const wQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return qh.jsx(cX.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));wQ.displayName="SelectIcon";const xQ="SelectContent",EQ=K.forwardRef(((e,t)=>{const n=hQ(xQ,e.__scopeSelect),[r,a]=K.useState();if(FO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?se.createPortal(qh.jsx(SQ,{scope:e.__scopeSelect,children:qh.jsx(iQ.Slot,{scope:e.__scopeSelect,children:qh.jsx("div",{children:e.children})})}),t):null}return qh.jsx(AQ,{...e,ref:t})}));EQ.displayName=xQ;const _Q=10,[SQ,TQ]=cQ(xQ),CQ=aX("SelectContent.RemoveScroll"),AQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=hQ(xQ,n),[v,k]=K.useState(null),[w,x]=K.useState(null),E=QK(t,(e=>k(e))),[_,S]=K.useState(null),[T,C]=K.useState(null),A=sQ(n),[N,I]=K.useState(!1),R=K.useRef(!1);K.useEffect((()=>{if(v)return Qq(v)}),[v]),vX();const O=K.useCallback((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[A,w]),P=K.useCallback((()=>O([_,v])),[O,_,v]);K.useEffect((()=>{N&&P()}),[N,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;K.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),K.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=ZQ((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=JQ(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),j=K.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(S(e),r&&(R.current=!0))}),[b.value]),B=K.useCallback((()=>null==v?void 0:v.focus()),[v]),H=K.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&C(e)}),[b.value]),z="popper"===r?IQ:NQ,U=z===IQ?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:h,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return qh.jsx(SQ,{scope:n,content:v,viewport:w,onViewportChange:x,itemRefCallback:j,selectedItem:_,onItemLeave:B,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:T,position:r,isPositioned:N,searchRef:M,children:qh.jsx(MY,{as:CQ,allowPinchZoom:!0,removeScrollBar:!1,children:qh.jsx(_X,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:WK(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:qh.jsx(mX,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:qh.jsx(z,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:WK(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));AQ.displayName="SelectContentImpl";const NQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=hQ(xQ,n),i=TQ(xQ,n),[s,l]=K.useState(null),[c,u]=K.useState(null),d=QK(t,(e=>u(e))),p=sQ(n),h=K.useRef(!1),f=K.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=K.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-_Q,d=GK(o,[_Q,Math.max(_Q,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-_Q,d=GK(o,[_Q,Math.max(_Q,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*_Q,u=m.scrollHeight,d=window.getComputedStyle(c),f=Number.parseInt(d.borderTopWidth,10),b=Number.parseInt(d.paddingTop,10),v=Number.parseInt(d.borderBottomWidth,10),k=f+b+u+Number.parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),x=window.getComputedStyle(m),E=Number.parseInt(x.paddingTop,10),_=Number.parseInt(x.paddingBottom,10),S=e.top+e.height/2-_Q,T=l-S,C=g.offsetHeight/2,A=f+b+(g.offsetTop+C),N=k-A;if(A<=S){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=A+Math.max(T,C+(e?_:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(S,f+m.offsetTop+(e?E:0)+C)+N;s.style.height=t+"px",m.scrollTop=A-S+m.offsetTop}s.style.margin=`${_Q}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>h.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);FO((()=>v()),[v]);const[k,w]=K.useState();FO((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const x=K.useCallback((e=>{e&&!0===f.current&&(v(),null==b||b(),f.current=!1)}),[v,b]);return qh.jsx(RQ,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:x,children:qh.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:qh.jsx(cX.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));NQ.displayName="SelectItemAlignedPosition";const IQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=_Q,...o}=e,i=dQ(n);return qh.jsx(eQ,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));IQ.displayName="SelectPopperPosition";const[RQ,OQ]=cQ(xQ,{}),PQ="SelectViewport",LQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=TQ(PQ,n),i=OQ(PQ,n),s=QK(t,o.onViewportChange),l=K.useRef(0);return qh.jsxs(qh.Fragment,{children:[qh.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),qh.jsx(iQ.Slot,{scope:n,children:qh.jsx(cX.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:WK(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*_Q,a=Number.parseFloat(n.style.minHeight),o=Number.parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));LQ.displayName=PQ;const DQ="SelectGroup",[MQ,FQ]=cQ(DQ);K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=HO();return qh.jsx(MQ,{scope:n,id:a,children:qh.jsx(cX.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=DQ;const jQ="SelectLabel";K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=FQ(jQ,n);return qh.jsx(cX.div,{id:a.id,...r,ref:t})})).displayName=jQ;const BQ="SelectItem",[HQ,zQ]=cQ(BQ),UQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=hQ(BQ,n),l=TQ(BQ,n),c=s.value===r,[u,d]=K.useState(o??""),[p,h]=K.useState(!1),f=QK(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=HO(),g=K.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return qh.jsx(HQ,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:K.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:qh.jsx(iQ.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:qh.jsx(cX.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:f,onFocus:WK(i.onFocus,(()=>h(!0))),onBlur:WK(i.onBlur,(()=>h(!1))),onClick:WK(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:WK(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:WK(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:WK(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:WK(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:WK(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(aQ.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));UQ.displayName=BQ;const $Q="SelectItemText",VQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=hQ($Q,n),s=TQ($Q,n),l=zQ($Q,n),c=mQ($Q,n),[u,d]=K.useState(null),p=QK(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),h=null==u?void 0:u.textContent,f=K.useMemo((()=>qh.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value)),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return FO((()=>(m(f),()=>g(f))),[m,g,f]),qh.jsxs(qh.Fragment,{children:[qh.jsx(cX.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?se.createPortal(o.children,i.valueNode):null]})}));VQ.displayName=$Q;const GQ="SelectItemIndicator",WQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return zQ(GQ,n).isSelected?qh.jsx(cX.span,{"aria-hidden":!0,...r,ref:t}):null}));WQ.displayName=GQ;const qQ="SelectScrollUpButton";K.forwardRef(((e,t)=>{const n=TQ(qQ,e.__scopeSelect),r=OQ(qQ,e.__scopeSelect),[a,o]=K.useState(!1),i=QK(t,r.onScrollButtonChange);return FO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?qh.jsx(KQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=qQ;const YQ="SelectScrollDownButton";K.forwardRef(((e,t)=>{const n=TQ(YQ,e.__scopeSelect),r=OQ(YQ,e.__scopeSelect),[a,o]=K.useState(!1),i=QK(t,r.onScrollButtonChange);return FO((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?qh.jsx(KQ,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=YQ;const KQ=K.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=TQ("SelectScrollButton",n),i=K.useRef(null),s=sQ(n),l=K.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return K.useEffect((()=>()=>l()),[l]),FO((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),qh.jsx(cX.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:WK(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:WK(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:WK(a.onPointerLeave,(()=>{l()}))})}));K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return qh.jsx(cX.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";const XQ="SelectArrow";function QQ(e){return""===e||void 0===e}function ZQ(e){const t=oW(e),n=K.useRef(""),r=K.useRef(0),a=K.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=K.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return K.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function JQ(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}K.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=dQ(n),o=hQ(XQ,n),i=TQ(XQ,n);return o.open&&"popper"===i.position?qh.jsx(tQ,{...a,...r,ref:t}):null})).displayName=XQ;const eZ=gQ,tZ=bQ,nZ=kQ,rZ=wQ,aZ=EQ,oZ=LQ,iZ=UQ,sZ=VQ,lZ=WQ;var cZ=Object.defineProperty,uZ=(e,t,n)=>((e,t,n)=>t in e?cZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),dZ={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},pZ=[],hZ=class{constructor(e,t){uZ(this,"trapStack"),uZ(this,"config"),uZ(this,"doc"),uZ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),uZ(this,"portalContainers",new Set),uZ(this,"listenerCleanups",[]),uZ(this,"handleFocus",(e=>{const t=fM(e),n=this.findContainerIndex(t,e)>=0;if(n||$D(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode)if(OM(this.state.mostRecentlyFocusedNode)>0){const e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){const e=r.findIndex((e=>e===this.state.mostRecentlyFocusedNode));e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some((e=>e.tabbableNodes.some((e=>OM(e)>0))))||(n=!1);else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0})),uZ(this,"handlePointerDown",(e=>{const t=fM(e);this.findContainerIndex(t,e)>=0||(bZ(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):bZ(this.config.allowOutsideClick,e)||e.preventDefault())})),uZ(this,"handleClick",(e=>{const t=fM(e);this.findContainerIndex(t,e)>=0||bZ(this.config.clickOutsideDeactivates,e)||bZ(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())})),uZ(this,"handleTabKey",(e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;const t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});if(!n)return;mZ(e)&&e.preventDefault(),this.tryFocus(n)}})),uZ(this,"handleEscapeKey",(e=>{vZ(e)&&!1!==bZ(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())})),uZ(this,"_mutationObserver"),uZ(this,"setupMutationObserver",(()=>{const e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver((e=>{e.some((e=>Array.from(e.removedNodes).some((e=>e===this.state.mostRecentlyFocusedNode))))&&this.tryFocus(this.getInitialFocusNode());e.some((e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some((e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!!function(e){var t;return!!function(e){return e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")}(e)||Boolean(null==(t=e.querySelector)?void 0:t.call(e,'[aria-controls][aria-expanded="true"]'))}(t)||!(!t.id||this.state.containers.some((e=>e.contains(t))))&&lM(t)}))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())}))})),uZ(this,"updateObservedNodes",(()=>{var e;null==(e=this._mutationObserver)||e.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map((e=>{var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})})),this.portalContainers.forEach((e=>{this.observePortalContainer(e)})))})),uZ(this,"getInitialFocusNode",(()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!NM(e)){const t=ZD(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{const t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e})),uZ(this,"tryFocus",(e=>{!1!==e&&e!==ZD(this.doc)&&(e&&e.focus?(e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,wZ(e)&&e.select()):this.tryFocus(this.getInitialFocusNode()))})),uZ(this,"deactivate",(e=>{if(!this.state.active)return this;const t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),dZ.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),a=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");null==n||n();const i=()=>{kZ((()=>{if(o){const e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}null==r||r()}))};if(o&&a){return a(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(i,i),this}return i(),this})),uZ(this,"pause",(e=>{if(this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,null==t||t(),this.removeListeners(),this.updateObservedNodes(),null==n||n(),this})),uZ(this,"unpause",(e=>{if(!this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,null==t||t(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n(),this})),uZ(this,"updateContainerElements",(e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this))),uZ(this,"getReturnFocusNode",(e=>{const t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e})),uZ(this,"getOption",((e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t])),uZ(this,"getNodeForOption",((e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw new Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let a=r;if("string"==typeof r){try{a=this.doc.querySelector(r)}catch(uEe){throw new Error(`\`${e}\` appears to be an invalid selector; error="${uEe.message}"`)}if(!a&&!t)throw new Error(`\`${e}\` as selector refers to no known node`)}return a})),uZ(this,"findNextNavNode",(e=>{const{event:t,isBackward:n=!1}=e,r=e.target||fM(t);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const e=this.findContainerIndex(r,t),o=e>=0?this.state.containerGroups[e]:void 0;if(e<0)a=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex((({firstTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||NM(r)&&!RM(r)&&!(null==o?void 0:o.nextTabbableNode(r,!1)))&&(n=e),n>=0){const e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];a=OM(r)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else mZ(t)||(a=null==o?void 0:o.nextTabbableNode(r,!1))}else{let n=this.state.tabbableGroups.findIndex((({lastTabbableNode:e})=>r===e));if(n<0&&((null==o?void 0:o.container)===r||NM(r)&&!RM(r)&&!(null==o?void 0:o.nextTabbableNode(r)))&&(n=e),n>=0){const e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];a=OM(r)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else mZ(t)||(a=null==o?void 0:o.nextTabbableNode(r))}}else a=this.getNodeForOption("fallbackFocus");return a})),this.trapStack=t.trapStack||pZ;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:gZ,isKeyBackward:yZ,...t};this.doc=n.document||XD(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;null==(t=this._mutationObserver)||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach((e=>{sM(e).forEach((e=>{this.addPortalContainer(e)}))}))}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return this.state.containerGroups.findIndex((({container:t,tabbableNodes:r})=>t.contains(e)||(null==n?void 0:n.includes(t))||r.find((t=>t===e))||this.isControlledElement(t,e)))}isControlledElement(e,t){return!!this.config.followControlledElements&&iM(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map((e=>{const t=IM(e,{getShadowRoot:this.config.getShadowRoot}),n=AM(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],a=t[t.length-1],o=r,i=a;let s=!1;for(let l=0;l<t.length;l++)if(OM(t[l])>0){s=!0;break}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:i,nextTabbableNode:function(e,r=!0){const a=t.indexOf(e);if(a>=0)return t[a+(r?1:-1)];const o=n.indexOf(e);if(!(o<0))if(r){for(let t=o+1;t<n.length;t++)if(RM(n[t]))return n[t]}else for(let t=o-1;t>=0;t--)if(RM(n[t]))return n[t]}}})),this.state.tabbableGroups=this.state.containerGroups.filter((e=>e.tabbableNodes.length>0)),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find((e=>e.posTabIndexesFound))&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return dZ.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?kZ((()=>{this.tryFocus(this.getInitialFocusNode())})):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(wM(this.doc,"focusin",this.handleFocus,!0),wM(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),wM(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),wM(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),wM(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),wM(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach((e=>e())),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=ZD(this.doc),null==t||t();const a=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),null==n||n()};return r?(r(this.state.containers.concat()).then(a,a),this):(a(),this)}},fZ=e=>"keydown"===e.type,mZ=e=>fZ(e)&&"Tab"===(null==e?void 0:e.key),gZ=e=>fZ(e)&&"Tab"===e.key&&!(null==e?void 0:e.shiftKey),yZ=e=>fZ(e)&&"Tab"===e.key&&(null==e?void 0:e.shiftKey),bZ=(e,...t)=>"function"==typeof e?e(...t):e,vZ=e=>!e.isComposing&&"Escape"===e.key,kZ=e=>setTimeout(e,0),wZ=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;var xZ=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=K.useState(),r=K.useRef({}),a=K.useRef(e),o=K.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return K.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K.useEffect((()=>{const e=EZ(r.current);o.current="mounted"===s?e:"none"}),[s]),FO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=EZ(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),FO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=EZ(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=EZ(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:K.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):K.Children.only(n),o=QK(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?K.cloneElement(a,{ref:o}):null};function EZ(e){return(null==e?void 0:e.animationName)||"none"}xZ.displayName="Presence";const _Z="Dialog",[SZ,TZ]=qK(_Z),[CZ,AZ]=SZ(_Z),NZ=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=K.useRef(null),l=K.useRef(null),[c=!1,u]=iW({prop:r,defaultProp:a,onChange:o});return qh.jsx(CZ,{scope:t,triggerRef:s,contentRef:l,contentId:HO(),titleId:HO(),descriptionId:HO(),open:c,onOpenChange:u,onOpenToggle:K.useCallback((()=>u((e=>!e))),[u]),modal:i,children:n})};NZ.displayName=_Z;const IZ="DialogTrigger";K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(IZ,n),o=QK(t,a.triggerRef);return qh.jsx(cX.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":YZ(a.open),...r,ref:o,onClick:WK(e.onClick,a.onOpenToggle)})})).displayName=IZ;const RZ="DialogPortal",[OZ,PZ]=SZ(RZ,{forceMount:void 0}),LZ=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=AZ(RZ,t);return qh.jsx(OZ,{scope:t,forceMount:n,children:K.Children.map(r,(e=>qh.jsx(xZ,{present:n||o.open,children:qh.jsx(nQ,{asChild:!0,container:a,children:e})})))})};LZ.displayName=RZ;const DZ="DialogOverlay",MZ=K.forwardRef(((e,t)=>{const n=PZ(DZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=AZ(DZ,e.__scopeDialog);return o.modal?qh.jsx(xZ,{present:r||o.open,children:qh.jsx(FZ,{...a,ref:t})}):null}));MZ.displayName=DZ;const FZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(DZ,n);return qh.jsx(MY,{as:oX,allowPinchZoom:!0,shards:[a.contentRef],gapMode:"padding",removeScrollBar:!0,children:qh.jsx(cX.div,{"data-state":YZ(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),jZ="DialogContent",BZ=K.forwardRef(((e,t)=>{const n=PZ(jZ,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=AZ(jZ,e.__scopeDialog);return qh.jsx(xZ,{present:r||o.open,children:o.modal?qh.jsx(HZ,{...a,ref:t}):qh.jsx(zZ,{...a,ref:t})})}));BZ.displayName=jZ;const HZ=K.forwardRef(((e,t)=>{const n=AZ(jZ,e.__scopeDialog),r=K.useRef(null),a=QK(t,n.contentRef,r);return K.useEffect((()=>{const e=r.current;if(e)return Qq(e)}),[]),qh.jsx(UZ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onPointerDownOutside:WK(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:WK(e.onFocusOutside,(e=>e.preventDefault()))})})),zZ=K.forwardRef(((e,t)=>{const n=AZ(jZ,e.__scopeDialog),r=K.useRef(!1),a=K.useRef(!1);return qh.jsx(UZ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),UZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=AZ(jZ,n),l=K.useRef(null),c=QK(t,l);return vX(),K.useEffect((()=>{if(r)return function(e,t={}){let n;const r=LM((()=>{const r=(Array.isArray(e)?e:[e]).map((e=>"function"==typeof e?e():e)).filter((e=>null!=e));if(0===r.length)return;const a=r[0];n=new hZ(r,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:a,...t,document:XD(a)});try{n.activate()}catch{}}));return function(){null==n||n.deactivate(),r()}}(l.current,{preventScroll:!0,onActivate:a,onDeactivate:o,initialFocus:!1})}),[]),qh.jsx(mX,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":YZ(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})})),$Z="DialogTitle",VZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ($Z,n);return qh.jsx(cX.h2,{id:a.titleId,...r,ref:t})}));VZ.displayName=$Z;const GZ="DialogDescription";K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(GZ,n);return qh.jsx(cX.p,{id:a.descriptionId,...r,ref:t})})).displayName=GZ;const WZ="DialogClose",qZ=K.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=AZ(WZ,n);return qh.jsx(cX.button,{type:"button",...r,ref:t,onClick:WK(e.onClick,(()=>a.onOpenChange(!1)))})}));function YZ(e){return e?"open":"closed"}qZ.displayName=WZ;const KZ=NZ,XZ=LZ,QZ=MZ,ZZ=BZ,JZ=VZ,eJ=qZ,tJ=K.forwardRef(((e,t)=>{const n=K.useId();return qh.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:"100%",width:"100%",ref:t,...e,children:[qh.jsx("title",{children:"AI Avatar"}),qh.jsx("path",{d:"M9.937 15.5002C9.84772 15.1542 9.66734 14.8384 9.41462 14.5856C9.1619 14.3329 8.84607 14.1525 8.5 14.0632L2.365 12.4812C2.26033 12.4515 2.16821 12.3885 2.10261 12.3017C2.03702 12.2149 2.00153 12.1091 2.00153 12.0002C2.00153 11.8914 2.03702 11.7856 2.10261 11.6988C2.16821 11.612 2.26033 11.549 2.365 11.5192L8.5 9.93625C8.84595 9.84706 9.16169 9.66682 9.4144 9.41429C9.66711 9.16175 9.84757 8.84614 9.937 8.50025L11.519 2.36525C11.5484 2.26017 11.6114 2.16759 11.6983 2.10164C11.7853 2.0357 11.8914 2 12.0005 2C12.1096 2 12.2157 2.0357 12.3027 2.10164C12.3896 2.16759 12.4526 2.26017 12.482 2.36525L14.063 8.50025C14.1523 8.84632 14.3327 9.16215 14.5854 9.41487C14.8381 9.66759 15.1539 9.84797 15.5 9.93725L21.635 11.5182C21.7405 11.5473 21.8335 11.6103 21.8998 11.6973C21.9661 11.7844 22.0021 11.8908 22.0021 12.0002C22.0021 12.1097 21.9661 12.2161 21.8998 12.3032C21.8335 12.3902 21.7405 12.4531 21.635 12.4822L15.5 14.0632C15.1539 14.1525 14.8381 14.3329 14.5854 14.5856C14.3327 14.8384 14.1523 15.1542 14.063 15.5002L12.481 21.6353C12.4516 21.7403 12.3886 21.8329 12.3017 21.8989C12.2147 21.9648 12.1086 22.0005 11.9995 22.0005C11.8904 22.0005 11.7843 21.9648 11.6973 21.8989C11.6104 21.8329 11.5474 21.7403 11.518 21.6353L9.937 15.5002Z",stroke:`url(#${n}-stroke1)`,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsx("path",{d:"M18.9838 5.37522C18.9615 5.28871 18.9164 5.20975 18.8532 5.14657C18.79 5.08339 18.7111 5.0383 18.6246 5.01598L17.0909 4.62049C17.0647 4.61306 17.0417 4.5973 17.0253 4.5756C17.0089 4.5539 17 4.52744 17 4.50024C17 4.47304 17.0089 4.44659 17.0253 4.42488C17.0417 4.40318 17.0647 4.38742 17.0909 4.38L18.6246 3.98426C18.7111 3.96196 18.79 3.9169 18.8532 3.85377C18.9163 3.79064 18.9615 3.71174 18.9838 3.62527L19.3793 2.09155C19.3867 2.06528 19.4024 2.04214 19.4241 2.02565C19.4459 2.00917 19.4724 2.00024 19.4997 2.00024C19.527 2.00024 19.5535 2.00917 19.5752 2.02565C19.597 2.04214 19.6127 2.06528 19.6201 2.09155L20.0153 3.62527C20.0376 3.71178 20.0827 3.79074 20.1459 3.85391C20.2091 3.91709 20.288 3.96219 20.3745 3.98451L21.9082 4.37975C21.9346 4.38702 21.9579 4.40275 21.9744 4.42452C21.991 4.44628 22 4.47288 22 4.50024C22 4.5276 21.991 4.55421 21.9744 4.57597C21.9579 4.59774 21.9346 4.61347 21.9082 4.62074L20.3745 5.01598C20.288 5.0383 20.2091 5.08339 20.1459 5.14657C20.0827 5.20975 20.0376 5.28871 20.0153 5.37522L19.6198 6.90893C19.6124 6.9352 19.5967 6.95835 19.575 6.97483C19.5532 6.99132 19.5267 7.00024 19.4994 7.00024C19.4721 7.00024 19.4456 6.99132 19.4239 6.97483C19.4022 6.95835 19.3864 6.9352 19.3791 6.90893L18.9838 5.37522Z",stroke:`url(#${n}-stroke2)`,strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsx("path",{d:"M3.98382 20.3752C3.9615 20.2887 3.9164 20.2098 3.85322 20.1466C3.79005 20.0834 3.71109 20.0383 3.62458 20.016L2.09087 19.6205C2.0647 19.6131 2.04167 19.5973 2.02527 19.5756C2.00887 19.5539 2 19.5274 2 19.5002C2 19.473 2.00887 19.4466 2.02527 19.4249C2.04167 19.4032 2.0647 19.3874 2.09087 19.38L3.62458 18.9843C3.71106 18.962 3.78999 18.9169 3.85317 18.8538C3.91635 18.7906 3.96146 18.7117 3.98382 18.6253L4.37931 17.0916C4.38666 17.0653 4.4024 17.0421 4.42414 17.0257C4.44587 17.0092 4.4724 17.0002 4.49968 17.0002C4.52696 17.0002 4.55349 17.0092 4.57522 17.0257C4.59695 17.0421 4.6127 17.0653 4.62005 17.0916L5.01529 18.6253C5.03761 18.7118 5.0827 18.7907 5.14588 18.8539C5.20906 18.9171 5.28801 18.9622 5.37453 18.9845L6.90824 19.3797C6.93461 19.387 6.95787 19.4027 6.97445 19.4245C6.99102 19.4463 7 19.4729 7 19.5002C7 19.5276 6.99102 19.5542 6.97445 19.576C6.95787 19.5977 6.93461 19.6135 6.90824 19.6207L5.37453 20.016C5.28801 20.0383 5.20906 20.0834 5.14588 20.1466C5.0827 20.2098 5.03761 20.2887 5.01529 20.3752L4.6198 21.9089C4.61245 21.9352 4.5967 21.9583 4.57497 21.9748C4.55324 21.9913 4.52671 22.0002 4.49943 22.0002C4.47215 22.0002 4.44562 21.9913 4.42389 21.9748C4.40215 21.9583 4.38641 21.9352 4.37906 21.9089L3.98382 20.3752Z",stroke:`url(#${n}-stroke3)`,strokeLinecap:"round",strokeLinejoin:"round"}),qh.jsxs("defs",{children:[qh.jsxs("linearGradient",{id:`${n}-stroke1`,x1:"0.149625",y1:"0.148102",x2:"23.8539",y2:"23.8524",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),qh.jsxs("linearGradient",{id:`${n}-stroke2`,x1:"16.537",y1:"1.53728",x2:"22.463",y2:"7.46321",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]}),qh.jsxs("linearGradient",{id:`${n}-stroke3`,x1:"1.53704",y1:"16.5373",x2:"7.46296",y2:"22.4632",gradientUnits:"userSpaceOnUse",children:[qh.jsx("stop",{offset:"0.287444",stopColor:"var(--start-color)"}),qh.jsx("stop",{offset:"0.728693",stopColor:"var(--end-color)"})]})]})]})})),nJ=K.forwardRef(((e,t)=>qh.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"32px",viewBox:"0 96 960 960",width:"32px",ref:t,...e,children:[qh.jsx("title",{children:"User Avatar"}),qh.jsx("path",{d:"M222 801q63-40 124.5-60.5T480 720q72 0 134 20.5T739 801q44-54 62.5-109T820 576q0-145-97.5-242.5T480 236q-145 0-242.5 97.5T140 576q0 61 19 116t63 109Zm257.814-195Q422 606 382.5 566.314q-39.5-39.686-39.5-97.5t39.686-97.314q39.686-39.5 97.5-39.5t97.314 39.686q39.5 39.686 39.5 97.5T577.314 566.5q-39.686 39.5-97.5 39.5Zm-.219 370q-83.146 0-156.275-31.5t-127.225-86Q142 804 111 731.159 80 658.319 80 575.5q0-82.819 31.5-155.659Q143 347 197.5 293t127.341-85.5Q397.681 176 480.5 176q82.819 0 155.659 31.5Q709 239 763 293t85.5 127Q880 493 880 575.734q0 82.734-31.5 155.5T763 858.5q-54 54.5-127.129 86T479.595 976Z",fill:"currentColor"})]}))),rJ=K.forwardRef((({isExternal:e,...t},n)=>qh.jsx("a",{target:e?"_blank":void 0,rel:e?"noopener":void 0,...t,ref:n})));rJ.displayName="Link";const aJ=K.forwardRef((({href:e,appendToUrl:t,...n},r)=>{const{baseSettings:a}=nP(),o=Object.assign({},a.urlQueryParamsToAppend,t),i=e?function(e,t){if(!t)return e;try{const n=new URL(e);for(const e of Object.keys(t))t[e]&&n.searchParams.append(e,t[e]);return n.href}catch{return e}}(e,o):e;return qh.jsx(rJ,{ref:r,href:i,...n})}));function oJ(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(a,r).trim();!e&&o||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function iJ(e,t){const n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}aJ.displayName="LinkWithQueryParams";const sJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cJ={};function uJ(e,t){return(cJ.jsx?lJ:sJ).test(e)}const dJ=/[ \t\n\f\r]/g;function pJ(e){return""===e.replace(dJ,"")}let hJ=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function fJ(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new hJ(n,r,t)}function mJ(e){return e.toLowerCase()}hJ.prototype.normal={},hJ.prototype.property={},hJ.prototype.space=void 0;let gJ=class{constructor(e,t){this.attribute=t,this.property=e}};gJ.prototype.attribute="",gJ.prototype.booleanish=!1,gJ.prototype.boolean=!1,gJ.prototype.commaOrSpaceSeparated=!1,gJ.prototype.commaSeparated=!1,gJ.prototype.defined=!1,gJ.prototype.mustUseProperty=!1,gJ.prototype.number=!1,gJ.prototype.overloadedBoolean=!1,gJ.prototype.property="",gJ.prototype.spaceSeparated=!1,gJ.prototype.space=void 0;let yJ=0;const bJ=SJ(),vJ=SJ(),kJ=SJ(),wJ=SJ(),xJ=SJ(),EJ=SJ(),_J=SJ();function SJ(){return 2**++yJ}const TJ=Object.freeze(Object.defineProperty({__proto__:null,boolean:bJ,booleanish:vJ,commaOrSpaceSeparated:_J,commaSeparated:EJ,number:wJ,overloadedBoolean:kJ,spaceSeparated:xJ},Symbol.toStringTag,{value:"Module"})),CJ=Object.keys(TJ);let AJ=class extends gJ{constructor(e,t,n,r){let a=-1;if(super(e,t),NJ(this,"space",r),"number"==typeof n)for(;++a<CJ.length;){const e=CJ[a];NJ(this,CJ[a],(n&TJ[e])===TJ[e])}}};function NJ(e,t,n){n&&(e[t]=n)}function IJ(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new AJ(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[mJ(r)]=r,n[mJ(o.attribute)]=r}return new hJ(t,n,e.space)}AJ.prototype.defined=!0;const RJ=IJ({properties:{ariaActiveDescendant:null,ariaAtomic:vJ,ariaAutoComplete:null,ariaBusy:vJ,ariaChecked:vJ,ariaColCount:wJ,ariaColIndex:wJ,ariaColSpan:wJ,ariaControls:xJ,ariaCurrent:null,ariaDescribedBy:xJ,ariaDetails:null,ariaDisabled:vJ,ariaDropEffect:xJ,ariaErrorMessage:null,ariaExpanded:vJ,ariaFlowTo:xJ,ariaGrabbed:vJ,ariaHasPopup:null,ariaHidden:vJ,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xJ,ariaLevel:wJ,ariaLive:null,ariaModal:vJ,ariaMultiLine:vJ,ariaMultiSelectable:vJ,ariaOrientation:null,ariaOwns:xJ,ariaPlaceholder:null,ariaPosInSet:wJ,ariaPressed:vJ,ariaReadOnly:vJ,ariaRelevant:null,ariaRequired:vJ,ariaRoleDescription:xJ,ariaRowCount:wJ,ariaRowIndex:wJ,ariaRowSpan:wJ,ariaSelected:vJ,ariaSetSize:wJ,ariaSort:null,ariaValueMax:wJ,ariaValueMin:wJ,ariaValueNow:wJ,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function OJ(e,t){return t in e?e[t]:t}function PJ(e,t){return OJ(e,t.toLowerCase())}const LJ=IJ({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:EJ,acceptCharset:xJ,accessKey:xJ,action:null,allow:null,allowFullScreen:bJ,allowPaymentRequest:bJ,allowUserMedia:bJ,alt:null,as:null,async:bJ,autoCapitalize:null,autoComplete:xJ,autoFocus:bJ,autoPlay:bJ,blocking:xJ,capture:null,charSet:null,checked:bJ,cite:null,className:xJ,cols:wJ,colSpan:null,content:null,contentEditable:vJ,controls:bJ,controlsList:xJ,coords:wJ|EJ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bJ,defer:bJ,dir:null,dirName:null,disabled:bJ,download:kJ,draggable:vJ,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bJ,formTarget:null,headers:xJ,height:wJ,hidden:bJ,high:wJ,href:null,hrefLang:null,htmlFor:xJ,httpEquiv:xJ,id:null,imageSizes:null,imageSrcSet:null,inert:bJ,inputMode:null,integrity:null,is:null,isMap:bJ,itemId:null,itemProp:xJ,itemRef:xJ,itemScope:bJ,itemType:xJ,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bJ,low:wJ,manifest:null,max:null,maxLength:wJ,media:null,method:null,min:null,minLength:wJ,multiple:bJ,muted:bJ,name:null,nonce:null,noModule:bJ,noValidate:bJ,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:bJ,optimum:wJ,pattern:null,ping:xJ,placeholder:null,playsInline:bJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bJ,referrerPolicy:null,rel:xJ,required:bJ,reversed:bJ,rows:wJ,rowSpan:wJ,sandbox:xJ,scope:null,scoped:bJ,seamless:bJ,selected:bJ,shadowRootClonable:bJ,shadowRootDelegatesFocus:bJ,shadowRootMode:null,shape:null,size:wJ,sizes:null,slot:null,span:wJ,spellCheck:vJ,src:null,srcDoc:null,srcLang:null,srcSet:null,start:wJ,step:null,style:null,tabIndex:wJ,target:null,title:null,translate:null,type:null,typeMustMatch:bJ,useMap:null,value:vJ,width:wJ,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xJ,axis:null,background:null,bgColor:null,border:wJ,borderColor:null,bottomMargin:wJ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bJ,declare:bJ,event:null,face:null,frame:null,frameBorder:null,hSpace:wJ,leftMargin:wJ,link:null,longDesc:null,lowSrc:null,marginHeight:wJ,marginWidth:wJ,noResize:bJ,noHref:bJ,noShade:bJ,noWrap:bJ,object:null,profile:null,prompt:null,rev:null,rightMargin:wJ,rules:null,scheme:null,scrolling:vJ,standby:null,summary:null,text:null,topMargin:wJ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:wJ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bJ,disableRemotePlayback:bJ,prefix:null,property:null,results:wJ,security:null,unselectable:null},space:"html",transform:PJ}),DJ=IJ({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_J,accentHeight:wJ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:wJ,amplitude:wJ,arabicForm:null,ascent:wJ,attributeName:null,attributeType:null,azimuth:wJ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:wJ,by:null,calcMode:null,capHeight:wJ,className:xJ,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:wJ,diffuseConstant:wJ,direction:null,display:null,dur:null,divisor:wJ,dominantBaseline:null,download:bJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:wJ,enableBackground:null,end:null,event:null,exponent:wJ,externalResourcesRequired:null,fill:null,fillOpacity:wJ,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:EJ,g2:EJ,glyphName:EJ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:wJ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:wJ,horizOriginX:wJ,horizOriginY:wJ,id:null,ideographic:wJ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:wJ,k:wJ,k1:wJ,k2:wJ,k3:wJ,k4:wJ,kernelMatrix:_J,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:wJ,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:wJ,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:wJ,overlineThickness:wJ,paintOrder:null,panose1:null,path:null,pathLength:wJ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xJ,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:wJ,pointsAtY:wJ,pointsAtZ:wJ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_J,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_J,rev:_J,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_J,requiredFeatures:_J,requiredFonts:_J,requiredFormats:_J,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:wJ,specularExponent:wJ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:wJ,strikethroughThickness:wJ,string:null,stroke:null,strokeDashArray:_J,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:wJ,strokeOpacity:wJ,strokeWidth:null,style:null,surfaceScale:wJ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_J,tabIndex:wJ,tableValues:null,target:null,targetX:wJ,targetY:wJ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_J,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:wJ,underlineThickness:wJ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:wJ,values:null,vAlphabetic:wJ,vMathematical:wJ,vectorEffect:null,vHanging:wJ,vIdeographic:wJ,version:null,vertAdvY:wJ,vertOriginX:wJ,vertOriginY:wJ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:wJ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:OJ}),MJ=IJ({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),FJ=IJ({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:PJ}),jJ=IJ({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),BJ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},HJ=/[A-Z]/g,zJ=/-[a-z]/g,UJ=/^data[-\w.:]+$/i;function $J(e,t){const n=mJ(t);let r=t,a=gJ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&UJ.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zJ,GJ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zJ.test(e)){let n=e.replace(HJ,VJ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=AJ}return new a(r,t)}function VJ(e){return"-"+e.toLowerCase()}function GJ(e){return e.charAt(1).toUpperCase()}const WJ=fJ([RJ,LJ,MJ,FJ,jJ],"html"),qJ=fJ([RJ,DJ,MJ,FJ,jJ],"svg");function YJ(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function KJ(e){return e.join(" ").trim()}var XJ={},QJ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZJ=/\n/g,JJ=/^\s*/,e0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,t0=/^:\s*/,n0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,r0=/^[;\s]*/,a0=/^\s+|\s+$/g,o0="";function i0(e){return e?e.replace(a0,o0):o0}var s0=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(XJ,"__esModule",{value:!0}),XJ.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,l0.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var l0=s0((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(ZJ);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),c(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(JJ)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;o0!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,o0===e.charAt(n-1))return s("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function p(){var e=o(),t=l(e0);if(t){if(d(),!l(t0))return s("property missing ':'");var n=l(n0),r=e({type:"declaration",property:i0(t[0].replace(QJ,o0)),value:n?i0(n[0].replace(QJ,o0)):o0});return l(r0),r}}return i.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var c0={};Object.defineProperty(c0,"__esModule",{value:!0}),c0.camelCase=void 0;var u0=/^--[a-zA-Z0-9_-]+$/,d0=/-([a-z])/g,p0=/^[^-]+$/,h0=/^-(webkit|moz|ms|o|khtml)-/,f0=/^-(ms)-/,m0=function(e,t){return t.toUpperCase()},g0=function(e,t){return"".concat(t,"-")};c0.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||p0.test(e)||u0.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(f0,g0):e.replace(h0,g0)).replace(d0,m0))};var y0=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},b0=y0(XJ),v0=c0;function k0(e,t){var n={};return e&&"string"==typeof e?((0,b0.default)(e,(function(e,r){e&&r&&(n[(0,v0.camelCase)(e,t)]=r)})),n):n}k0.default=k0;const w0=c(k0),x0=_0("end"),E0=_0("start");function _0(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function S0(e){return e&&"object"==typeof e?"position"in e||"type"in e?C0(e.position):"start"in e||"end"in e?C0(e):"line"in e||"column"in e?T0(e):"":""}function T0(e){return A0(e&&e.line)+":"+A0(e&&e.column)}function C0(e){return T0(e&&e.start)+"-"+T0(e&&e.end)}function A0(e){return e&&"number"==typeof e?e:1}class N0 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=S0(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}N0.prototype.file="",N0.prototype.name="",N0.prototype.reason="",N0.prototype.message="",N0.prototype.stack="",N0.prototype.column=void 0,N0.prototype.line=void 0,N0.prototype.ancestors=void 0,N0.prototype.cause=void 0,N0.prototype.fatal=void 0,N0.prototype.place=void 0,N0.prototype.ruleId=void 0,N0.prototype.source=void 0;const I0={}.hasOwnProperty,R0=new Map,O0=/[A-Z]/g,P0=new Set(["table","tbody","thead","tfoot","tr"]),L0=new Set(["td","th"]),D0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M0(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,o){const i=Array.isArray(a.children),s=E0(n);return t(r,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,o){const i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?qJ:WJ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=F0(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function F0(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=qJ,e.schema=a);e.ancestors.push(t);const o=U0(e,t.tagName,!1),i=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&I0.call(t.properties,a)){const o=z0(e,a,t.properties[a]);if(o){const[a,i]=o;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof i&&L0.has(t.tagName)?r=i:n[a]=i}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=H0(e,t);P0.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&pJ(t.value):pJ(t));var t})));return j0(e,i,o,t),B0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=qJ,e.schema=a);e.ancestors.push(t);const o=null===t.name?e.Fragment:U0(e,t.name,!0),i=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const a=t.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else $0(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else $0(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),s=H0(e,t);return j0(e,i,o,t),B0(i,s),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return B0(r,H0(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function j0(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function B0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function H0(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:R0;for(;++r<t.children.length;){const o=t.children[r];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=a.get(e)||0;i=e+"-"+t,a.set(e,t+1)}}const s=F0(e,o,i);void 0!==s&&n.push(s)}return n}function z0(e,t,n){const r=$J(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?iJ(n):KJ(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return w0(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new N0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=D0+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)I0.call(e,n)&&(t[V0(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?BJ[r.property]||r.property:r.attribute,n]}}function U0(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=uJ(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=uJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return I0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$0(e)}function $0(e,t){const n=new N0("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=D0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function V0(e){let t=e.replace(O0,G0);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function G0(e){return"-"+e.toLowerCase()}const W0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},q0={};function Y0(e,t){return K0(e,"boolean"!=typeof q0.includeImageAlt||q0.includeImageAlt,"boolean"!=typeof q0.includeHtml||q0.includeHtml)}function K0(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return X0(e.children,t,n)}return Array.isArray(e)?X0(e,t,n):""}function X0(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=K0(e[a],t,n);return r.join("")}const Q0=document.createElement("i");function Z0(e){const t="&"+e+";";Q0.innerHTML=t;const n=Q0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function J0(e,t,n,r){const a=e.length;let o,i=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function e1(e,t){return e.length>0?(J0(e,e.length,0,t),e):t}const t1={}.hasOwnProperty;function n1(e){const t={};let n=-1;for(;++n<e.length;)r1(t,e[n]);return t}function r1(e,t){let n;for(n in t){const r=(t1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){t1.call(r,o)||(r[o]=[]);const e=a[o];a1(r[o],Array.isArray(e)?e:e?[e]:[])}}}function a1(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);J0(e,0,0,r)}function o1(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function i1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const s1=v1(/[A-Za-z]/),l1=v1(/[\dA-Za-z]/),c1=v1(/[#-'*+\--9=?A-Z^-~]/);function u1(e){return null!==e&&(e<32||127===e)}const d1=v1(/\d/),p1=v1(/[\dA-Fa-f]/),h1=v1(/[!-/:-@[-`{-~]/);function f1(e){return null!==e&&e<-2}function m1(e){return null!==e&&(e<0||32===e)}function g1(e){return-2===e||-1===e||32===e}const y1=v1(new RegExp("\\p{P}|\\p{S}","u")),b1=v1(/\s/);function v1(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function k1(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&l1(e.charCodeAt(n+1))&&l1(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function w1(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(g1(r))return e.enter(n),i(r);return t(r)};function i(r){return g1(r)&&o++<a?(e.consume(r),i):(e.exit(n),t(r))}}const x1={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),w1(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):f1(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const E1={tokenize:function(e){const t=this,n=[];let r,a,o,i=0;return s;function s(r){if(i<n.length){const a=n[i];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let a,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}y(i);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return J0(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(i===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return f(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_1,u,d)(a)}function u(e){return r&&b(),y(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(_1,h,f)(n)}function h(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):f1(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;J0(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},_1={tokenize:function(e,t,n){return w1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function S1(e){return null===e||m1(e)||b1(e)?1:y1(e)?2:void 0}function T1(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const C1={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};A1(d,-s),A1(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[u][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=e1(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=e1(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=e1(l,T1(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=e1(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=e1(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,J0(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=S1(r);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=S1(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(a||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function A1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const N1={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return s1(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||l1(e)?(r=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||l1(t))&&r++<32?(e.consume(t),i):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||u1(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):c1(t)?(e.consume(t),l):n(t)}function c(e){return l1(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||l1(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const I1={partial:!0,tokenize:function(e,t,n){return function(t){return g1(t)?w1(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||f1(e)?t(e):n(e)}}};const R1={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(g1(t))return w1(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(R1,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return g1(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const O1={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return h1(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const P1={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=l1,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=p1,c):(e.enter("characterReferenceValue"),a=7,o=d1,c(t))}function c(s){if(59===s&&i){const a=e.exit("characterReferenceValue");return o!==l1||Z0(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<a?(e.consume(s),c):n(s)}}};const L1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},D1={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),g1(t)?w1(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),g1(t)?w1(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||f1(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,i=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),g1(t)?w1(e,c,"whitespace")(t):c(t))}function c(n){return null===n||f1(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(L1,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||f1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):g1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),w1(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||f1(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||f1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&g1(t)?w1(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||f1(t)?e.check(L1,h,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||f1(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const M1={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),w1(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):f1(t)?e.attempt(F1,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||f1(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},F1={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):w1(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):f1(e)?a(e):n(e)}}};const j1={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||f1(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class B1{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&H1(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),H1(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),H1(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);H1(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);H1(this.left,t.reverse())}}}function H1(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function z1(e){const t={};let n,r,a,o,i,s,l,c=-1;const u=new B1(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,U1(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(o=u.get(a),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=a);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return J0(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function U1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);o.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const $1={resolve:function(e){return z1(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):f1(t)?e.check(V1,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},V1={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w1(e,a,"linePrefix")};function a(a){if(null===a||f1(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function G1(e,t,n,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||u1(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||f1(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!m1(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||u1(a)?n(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function W1(e,t,n,r,a,o){const i=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):f1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||f1(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!g1(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function q1(e,t,n,r,a,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):f1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||f1(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Y1(e,t){let n;return function r(a){if(f1(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(g1(a))return w1(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const K1={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return W1.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return a=i1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return m1(t)?Y1(e,s)(t):s(t)}function s(t){return G1(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(X1,c,c)(t)}function c(t){return g1(t)?w1(e,u,"whitespace")(t):u(t)}function u(o){return null===o||f1(o)?(e.exit("definition"),r.parser.defined.push(a),t(o)):n(o)}}},X1={partial:!0,tokenize:function(e,t,n){return function(t){return m1(t)?Y1(e,r)(t):n(t)};function r(t){return q1(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return g1(t)?w1(e,o,"whitespace")(t):o(t)}function o(e){return null===e||f1(e)?t(e):n(e)}}};const Q1={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return f1(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Z1={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},J0(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||m1(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||f1(n)?(e.exit("atxHeading"),t(n)):g1(n)?w1(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||m1(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const J1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],e2=["pre","script","style","textarea"],t2={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:L):s1(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),a=2,d):91===o?(e.consume(o),a=5,s=0,p):s1(o)?(e.consume(o),a=4,r.interrupt?t:L):n(o)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:L):n(a)}function p(a){const o="CDATA[";return a===o.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function h(t){return s1(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||m1(s)){const l=47===s,c=i.toLowerCase();return l||o||!e2.includes(c)?J1.includes(i.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?g(s):y(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||l1(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function g(t){return g1(t)?(e.consume(t),g):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||s1(t)?(e.consume(t),b):g1(t)?(e.consume(t),y):_(t)}function b(t){return 45===t||46===t||58===t||95===t||l1(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),k):g1(t)?(e.consume(t),v):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):g1(t)?(e.consume(t),k):x(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||f1(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||m1(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||g1(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||f1(t)?T(t):g1(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),D):63===t&&3===a?(e.consume(t),L):93===t&&5===a?(e.consume(t),P):!f1(t)||6!==a&&7!==a?null===t||f1(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(n2,M,C)(t))}function C(t){return e.check(r2,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||f1(t)?C(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),L):T(t)}function R(t){return 47===t?(e.consume(t),i="",O):T(t)}function O(t){if(62===t){const n=i.toLowerCase();return e2.includes(n)?(e.consume(t),D):T(t)}return s1(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),O):T(t)}function P(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===a?(e.consume(t),L):T(t)}function D(t){return null===t||f1(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},n2={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(I1,t,n)}}},r2={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(f1(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const a2={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),b):s1(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):s1(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):f1(t)?(i=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):f1(t)?(i=f,O(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?R(t):f1(t)?(i=y,O(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):f1(t)?(i=b,O(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function k(t){return s1(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||l1(t)?(e.consume(t),w):x(t)}function x(t){return f1(t)?(i=x,O(t)):g1(t)?(e.consume(t),x):R(t)}function E(t){return 45===t||l1(t)?(e.consume(t),E):47===t||62===t||m1(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||s1(t)?(e.consume(t),S):f1(t)?(i=_,O(t)):g1(t)?(e.consume(t),_):R(t)}function S(t){return 45===t||46===t||58===t||95===t||l1(t)?(e.consume(t),S):T(t)}function T(t){return 61===t?(e.consume(t),C):f1(t)?(i=T,O(t)):g1(t)?(e.consume(t),T):_(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,A):f1(t)?(i=C,O(t)):g1(t)?(e.consume(t),C):(e.consume(t),N)}function A(t){return t===a?(e.consume(t),a=void 0,I):null===t?n(t):f1(t)?(i=A,O(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||m1(t)?_(t):(e.consume(t),N)}function I(e){return 47===e||62===e||m1(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return g1(t)?w1(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}};const o2={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&J0(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=e1(o,e.slice(r+1,r+s+3)),o=e1(o,[["enter",u,t]]),o=e1(o,T1(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=e1(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=e1(o,e.slice(a+1)),o=e1(o,[["exit",l,t]]),J0(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let a,o,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return o=r.parser.defined.includes(i1(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(i2,c,o?c:u)(t):91===t?e.attempt(s2,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(l2,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},i2={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return m1(t)?Y1(e,a)(t):a(t)}function a(t){return 41===t?c(t):G1(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return m1(t)?Y1(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?q1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return m1(t)?Y1(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},s2={tokenize:function(e,t,n){const r=this;return function(t){return W1.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(i1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},l2={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const c2={name:"labelStartImage",resolveAll:o2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const u2={name:"labelStartLink",resolveAll:o2.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const d2={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),w1(e,t,"linePrefix")}}};const p2={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),i(o)):a>=3&&(null===o||f1(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),g1(t)?w1(e,o,"whitespace")(t):o(t))}}};const h2={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(I1,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,w1(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!g1(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(m2,t,a)(n)}));function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,w1(e,e.attempt(h2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:d1(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(p2,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return d1(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(I1,r.interrupt?n:c,e.attempt(f2,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return g1(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},f2={partial:!0,tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return!g1(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},m2={partial:!0,tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const g2={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let i,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){i="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===a?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),g1(t)?w1(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||f1(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const y2={tokenize:function(e){const t=this,n=e.attempt(I1,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,w1(e,e.attempt(this.parser.constructs.flow,r,e.attempt($1,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const b2={resolveAll:x2()},v2=w2("string"),k2=w2("text");function w2(e){return{resolveAll:x2("text"===e?E2:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function x2(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function E2(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let o,i=a.length,s=-1,l=0;for(;i--;){const e=a[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const _2={42:h2,43:h2,45:h2,48:h2,49:h2,50:h2,51:h2,52:h2,53:h2,54:h2,55:h2,56:h2,57:h2,62:R1},S2={91:K1},T2={[-2]:M1,[-1]:M1,32:M1},C2={35:Z1,42:p2,45:[g2,p2],60:t2,61:g2,95:p2,96:D1,126:D1},A2={38:P1,92:O1},N2={[-5]:d2,[-4]:d2,[-3]:d2,33:c2,38:P1,42:C1,60:[N1,a2],91:u2,92:[Q1,O1],93:o2,95:C1,96:j1},I2={null:[C1,b2]},R2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:S2,disable:{null:[]},document:_2,flow:C2,flowInitial:T2,insideSpan:I2,string:A2,text:N2},Symbol.toStringTag,{value:"Module"}));function O2(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let i=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){f1(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,b()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let i;if("string"==typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&a)continue;i=" ";break;default:i=String.fromCharCode(o)}a=-2===o,r.push(i)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(i=e1(i,e),h(),null!==i[i.length-1])return[];return y(t,0),c.events=T1(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,o)];else{if(i=e.slice(n,a),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}o>0&&i.push(e[a].slice(0,o))}return i}(i,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function h(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,o){let i,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return i=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(s);return{from:a,restore:i};function i(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=o,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,h),a}function y(e){return h.restore(),++u<i.length?m(i[u]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&J0(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const P2=/[\0\t\n\r]/g;const L2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function D2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return o1(n.slice(t?2:1),t?16:10)}return Z0(n)||e}const M2={}.hasOwnProperty;function F2(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(Q),blockQuote:o(W),characterEscape:S,characterReference:S,codeFenced:o(q),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(q,i),codeText:o(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:o(K),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(X),hardBreakEscape:o(Z),hardBreakTrailing:o(Z),htmlFlow:o(J,i),htmlFlowData:S,htmlText:o(J,i),htmlTextData:S,image:o(ee),label:i,link:o(te),listItem:o(re),listItemValue:p,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(ae),reference:B,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Q),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:G,autolinkProtocol:V,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:U,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:T,codeIndented:l(y),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:k,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(P),label:D,labelText:L,lineEnding:C,link:l(O),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(_),setextHeadingLineSequence:E,setextHeadingText:x,strong:l(),thematicBreak:l()}};B2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];M2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||z2).call(o,void 0,e[0])}for(r.position={start:j2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:j2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:j2(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+S0({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||z2).call(this,e,r[0])}n.position.end=j2(e.end)}function u(){return Y0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=i1(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function S(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:j2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=j2(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=j2(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(L2,D2)}(t),n.identifier=i1(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=o1(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Z0(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=j2(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!z1(e););return e}(function(e){const t={constructs:n1([R2,...(e||{}).extensions||[]]),content:n(x1),defined:[],document:n(E1),flow:n(y2),lazy:{},string:n(v2),text:n(k2)};return t;function n(e){return function(n){return O2(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,o,i){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(P2.lastIndex=u,l=P2.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function j2(e){return{line:e.line,column:e.column,offset:e.offset}}function B2(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?B2(e,r):H2(e,r)}}function H2(e,t){let n;for(n in t)if(M2.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function z2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+S0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+S0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+S0({start:t.start,end:t.end})+") is still open")}function U2(e){const t=this;t.parser=function(n){return F2(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $2(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function V2(e){const t=e.spread;return null==t?e.children.length>1:t}function G2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(W2(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(W2(t.slice(a),a>0,!1)),o.join("")}function W2(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const q2={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=k1(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $2(e,t);const a={src:k1(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:k1(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return $2(e,t);const a={href:k1(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:k1(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=V2(n[r])}return t}(n):V2(t),o={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=E0(t.children[1]),i=x0(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:G2(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Y2,yaml:Y2,definition:Y2,footnoteDefinition:Y2};function Y2(){}const K2="object"==typeof self?self:globalThis,X2=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new K2[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new K2[o](i),a)};return r})(new Map,e)(0),Q2="",{toString:Z2}={},{keys:J2}=Object,e5=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Z2.call(e).slice(8,-1);switch(n){case"Array":return[1,Q2];case"Object":return[2,Q2];case"Date":return[3,Q2];case"RegExp":return[4,Q2];case"Map":return[5,Q2];case"Set":return[6,Q2];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},t5=([e,t])=>0===e&&("function"===t||"symbol"===t),n5=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},o=r=>{if(n.has(r))return n.get(r);let[i,s]=e5(r);switch(i){case 0:{let t=r;switch(s){case"bigint":i=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([i,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([i,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=a([i,n],r);for(const t of J2(r))!e&&t5(e5(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return a([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([i,{source:e,flags:t}],r)}case 5:{const t=[],n=a([i,t],r);for(const[a,i]of r)(e||!t5(e5(a))&&!t5(e5(i)))&&t.push([o(a),o(i)]);return n}case 6:{const t=[],n=a([i,t],r);for(const a of r)!e&&t5(e5(a))||t.push(o(a));return n}}const{message:l}=r;return a([i,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},r5="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?X2(n5(e,t)):structuredClone(e):(e,t)=>X2(n5(e,t));function a5(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function o5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const i5=function(e){if(null==e)return l5;if("function"==typeof e)return s5(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=i5(e[n]);return s5(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return s5(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return s5(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function s5(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function l5(){return!0}const c5=[],u5=!0,d5=!1;function p5(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const o=i5(a),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=c5;if((!t||o(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[u5,e];return null==e?c5:[e]}(n(a,l)),p[0]===d5))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===d5)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function h5(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),p5(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}const f5={}.hasOwnProperty,m5={};function g5(e,t){e.position&&(t.position=function(e){const t=E0(e),n=x0(e);if(t&&n)return{start:t,end:n}}(e))}function y5(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,r5(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function b5(e,t){const n=t.data||{},r=!("value"in t)||f5.call(n,"hProperties")||f5.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function v5(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function k5(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function w5(e,t){const n=function(e,t){const n=t||m5,r=new Map,a=new Map,o=new Map,i={...q2,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=k5(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=k5(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:y5,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=s.handlers[n];if(f5.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=r5(n);return r.children=s.all(e),r}return r5(e)}return(s.options.unknownHandler||b5)(s,e,t)},options:n,patch:g5,wrap:v5};return h5(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||a5,r=e.options.footnoteBackLabel||o5,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const o=e.all(a),i=String(a.identifier).toUpperCase(),c=k1(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...r5(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:"\n"},a),o}function x5(e,t){return e&&"run"in e?async function(n,r){const a=w5(n,{file:r,...t});await e.run(a,r)}:function(n,r){return w5(n,{file:r,...e||t})}}function E5(e){if(e)throw e}var _5=Object.prototype.hasOwnProperty,S5=Object.prototype.toString,T5=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,A5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===S5.call(e)},N5=function(e){if(!e||"[object Object]"!==S5.call(e))return!1;var t,n=_5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&_5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||_5.call(e,t)},I5=function(e,t){T5&&"__proto__"===t.name?T5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},R5=function(e,t){if("__proto__"===t){if(!_5.call(e,t))return;if(C5)return C5(e,t).value}return e[t]},O5=function e(){var t,n,r,a,o,i,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=R5(s,n),s!==(a=R5(t,n))&&(u&&a&&(N5(a)||(o=A5(a)))?(o?(o=!1,i=r&&A5(r)?r:[]):i=r&&N5(r)?r:{},I5(s,{name:n,newValue:e(u,i,a)})):void 0!==a&&I5(s,{name:n,newValue:a}));return s};const P5=c(O5);function L5(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function D5(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(o,...i){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==i[l]&&void 0!==i[l]||(i[l]=t[l]);t=i,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(o){if(r&&n)throw o;return a(o)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,a):s instanceof Error?a(s):i(s))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const M5={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');F5(e);let n,r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(F5(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){F5(e);let t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)F5(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){F5(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",o=0):(a=a.slice(0,r),o=a.length-1-a.lastIndexOf("/")),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function F5(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const j5={cwd:function(){return"/"}};function B5(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function H5(e){if("string"==typeof e)e=new URL(e);else if(!B5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const z5=["history","path","basename","stem","extname","dirname"];class U5{constructor(e){let t;t=e?B5(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":j5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<z5.length;){const e=z5[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)z5.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?M5.basename(this.path):void 0}set basename(e){V5(e,"basename"),$5(e,"basename"),this.path=M5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?M5.dirname(this.path):void 0}set dirname(e){G5(this.basename,"dirname"),this.path=M5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?M5.extname(this.path):void 0}set extname(e){if($5(e,"extname"),G5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=M5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){B5(e)&&(e=H5(e)),V5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?M5.basename(this.path,this.extname):void 0}set stem(e){V5(e,"stem"),$5(e,"stem"),this.path=M5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new N0(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function $5(e,t){if(e&&e.includes(M5.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M5.sep+"`")}function V5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function G5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const W5=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},q5={}.hasOwnProperty;class Y5 extends W5{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=D5()}copy(){const e=new Y5;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(P5(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Z5("data",this.frozen),this.namespace[e]=t,this):q5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Z5("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=t3(e),n=this.parser||this.Parser;return X5("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),X5("process",this.parser||this.Parser),Q5("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const o=t3(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,(function(e,t,r){if(e||!t||!r)return s(e);const a=t,o=n.stringify(a,r);var i;"string"==typeof(i=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=o:r.result=o,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),X5("processSync",this.parser||this.Parser),Q5("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,E5(e),t=r})),e3("processSync","process",n),t}run(e,t,n){J5(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){const i=t3(t);r.run(e,i,(function(t,r,i){const s=r||e;t?o(t):a?a(s):n(void 0,s,i)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){E5(e),n=t,r=!0})),e3("runSync","run",r),n}stringify(e,t){this.freeze();const n=t3(t),r=this.compiler||this.Compiler;return Q5("stringify",r),J5(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Z5("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?i(e):o(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(e.plugins),e.settings&&(r.settings=P5(!0,r.settings,e.settings))}function i(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const i=n[a][1];L5(i)&&L5(r)&&(r=P5(!0,i,r)),n[a]=[e,r,...o]}}}}const K5=(new Y5).freeze();function X5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Q5(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Z5(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function J5(e){if(!L5(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function e3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function t3(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new U5(e)}const n3=[],r3={allowDangerousHtml:!0},a3=/^(https?|ircs?|mailto|xmpp)$/i,o3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function i3(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,i=e.disallowedElements,s=e.rehypePlugins||n3,l=e.remarkPlugins||n3,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...r3}:r3,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||s3,h=K5().use(U2).use(l).use(x5,c).use(s),f=new U5;"string"==typeof r&&(f.value=r);for(const y of o3)Object.hasOwn(e,y.from)&&(y.from,y.to&&y.to,y.id);const m=h.parse(f);let g=h.runSync(m,f);return a&&(g={type:"element",tagName:"div",properties:{className:a},children:"root"===g.type?g.children:[g]}),h5(g,(function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return u?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in W0)if(Object.hasOwn(W0,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=W0[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=p(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,a)),o&&a&&"number"==typeof r)return d&&e.children?a.children.splice(r,1,...e.children):a.children.splice(r,1),r}})),M0(g,{Fragment:qh.Fragment,components:o,ignoreInvalidStyle:!0,jsx:qh.jsx,jsxs:qh.jsxs,passKeys:!0,passNode:!0})}function s3(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||a3.test(e.slice(0,t))?e:""}const l3=/[#.]/g;function c3(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let i;if(null==n){i={type:"root",children:[]};const e=a;o.unshift(e)}else{i=function(e,t){const n=e||"",r={};let a,o,i=0;for(;i<n.length;){l3.lastIndex=i;const e=l3.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const s=i.tagName.toLowerCase(),l=r?r.get(s):void 0;if(i.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))o.unshift(a);else for(const[t,n]of Object.entries(a))u3(e,i.properties,t,n)}for(const e of o)d3(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function u3(e,t,n,r){const a=$J(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?YJ(r):a.commaSeparated?oJ(r):a.commaOrSpaceSeparated?YJ(oJ(r).join(" ")):p3(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(p3(a,a.property,t));o=e}"className"===a.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function d3(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)d3(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?d3(e,t.children):e.push(t)}}function p3(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||mJ(n)===mJ(t)))return!0}return n}const h3=c3(WJ,"div"),f3=c3(qJ,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function m3(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const g3={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y3={}.hasOwnProperty,b3=Object.prototype;function v3(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},w3(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:k3(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=m3(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=m3(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),o=r.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return n={type:"doctype"},w3(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},w3(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===g3.svg?qJ:WJ;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;y3.call(b3,n)||(a[n]=e.value)}const o="svg"===e.schema.space?f3:h3,i=o(t.tagName,a,k3(e,t.childNodes));if(w3(e,t,i),"template"===i.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&x3(r.startTag),o=r&&r.endTag&&x3(r.endTag),s=v3(e,n.content);a&&o&&e.file&&(s.position={start:a.end,end:o.start}),i.content=s}return e.schema=n,i}(e,t),n}}function k3(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=v3(e,t[n]);r.push(a)}return r}function w3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=x3(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)y3.call(n.attrs,a)&&(r[$J(e.schema,a).property]=x3(n.attrs[a]));n.startTag;const o=x3(n.startTag),i=n.endTag?x3(n.endTag):void 0,s={opening:o};i&&(s.closing=i),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function x3(e){const t=E3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=E3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function E3(e){return e.line&&e.column?e:void 0}class _3{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function S3(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new _3(n,r,t)}function T3(e){return e.toLowerCase()}_3.prototype.property={},_3.prototype.normal={},_3.prototype.space=null;class C3{constructor(e,t){this.property=e,this.attribute=t}}C3.prototype.space=null,C3.prototype.boolean=!1,C3.prototype.booleanish=!1,C3.prototype.overloadedBoolean=!1,C3.prototype.number=!1,C3.prototype.commaSeparated=!1,C3.prototype.spaceSeparated=!1,C3.prototype.commaOrSpaceSeparated=!1,C3.prototype.mustUseProperty=!1,C3.prototype.defined=!1;let A3=0;const N3=M3(),I3=M3(),R3=M3(),O3=M3(),P3=M3(),L3=M3(),D3=M3();function M3(){return 2**++A3}const F3=Object.freeze(Object.defineProperty({__proto__:null,boolean:N3,booleanish:I3,commaOrSpaceSeparated:D3,commaSeparated:L3,number:O3,overloadedBoolean:R3,spaceSeparated:P3},Symbol.toStringTag,{value:"Module"})),j3=Object.keys(F3);class B3 extends C3{constructor(e,t,n,r){let a=-1;if(super(e,t),H3(this,"space",r),"number"==typeof n)for(;++a<j3.length;){const e=j3[a];H3(this,j3[a],(n&F3[e])===F3[e])}}}function H3(e,t,n){n&&(e[t]=n)}B3.prototype.defined=!0;const z3={}.hasOwnProperty;function U3(e){const t={},n={};let r;for(r in e.properties)if(z3.call(e.properties,r)){const a=e.properties[r],o=new B3(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[T3(r)]=r,n[T3(o.attribute)]=r}return new _3(t,n,e.space)}const $3=U3({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),V3=U3({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function G3(e,t){return t in e?e[t]:t}function W3(e,t){return G3(e,t.toLowerCase())}const q3=U3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:W3,properties:{xmlns:null,xmlnsXLink:null}}),Y3=U3({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:I3,ariaAutoComplete:null,ariaBusy:I3,ariaChecked:I3,ariaColCount:O3,ariaColIndex:O3,ariaColSpan:O3,ariaControls:P3,ariaCurrent:null,ariaDescribedBy:P3,ariaDetails:null,ariaDisabled:I3,ariaDropEffect:P3,ariaErrorMessage:null,ariaExpanded:I3,ariaFlowTo:P3,ariaGrabbed:I3,ariaHasPopup:null,ariaHidden:I3,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P3,ariaLevel:O3,ariaLive:null,ariaModal:I3,ariaMultiLine:I3,ariaMultiSelectable:I3,ariaOrientation:null,ariaOwns:P3,ariaPlaceholder:null,ariaPosInSet:O3,ariaPressed:I3,ariaReadOnly:I3,ariaRelevant:null,ariaRequired:I3,ariaRoleDescription:P3,ariaRowCount:O3,ariaRowIndex:O3,ariaRowSpan:O3,ariaSelected:I3,ariaSetSize:O3,ariaSort:null,ariaValueMax:O3,ariaValueMin:O3,ariaValueNow:O3,ariaValueText:null,role:null}}),K3=U3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:W3,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:L3,acceptCharset:P3,accessKey:P3,action:null,allow:null,allowFullScreen:N3,allowPaymentRequest:N3,allowUserMedia:N3,alt:null,as:null,async:N3,autoCapitalize:null,autoComplete:P3,autoFocus:N3,autoPlay:N3,blocking:P3,capture:null,charSet:null,checked:N3,cite:null,className:P3,cols:O3,colSpan:null,content:null,contentEditable:I3,controls:N3,controlsList:P3,coords:O3|L3,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N3,defer:N3,dir:null,dirName:null,disabled:N3,download:R3,draggable:I3,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N3,formTarget:null,headers:P3,height:O3,hidden:N3,high:O3,href:null,hrefLang:null,htmlFor:P3,httpEquiv:P3,id:null,imageSizes:null,imageSrcSet:null,inert:N3,inputMode:null,integrity:null,is:null,isMap:N3,itemId:null,itemProp:P3,itemRef:P3,itemScope:N3,itemType:P3,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N3,low:O3,manifest:null,max:null,maxLength:O3,media:null,method:null,min:null,minLength:O3,multiple:N3,muted:N3,name:null,nonce:null,noModule:N3,noValidate:N3,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N3,optimum:O3,pattern:null,ping:P3,placeholder:null,playsInline:N3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N3,referrerPolicy:null,rel:P3,required:N3,reversed:N3,rows:O3,rowSpan:O3,sandbox:P3,scope:null,scoped:N3,seamless:N3,selected:N3,shadowRootClonable:N3,shadowRootDelegatesFocus:N3,shadowRootMode:null,shape:null,size:O3,sizes:null,slot:null,span:O3,spellCheck:I3,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O3,step:null,style:null,tabIndex:O3,target:null,title:null,translate:null,type:null,typeMustMatch:N3,useMap:null,value:I3,width:O3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P3,axis:null,background:null,bgColor:null,border:O3,borderColor:null,bottomMargin:O3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N3,declare:N3,event:null,face:null,frame:null,frameBorder:null,hSpace:O3,leftMargin:O3,link:null,longDesc:null,lowSrc:null,marginHeight:O3,marginWidth:O3,noResize:N3,noHref:N3,noShade:N3,noWrap:N3,object:null,profile:null,prompt:null,rev:null,rightMargin:O3,rules:null,scheme:null,scrolling:I3,standby:null,summary:null,text:null,topMargin:O3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N3,disableRemotePlayback:N3,prefix:null,property:null,results:O3,security:null,unselectable:null}}),X3=U3({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:G3,properties:{about:D3,accentHeight:O3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O3,amplitude:O3,arabicForm:null,ascent:O3,attributeName:null,attributeType:null,azimuth:O3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O3,by:null,calcMode:null,capHeight:O3,className:P3,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O3,diffuseConstant:O3,direction:null,display:null,dur:null,divisor:O3,dominantBaseline:null,download:N3,dx:null,dy:null,edgeMode:null,editable:null,elevation:O3,enableBackground:null,end:null,event:null,exponent:O3,externalResourcesRequired:null,fill:null,fillOpacity:O3,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:L3,g2:L3,glyphName:L3,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O3,horizOriginX:O3,horizOriginY:O3,id:null,ideographic:O3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O3,k:O3,k1:O3,k2:O3,k3:O3,k4:O3,kernelMatrix:D3,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O3,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O3,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O3,overlineThickness:O3,paintOrder:null,panose1:null,path:null,pathLength:O3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P3,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O3,pointsAtY:O3,pointsAtZ:O3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D3,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D3,rev:D3,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D3,requiredFeatures:D3,requiredFonts:D3,requiredFormats:D3,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O3,specularExponent:O3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O3,strikethroughThickness:O3,string:null,stroke:null,strokeDashArray:D3,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O3,strokeOpacity:O3,strokeWidth:null,style:null,surfaceScale:O3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D3,tabIndex:O3,tableValues:null,target:null,targetX:O3,targetY:O3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D3,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O3,underlineThickness:O3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O3,values:null,vAlphabetic:O3,vMathematical:O3,vectorEffect:null,vHanging:O3,vIdeographic:O3,version:null,vertAdvY:O3,vertOriginX:O3,vertOriginY:O3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Q3=/^data[-\w.:]+$/i,Z3=/-[a-z]/g,J3=/[A-Z]/g;function e4(e){return"-"+e.toLowerCase()}function t4(e){return e.charAt(1).toUpperCase()}const n4=S3([V3,$3,q3,Y3,K3],"html"),r4=S3([V3,$3,q3,Y3,X3],"svg"),a4={}.hasOwnProperty;function o4(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const o=r.handlers;if(t&&a4.call(t,e)){const n=String(t[e]);a=a4.call(o,n)?o[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const i4={},s4={}.hasOwnProperty,l4=o4("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=u4(e.children,n,t),d4(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=r4);const a=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&s4.call(e.properties,o)){const t=c4(r,o,e.properties[o]);t&&a.push(t)}const i=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:g3[i],childNodes:[],parentNode:null};s.childNodes=u4(e.children,s,r),d4(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=u4(e.children,n,t),d4(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return d4(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return d4(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return d4(e,t),t}}});function c4(e,t,n){const r=function(e,t){const n=T3(t);let r=t,a=C3;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Q3.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Z3,t4);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Z3.test(e)){let n=e.replace(J3,e4);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=B3}return new a(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?iJ(n):KJ(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=g3[r.space]}return a}function u4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=l4(e[r],n);o.parentNode=t,a.push(o)}return a}function d4(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const p4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),f4="�";var m4,g4;(g4=m4||(m4={}))[g4.EOF=-1]="EOF",g4[g4.NULL=0]="NULL",g4[g4.TABULATION=9]="TABULATION",g4[g4.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",g4[g4.LINE_FEED=10]="LINE_FEED",g4[g4.FORM_FEED=12]="FORM_FEED",g4[g4.SPACE=32]="SPACE",g4[g4.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",g4[g4.QUOTATION_MARK=34]="QUOTATION_MARK",g4[g4.AMPERSAND=38]="AMPERSAND",g4[g4.APOSTROPHE=39]="APOSTROPHE",g4[g4.HYPHEN_MINUS=45]="HYPHEN_MINUS",g4[g4.SOLIDUS=47]="SOLIDUS",g4[g4.DIGIT_0=48]="DIGIT_0",g4[g4.DIGIT_9=57]="DIGIT_9",g4[g4.SEMICOLON=59]="SEMICOLON",g4[g4.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",g4[g4.EQUALS_SIGN=61]="EQUALS_SIGN",g4[g4.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",g4[g4.QUESTION_MARK=63]="QUESTION_MARK",g4[g4.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",g4[g4.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",g4[g4.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",g4[g4.GRAVE_ACCENT=96]="GRAVE_ACCENT",g4[g4.LATIN_SMALL_A=97]="LATIN_SMALL_A",g4[g4.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const y4="--",b4="[CDATA[",v4="doctype",k4="script",w4="public",x4="system";function E4(e){return e>=55296&&e<=57343}function _4(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function S4(e){return e>=64976&&e<=65007||h4.has(e)}var T4,C4;(C4=T4||(T4={})).controlCharacterInInputStream="control-character-in-input-stream",C4.noncharacterInInputStream="noncharacter-in-input-stream",C4.surrogateInInputStream="surrogate-in-input-stream",C4.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",C4.endTagWithAttributes="end-tag-with-attributes",C4.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",C4.unexpectedSolidusInTag="unexpected-solidus-in-tag",C4.unexpectedNullCharacter="unexpected-null-character",C4.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",C4.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",C4.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",C4.missingEndTagName="missing-end-tag-name",C4.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",C4.unknownNamedCharacterReference="unknown-named-character-reference",C4.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",C4.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",C4.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",C4.eofBeforeTagName="eof-before-tag-name",C4.eofInTag="eof-in-tag",C4.missingAttributeValue="missing-attribute-value",C4.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",C4.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",C4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",C4.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",C4.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",C4.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",C4.missingDoctypePublicIdentifier="missing-doctype-public-identifier",C4.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",C4.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",C4.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",C4.cdataInHtmlContent="cdata-in-html-content",C4.incorrectlyOpenedComment="incorrectly-opened-comment",C4.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",C4.eofInDoctype="eof-in-doctype",C4.nestedComment="nested-comment",C4.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",C4.eofInComment="eof-in-comment",C4.incorrectlyClosedComment="incorrectly-closed-comment",C4.eofInCdata="eof-in-cdata",C4.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",C4.nullCharacterReference="null-character-reference",C4.surrogateCharacterReference="surrogate-character-reference",C4.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",C4.controlCharacterReference="control-character-reference",C4.noncharacterCharacterReference="noncharacter-character-reference",C4.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",C4.missingDoctypeName="missing-doctype-name",C4.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",C4.duplicateAttribute="duplicate-attribute",C4.nonConformingDoctype="non-conforming-doctype",C4.missingDoctype="missing-doctype",C4.misplacedDoctype="misplaced-doctype",C4.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",C4.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",C4.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",C4.openElementsLeftAfterEof="open-elements-left-after-eof",C4.abandonedHeadElementChild="abandoned-head-element-child",C4.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",C4.nestedNoscriptInHead="nested-noscript-in-head",C4.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class A4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,o=r+t,i=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m4.EOF;return this._err(T4.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m4.EOF;const n=this.html.charCodeAt(t);return n===m4.CARRIAGE_RETURN?m4.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m4.EOF;let e=this.html.charCodeAt(this.pos);if(e===m4.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,m4.LINE_FEED;if(e===m4.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,E4(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===m4.LINE_FEED||e===m4.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){_4(e)?this._err(T4.controlCharacterInInputStream):S4(e)&&this._err(T4.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var N4,I4;function R4(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(I4=N4||(N4={}))[I4.CHARACTER=0]="CHARACTER",I4[I4.NULL_CHARACTER=1]="NULL_CHARACTER",I4[I4.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",I4[I4.START_TAG=3]="START_TAG",I4[I4.END_TAG=4]="END_TAG",I4[I4.COMMENT=5]="COMMENT",I4[I4.DOCTYPE=6]="DOCTYPE",I4[I4.EOF=7]="EOF",I4[I4.HIBERNATION=8]="HIBERNATION";const O4=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),P4=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var L4;const D4=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),M4=null!==(L4=String.fromCodePoint)&&void 0!==L4?L4:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var F4,j4;(j4=F4||(F4={}))[j4.NUM=35]="NUM",j4[j4.SEMI=59]="SEMI",j4[j4.EQUALS=61]="EQUALS",j4[j4.ZERO=48]="ZERO",j4[j4.NINE=57]="NINE",j4[j4.LOWER_A=97]="LOWER_A",j4[j4.LOWER_F=102]="LOWER_F",j4[j4.LOWER_X=120]="LOWER_X",j4[j4.LOWER_Z=122]="LOWER_Z",j4[j4.UPPER_A=65]="UPPER_A",j4[j4.UPPER_F=70]="UPPER_F",j4[j4.UPPER_Z=90]="UPPER_Z";var B4,H4,z4,U4,$4,V4,G4,W4,q4,Y4,K4,X4,Q4,Z4,J4,e6;function t6(e){return e>=F4.ZERO&&e<=F4.NINE}function n6(e){return e===F4.EQUALS||function(e){return e>=F4.UPPER_A&&e<=F4.UPPER_Z||e>=F4.LOWER_A&&e<=F4.LOWER_Z||t6(e)}(e)}(H4=B4||(B4={}))[H4.VALUE_LENGTH=49152]="VALUE_LENGTH",H4[H4.BRANCH_LENGTH=16256]="BRANCH_LENGTH",H4[H4.JUMP_TABLE=127]="JUMP_TABLE",(U4=z4||(z4={}))[U4.EntityStart=0]="EntityStart",U4[U4.NumericStart=1]="NumericStart",U4[U4.NumericDecimal=2]="NumericDecimal",U4[U4.NumericHex=3]="NumericHex",U4[U4.NamedEntity=4]="NamedEntity",(V4=$4||($4={}))[V4.Legacy=0]="Legacy",V4[V4.Strict=1]="Strict",V4[V4.Attribute=2]="Attribute";class r6{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=z4.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$4.Strict}startEntity(e){this.decodeMode=e,this.state=z4.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case z4.EntityStart:return e.charCodeAt(t)===F4.NUM?(this.state=z4.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=z4.NamedEntity,this.stateNamedEntity(e,t));case z4.NumericStart:return this.stateNumericStart(e,t);case z4.NumericDecimal:return this.stateNumericDecimal(e,t);case z4.NumericHex:return this.stateNumericHex(e,t);case z4.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===F4.LOWER_X?(this.state=z4.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=z4.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const a=e.charCodeAt(t);if(!(t6(a)||(r=a,r>=F4.UPPER_A&&r<=F4.UPPER_F||r>=F4.LOWER_A&&r<=F4.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!t6(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===F4.SEMI)this.consumed+=1;else if(this.decodeMode===$4.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=D4.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==F4.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&B4.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=o6(n,r,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===$4.Attribute&&(0===a||n6(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&B4.VALUE_LENGTH)>>14,0!==a){if(o===F4.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==$4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&B4.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~B4.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case z4.NamedEntity:return 0===this.result||this.decodeMode===$4.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case z4.NumericDecimal:return this.emitNumericEntity(0,2);case z4.NumericHex:return this.emitNumericEntity(0,3);case z4.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case z4.EntityStart:return 0}}}function a6(e){let t="";const n=new r6(e,(e=>t+=M4(e)));return function(e,r){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),n.startEntity(r);const i=n.write(e,o+1);if(i<0){a=o+n.end();break}a=o+i,o=0===i?a+1:a}const i=t+e.slice(a);return t="",i}}function o6(e,t,n,r){const a=(t&B4.BRANCH_LENGTH)>>7,o=t&B4.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=a?-1:e[n+t]-1}let i=n,s=i+a-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}a6(O4),a6(P4),(W4=G4||(G4={})).HTML="http://www.w3.org/1999/xhtml",W4.MATHML="http://www.w3.org/1998/Math/MathML",W4.SVG="http://www.w3.org/2000/svg",W4.XLINK="http://www.w3.org/1999/xlink",W4.XML="http://www.w3.org/XML/1998/namespace",W4.XMLNS="http://www.w3.org/2000/xmlns/",(Y4=q4||(q4={})).TYPE="type",Y4.ACTION="action",Y4.ENCODING="encoding",Y4.PROMPT="prompt",Y4.NAME="name",Y4.COLOR="color",Y4.FACE="face",Y4.SIZE="size",(X4=K4||(K4={})).NO_QUIRKS="no-quirks",X4.QUIRKS="quirks",X4.LIMITED_QUIRKS="limited-quirks",(Z4=Q4||(Q4={})).A="a",Z4.ADDRESS="address",Z4.ANNOTATION_XML="annotation-xml",Z4.APPLET="applet",Z4.AREA="area",Z4.ARTICLE="article",Z4.ASIDE="aside",Z4.B="b",Z4.BASE="base",Z4.BASEFONT="basefont",Z4.BGSOUND="bgsound",Z4.BIG="big",Z4.BLOCKQUOTE="blockquote",Z4.BODY="body",Z4.BR="br",Z4.BUTTON="button",Z4.CAPTION="caption",Z4.CENTER="center",Z4.CODE="code",Z4.COL="col",Z4.COLGROUP="colgroup",Z4.DD="dd",Z4.DESC="desc",Z4.DETAILS="details",Z4.DIALOG="dialog",Z4.DIR="dir",Z4.DIV="div",Z4.DL="dl",Z4.DT="dt",Z4.EM="em",Z4.EMBED="embed",Z4.FIELDSET="fieldset",Z4.FIGCAPTION="figcaption",Z4.FIGURE="figure",Z4.FONT="font",Z4.FOOTER="footer",Z4.FOREIGN_OBJECT="foreignObject",Z4.FORM="form",Z4.FRAME="frame",Z4.FRAMESET="frameset",Z4.H1="h1",Z4.H2="h2",Z4.H3="h3",Z4.H4="h4",Z4.H5="h5",Z4.H6="h6",Z4.HEAD="head",Z4.HEADER="header",Z4.HGROUP="hgroup",Z4.HR="hr",Z4.HTML="html",Z4.I="i",Z4.IMG="img",Z4.IMAGE="image",Z4.INPUT="input",Z4.IFRAME="iframe",Z4.KEYGEN="keygen",Z4.LABEL="label",Z4.LI="li",Z4.LINK="link",Z4.LISTING="listing",Z4.MAIN="main",Z4.MALIGNMARK="malignmark",Z4.MARQUEE="marquee",Z4.MATH="math",Z4.MENU="menu",Z4.META="meta",Z4.MGLYPH="mglyph",Z4.MI="mi",Z4.MO="mo",Z4.MN="mn",Z4.MS="ms",Z4.MTEXT="mtext",Z4.NAV="nav",Z4.NOBR="nobr",Z4.NOFRAMES="noframes",Z4.NOEMBED="noembed",Z4.NOSCRIPT="noscript",Z4.OBJECT="object",Z4.OL="ol",Z4.OPTGROUP="optgroup",Z4.OPTION="option",Z4.P="p",Z4.PARAM="param",Z4.PLAINTEXT="plaintext",Z4.PRE="pre",Z4.RB="rb",Z4.RP="rp",Z4.RT="rt",Z4.RTC="rtc",Z4.RUBY="ruby",Z4.S="s",Z4.SCRIPT="script",Z4.SEARCH="search",Z4.SECTION="section",Z4.SELECT="select",Z4.SOURCE="source",Z4.SMALL="small",Z4.SPAN="span",Z4.STRIKE="strike",Z4.STRONG="strong",Z4.STYLE="style",Z4.SUB="sub",Z4.SUMMARY="summary",Z4.SUP="sup",Z4.TABLE="table",Z4.TBODY="tbody",Z4.TEMPLATE="template",Z4.TEXTAREA="textarea",Z4.TFOOT="tfoot",Z4.TD="td",Z4.TH="th",Z4.THEAD="thead",Z4.TITLE="title",Z4.TR="tr",Z4.TRACK="track",Z4.TT="tt",Z4.U="u",Z4.UL="ul",Z4.SVG="svg",Z4.VAR="var",Z4.WBR="wbr",Z4.XMP="xmp",(e6=J4||(J4={}))[e6.UNKNOWN=0]="UNKNOWN",e6[e6.A=1]="A",e6[e6.ADDRESS=2]="ADDRESS",e6[e6.ANNOTATION_XML=3]="ANNOTATION_XML",e6[e6.APPLET=4]="APPLET",e6[e6.AREA=5]="AREA",e6[e6.ARTICLE=6]="ARTICLE",e6[e6.ASIDE=7]="ASIDE",e6[e6.B=8]="B",e6[e6.BASE=9]="BASE",e6[e6.BASEFONT=10]="BASEFONT",e6[e6.BGSOUND=11]="BGSOUND",e6[e6.BIG=12]="BIG",e6[e6.BLOCKQUOTE=13]="BLOCKQUOTE",e6[e6.BODY=14]="BODY",e6[e6.BR=15]="BR",e6[e6.BUTTON=16]="BUTTON",e6[e6.CAPTION=17]="CAPTION",e6[e6.CENTER=18]="CENTER",e6[e6.CODE=19]="CODE",e6[e6.COL=20]="COL",e6[e6.COLGROUP=21]="COLGROUP",e6[e6.DD=22]="DD",e6[e6.DESC=23]="DESC",e6[e6.DETAILS=24]="DETAILS",e6[e6.DIALOG=25]="DIALOG",e6[e6.DIR=26]="DIR",e6[e6.DIV=27]="DIV",e6[e6.DL=28]="DL",e6[e6.DT=29]="DT",e6[e6.EM=30]="EM",e6[e6.EMBED=31]="EMBED",e6[e6.FIELDSET=32]="FIELDSET",e6[e6.FIGCAPTION=33]="FIGCAPTION",e6[e6.FIGURE=34]="FIGURE",e6[e6.FONT=35]="FONT",e6[e6.FOOTER=36]="FOOTER",e6[e6.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e6[e6.FORM=38]="FORM",e6[e6.FRAME=39]="FRAME",e6[e6.FRAMESET=40]="FRAMESET",e6[e6.H1=41]="H1",e6[e6.H2=42]="H2",e6[e6.H3=43]="H3",e6[e6.H4=44]="H4",e6[e6.H5=45]="H5",e6[e6.H6=46]="H6",e6[e6.HEAD=47]="HEAD",e6[e6.HEADER=48]="HEADER",e6[e6.HGROUP=49]="HGROUP",e6[e6.HR=50]="HR",e6[e6.HTML=51]="HTML",e6[e6.I=52]="I",e6[e6.IMG=53]="IMG",e6[e6.IMAGE=54]="IMAGE",e6[e6.INPUT=55]="INPUT",e6[e6.IFRAME=56]="IFRAME",e6[e6.KEYGEN=57]="KEYGEN",e6[e6.LABEL=58]="LABEL",e6[e6.LI=59]="LI",e6[e6.LINK=60]="LINK",e6[e6.LISTING=61]="LISTING",e6[e6.MAIN=62]="MAIN",e6[e6.MALIGNMARK=63]="MALIGNMARK",e6[e6.MARQUEE=64]="MARQUEE",e6[e6.MATH=65]="MATH",e6[e6.MENU=66]="MENU",e6[e6.META=67]="META",e6[e6.MGLYPH=68]="MGLYPH",e6[e6.MI=69]="MI",e6[e6.MO=70]="MO",e6[e6.MN=71]="MN",e6[e6.MS=72]="MS",e6[e6.MTEXT=73]="MTEXT",e6[e6.NAV=74]="NAV",e6[e6.NOBR=75]="NOBR",e6[e6.NOFRAMES=76]="NOFRAMES",e6[e6.NOEMBED=77]="NOEMBED",e6[e6.NOSCRIPT=78]="NOSCRIPT",e6[e6.OBJECT=79]="OBJECT",e6[e6.OL=80]="OL",e6[e6.OPTGROUP=81]="OPTGROUP",e6[e6.OPTION=82]="OPTION",e6[e6.P=83]="P",e6[e6.PARAM=84]="PARAM",e6[e6.PLAINTEXT=85]="PLAINTEXT",e6[e6.PRE=86]="PRE",e6[e6.RB=87]="RB",e6[e6.RP=88]="RP",e6[e6.RT=89]="RT",e6[e6.RTC=90]="RTC",e6[e6.RUBY=91]="RUBY",e6[e6.S=92]="S",e6[e6.SCRIPT=93]="SCRIPT",e6[e6.SEARCH=94]="SEARCH",e6[e6.SECTION=95]="SECTION",e6[e6.SELECT=96]="SELECT",e6[e6.SOURCE=97]="SOURCE",e6[e6.SMALL=98]="SMALL",e6[e6.SPAN=99]="SPAN",e6[e6.STRIKE=100]="STRIKE",e6[e6.STRONG=101]="STRONG",e6[e6.STYLE=102]="STYLE",e6[e6.SUB=103]="SUB",e6[e6.SUMMARY=104]="SUMMARY",e6[e6.SUP=105]="SUP",e6[e6.TABLE=106]="TABLE",e6[e6.TBODY=107]="TBODY",e6[e6.TEMPLATE=108]="TEMPLATE",e6[e6.TEXTAREA=109]="TEXTAREA",e6[e6.TFOOT=110]="TFOOT",e6[e6.TD=111]="TD",e6[e6.TH=112]="TH",e6[e6.THEAD=113]="THEAD",e6[e6.TITLE=114]="TITLE",e6[e6.TR=115]="TR",e6[e6.TRACK=116]="TRACK",e6[e6.TT=117]="TT",e6[e6.U=118]="U",e6[e6.UL=119]="UL",e6[e6.SVG=120]="SVG",e6[e6.VAR=121]="VAR",e6[e6.WBR=122]="WBR",e6[e6.XMP=123]="XMP";const i6=new Map([[Q4.A,J4.A],[Q4.ADDRESS,J4.ADDRESS],[Q4.ANNOTATION_XML,J4.ANNOTATION_XML],[Q4.APPLET,J4.APPLET],[Q4.AREA,J4.AREA],[Q4.ARTICLE,J4.ARTICLE],[Q4.ASIDE,J4.ASIDE],[Q4.B,J4.B],[Q4.BASE,J4.BASE],[Q4.BASEFONT,J4.BASEFONT],[Q4.BGSOUND,J4.BGSOUND],[Q4.BIG,J4.BIG],[Q4.BLOCKQUOTE,J4.BLOCKQUOTE],[Q4.BODY,J4.BODY],[Q4.BR,J4.BR],[Q4.BUTTON,J4.BUTTON],[Q4.CAPTION,J4.CAPTION],[Q4.CENTER,J4.CENTER],[Q4.CODE,J4.CODE],[Q4.COL,J4.COL],[Q4.COLGROUP,J4.COLGROUP],[Q4.DD,J4.DD],[Q4.DESC,J4.DESC],[Q4.DETAILS,J4.DETAILS],[Q4.DIALOG,J4.DIALOG],[Q4.DIR,J4.DIR],[Q4.DIV,J4.DIV],[Q4.DL,J4.DL],[Q4.DT,J4.DT],[Q4.EM,J4.EM],[Q4.EMBED,J4.EMBED],[Q4.FIELDSET,J4.FIELDSET],[Q4.FIGCAPTION,J4.FIGCAPTION],[Q4.FIGURE,J4.FIGURE],[Q4.FONT,J4.FONT],[Q4.FOOTER,J4.FOOTER],[Q4.FOREIGN_OBJECT,J4.FOREIGN_OBJECT],[Q4.FORM,J4.FORM],[Q4.FRAME,J4.FRAME],[Q4.FRAMESET,J4.FRAMESET],[Q4.H1,J4.H1],[Q4.H2,J4.H2],[Q4.H3,J4.H3],[Q4.H4,J4.H4],[Q4.H5,J4.H5],[Q4.H6,J4.H6],[Q4.HEAD,J4.HEAD],[Q4.HEADER,J4.HEADER],[Q4.HGROUP,J4.HGROUP],[Q4.HR,J4.HR],[Q4.HTML,J4.HTML],[Q4.I,J4.I],[Q4.IMG,J4.IMG],[Q4.IMAGE,J4.IMAGE],[Q4.INPUT,J4.INPUT],[Q4.IFRAME,J4.IFRAME],[Q4.KEYGEN,J4.KEYGEN],[Q4.LABEL,J4.LABEL],[Q4.LI,J4.LI],[Q4.LINK,J4.LINK],[Q4.LISTING,J4.LISTING],[Q4.MAIN,J4.MAIN],[Q4.MALIGNMARK,J4.MALIGNMARK],[Q4.MARQUEE,J4.MARQUEE],[Q4.MATH,J4.MATH],[Q4.MENU,J4.MENU],[Q4.META,J4.META],[Q4.MGLYPH,J4.MGLYPH],[Q4.MI,J4.MI],[Q4.MO,J4.MO],[Q4.MN,J4.MN],[Q4.MS,J4.MS],[Q4.MTEXT,J4.MTEXT],[Q4.NAV,J4.NAV],[Q4.NOBR,J4.NOBR],[Q4.NOFRAMES,J4.NOFRAMES],[Q4.NOEMBED,J4.NOEMBED],[Q4.NOSCRIPT,J4.NOSCRIPT],[Q4.OBJECT,J4.OBJECT],[Q4.OL,J4.OL],[Q4.OPTGROUP,J4.OPTGROUP],[Q4.OPTION,J4.OPTION],[Q4.P,J4.P],[Q4.PARAM,J4.PARAM],[Q4.PLAINTEXT,J4.PLAINTEXT],[Q4.PRE,J4.PRE],[Q4.RB,J4.RB],[Q4.RP,J4.RP],[Q4.RT,J4.RT],[Q4.RTC,J4.RTC],[Q4.RUBY,J4.RUBY],[Q4.S,J4.S],[Q4.SCRIPT,J4.SCRIPT],[Q4.SEARCH,J4.SEARCH],[Q4.SECTION,J4.SECTION],[Q4.SELECT,J4.SELECT],[Q4.SOURCE,J4.SOURCE],[Q4.SMALL,J4.SMALL],[Q4.SPAN,J4.SPAN],[Q4.STRIKE,J4.STRIKE],[Q4.STRONG,J4.STRONG],[Q4.STYLE,J4.STYLE],[Q4.SUB,J4.SUB],[Q4.SUMMARY,J4.SUMMARY],[Q4.SUP,J4.SUP],[Q4.TABLE,J4.TABLE],[Q4.TBODY,J4.TBODY],[Q4.TEMPLATE,J4.TEMPLATE],[Q4.TEXTAREA,J4.TEXTAREA],[Q4.TFOOT,J4.TFOOT],[Q4.TD,J4.TD],[Q4.TH,J4.TH],[Q4.THEAD,J4.THEAD],[Q4.TITLE,J4.TITLE],[Q4.TR,J4.TR],[Q4.TRACK,J4.TRACK],[Q4.TT,J4.TT],[Q4.U,J4.U],[Q4.UL,J4.UL],[Q4.SVG,J4.SVG],[Q4.VAR,J4.VAR],[Q4.WBR,J4.WBR],[Q4.XMP,J4.XMP]]);function s6(e){var t;return null!==(t=i6.get(e))&&void 0!==t?t:J4.UNKNOWN}const l6=J4,c6={[G4.HTML]:new Set([l6.ADDRESS,l6.APPLET,l6.AREA,l6.ARTICLE,l6.ASIDE,l6.BASE,l6.BASEFONT,l6.BGSOUND,l6.BLOCKQUOTE,l6.BODY,l6.BR,l6.BUTTON,l6.CAPTION,l6.CENTER,l6.COL,l6.COLGROUP,l6.DD,l6.DETAILS,l6.DIR,l6.DIV,l6.DL,l6.DT,l6.EMBED,l6.FIELDSET,l6.FIGCAPTION,l6.FIGURE,l6.FOOTER,l6.FORM,l6.FRAME,l6.FRAMESET,l6.H1,l6.H2,l6.H3,l6.H4,l6.H5,l6.H6,l6.HEAD,l6.HEADER,l6.HGROUP,l6.HR,l6.HTML,l6.IFRAME,l6.IMG,l6.INPUT,l6.LI,l6.LINK,l6.LISTING,l6.MAIN,l6.MARQUEE,l6.MENU,l6.META,l6.NAV,l6.NOEMBED,l6.NOFRAMES,l6.NOSCRIPT,l6.OBJECT,l6.OL,l6.P,l6.PARAM,l6.PLAINTEXT,l6.PRE,l6.SCRIPT,l6.SECTION,l6.SELECT,l6.SOURCE,l6.STYLE,l6.SUMMARY,l6.TABLE,l6.TBODY,l6.TD,l6.TEMPLATE,l6.TEXTAREA,l6.TFOOT,l6.TH,l6.THEAD,l6.TITLE,l6.TR,l6.TRACK,l6.UL,l6.WBR,l6.XMP]),[G4.MATHML]:new Set([l6.MI,l6.MO,l6.MN,l6.MS,l6.MTEXT,l6.ANNOTATION_XML]),[G4.SVG]:new Set([l6.TITLE,l6.FOREIGN_OBJECT,l6.DESC]),[G4.XLINK]:new Set,[G4.XML]:new Set,[G4.XMLNS]:new Set},u6=new Set([l6.H1,l6.H2,l6.H3,l6.H4,l6.H5,l6.H6]);var d6,p6;Q4.STYLE,Q4.SCRIPT,Q4.XMP,Q4.IFRAME,Q4.NOEMBED,Q4.NOFRAMES,Q4.PLAINTEXT,(p6=d6||(d6={}))[p6.DATA=0]="DATA",p6[p6.RCDATA=1]="RCDATA",p6[p6.RAWTEXT=2]="RAWTEXT",p6[p6.SCRIPT_DATA=3]="SCRIPT_DATA",p6[p6.PLAINTEXT=4]="PLAINTEXT",p6[p6.TAG_OPEN=5]="TAG_OPEN",p6[p6.END_TAG_OPEN=6]="END_TAG_OPEN",p6[p6.TAG_NAME=7]="TAG_NAME",p6[p6.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",p6[p6.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",p6[p6.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",p6[p6.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",p6[p6.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",p6[p6.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",p6[p6.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",p6[p6.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",p6[p6.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",p6[p6.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",p6[p6.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",p6[p6.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",p6[p6.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",p6[p6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",p6[p6.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",p6[p6.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",p6[p6.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",p6[p6.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",p6[p6.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",p6[p6.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",p6[p6.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",p6[p6.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",p6[p6.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",p6[p6.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",p6[p6.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",p6[p6.BOGUS_COMMENT=40]="BOGUS_COMMENT",p6[p6.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",p6[p6.COMMENT_START=42]="COMMENT_START",p6[p6.COMMENT_START_DASH=43]="COMMENT_START_DASH",p6[p6.COMMENT=44]="COMMENT",p6[p6.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",p6[p6.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",p6[p6.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",p6[p6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",p6[p6.COMMENT_END_DASH=49]="COMMENT_END_DASH",p6[p6.COMMENT_END=50]="COMMENT_END",p6[p6.COMMENT_END_BANG=51]="COMMENT_END_BANG",p6[p6.DOCTYPE=52]="DOCTYPE",p6[p6.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",p6[p6.DOCTYPE_NAME=54]="DOCTYPE_NAME",p6[p6.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",p6[p6.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",p6[p6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",p6[p6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",p6[p6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",p6[p6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",p6[p6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",p6[p6.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",p6[p6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",p6[p6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",p6[p6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",p6[p6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",p6[p6.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",p6[p6.CDATA_SECTION=68]="CDATA_SECTION",p6[p6.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",p6[p6.CDATA_SECTION_END=70]="CDATA_SECTION_END",p6[p6.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",p6[p6.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const h6={DATA:d6.DATA,RCDATA:d6.RCDATA,RAWTEXT:d6.RAWTEXT,SCRIPT_DATA:d6.SCRIPT_DATA,PLAINTEXT:d6.PLAINTEXT,CDATA_SECTION:d6.CDATA_SECTION};function f6(e){return e>=m4.LATIN_CAPITAL_A&&e<=m4.LATIN_CAPITAL_Z}function m6(e){return function(e){return e>=m4.LATIN_SMALL_A&&e<=m4.LATIN_SMALL_Z}(e)||f6(e)}function g6(e){return m6(e)||function(e){return e>=m4.DIGIT_0&&e<=m4.DIGIT_9}(e)}function y6(e){return e+32}function b6(e){return e===m4.SPACE||e===m4.LINE_FEED||e===m4.TABULATION||e===m4.FORM_FEED}function v6(e){return b6(e)||e===m4.SOLIDUS||e===m4.GREATER_THAN_SIGN}class k6{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=d6.DATA,this.returnState=d6.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new A4(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new r6(O4,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(T4.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(T4.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===m4.NULL?T4.nullCharacterReference:e>1114111?T4.characterReferenceOutsideUnicodeRange:E4(e)?T4.surrogateCharacterReference:S4(e)?T4.noncharacterCharacterReference:_4(e)||e===m4.CARRIAGE_RETURN?T4.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:N4.START_TAG,tagName:"",tagID:J4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:N4.END_TAG,tagName:"",tagID:J4.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:N4.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:N4.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===R4(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(T4.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=s6(e.tagName),e.type===N4.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(T4.endTagWithAttributes),e.selfClosing&&this._err(T4.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case N4.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case N4.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case N4.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:N4.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=b6(e)?N4.WHITESPACE_CHARACTER:e===m4.NULL?N4.NULL_CHARACTER:N4.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(N4.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=d6.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?$4.Attribute:$4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===d6.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===d6.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case d6.DATA:this._stateData(e);break;case d6.RCDATA:this._stateRcdata(e);break;case d6.RAWTEXT:this._stateRawtext(e);break;case d6.SCRIPT_DATA:this._stateScriptData(e);break;case d6.PLAINTEXT:this._statePlaintext(e);break;case d6.TAG_OPEN:this._stateTagOpen(e);break;case d6.END_TAG_OPEN:this._stateEndTagOpen(e);break;case d6.TAG_NAME:this._stateTagName(e);break;case d6.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case d6.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case d6.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case d6.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case d6.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case d6.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case d6.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case d6.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case d6.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case d6.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case d6.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case d6.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case d6.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case d6.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case d6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case d6.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case d6.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case d6.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case d6.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case d6.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case d6.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case d6.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case d6.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case d6.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case d6.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case d6.BOGUS_COMMENT:this._stateBogusComment(e);break;case d6.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case d6.COMMENT_START:this._stateCommentStart(e);break;case d6.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case d6.COMMENT:this._stateComment(e);break;case d6.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case d6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case d6.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case d6.COMMENT_END:this._stateCommentEnd(e);break;case d6.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case d6.DOCTYPE:this._stateDoctype(e);break;case d6.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case d6.DOCTYPE_NAME:this._stateDoctypeName(e);break;case d6.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case d6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case d6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case d6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case d6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case d6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case d6.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case d6.CDATA_SECTION:this._stateCdataSection(e);break;case d6.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case d6.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case d6.CHARACTER_REFERENCE:this._stateCharacterReference();break;case d6.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.TAG_OPEN;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitCodePoint(e);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m4.AMPERSAND:this._startCharacterReference();break;case m4.LESS_THAN_SIGN:this.state=d6.RCDATA_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.RAWTEXT_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(m6(e))this._createStartTagToken(),this.state=d6.TAG_NAME,this._stateTagName(e);else switch(e){case m4.EXCLAMATION_MARK:this.state=d6.MARKUP_DECLARATION_OPEN;break;case m4.SOLIDUS:this.state=d6.END_TAG_OPEN;break;case m4.QUESTION_MARK:this._err(T4.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e);break;case m4.EOF:this._err(T4.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(T4.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=d6.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(m6(e))this._createEndTagToken(),this.state=d6.TAG_NAME,this._stateTagName(e);else switch(e){case m4.GREATER_THAN_SIGN:this._err(T4.missingEndTagName),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(T4.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.SOLIDUS:this.state=d6.SELF_CLOSING_START_TAG;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.tagName+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateRcdataLessThanSign(e){e===m4.SOLIDUS?this.state=d6.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=d6.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){m6(e)?(this.state=d6.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=d6.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=d6.BEFORE_ATTRIBUTE_NAME,!1;case m4.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=d6.SELF_CLOSING_START_TAG,!1;case m4.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=d6.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===m4.SOLIDUS?this.state=d6.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){m6(e)?(this.state=d6.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case m4.SOLIDUS:this.state=d6.SCRIPT_DATA_END_TAG_OPEN;break;case m4.EXCLAMATION_MARK:this.state=d6.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){m6(e)?(this.state=d6.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===m4.HYPHEN_MINUS?(this.state=d6.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===m4.HYPHEN_MINUS?(this.state=d6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=d6.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case m4.HYPHEN_MINUS:this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m4.GREATER_THAN_SIGN:this.state=d6.SCRIPT_DATA,this._emitChars(">");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m4.SOLIDUS?this.state=d6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:m6(e)?(this._emitChars("<"),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){m6(e)?(this.state=d6.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(k4,!1)&&v6(this.preprocessor.peek(k4.length))){this._emitCodePoint(e);for(let e=0;e<k4.length;e++)this._emitCodePoint(this._consume());this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=d6.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case m4.HYPHEN_MINUS:this._emitChars("-");break;case m4.LESS_THAN_SIGN:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m4.GREATER_THAN_SIGN:this.state=d6.SCRIPT_DATA,this._emitChars(">");break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(f4);break;case m4.EOF:this._err(T4.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m4.SOLIDUS?(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(k4,!1)&&v6(this.preprocessor.peek(k4.length))){this._emitCodePoint(e);for(let e=0;e<k4.length;e++)this._emitCodePoint(this._consume());this.state=d6.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=d6.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.SOLIDUS:case m4.GREATER_THAN_SIGN:case m4.EOF:this.state=d6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m4.EQUALS_SIGN:this._err(T4.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=d6.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=d6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:case m4.SOLIDUS:case m4.GREATER_THAN_SIGN:case m4.EOF:this._leaveAttrName(),this.state=d6.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m4.EQUALS_SIGN:this._leaveAttrName(),this.state=d6.BEFORE_ATTRIBUTE_VALUE;break;case m4.QUOTATION_MARK:case m4.APOSTROPHE:case m4.LESS_THAN_SIGN:this._err(T4.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.name+=f4;break;default:this.currentAttr.name+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateAfterAttributeName(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.SOLIDUS:this.state=d6.SELF_CLOSING_START_TAG;break;case m4.EQUALS_SIGN:this.state=d6.BEFORE_ATTRIBUTE_VALUE;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=d6.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:this.state=d6.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this.state=d6.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingAttributeValue),this.state=d6.DATA,this.emitCurrentTagToken();break;default:this.state=d6.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this._leaveAttrValue(),this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.AMPERSAND:this._startCharacterReference();break;case m4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this.currentAttr.value+=f4;break;case m4.QUOTATION_MARK:case m4.APOSTROPHE:case m4.LESS_THAN_SIGN:case m4.EQUALS_SIGN:case m4.GRAVE_ACCENT:this._err(T4.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this._leaveAttrValue(),this.state=d6.BEFORE_ATTRIBUTE_NAME;break;case m4.SOLIDUS:this._leaveAttrValue(),this.state=d6.SELF_CLOSING_START_TAG;break;case m4.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._err(T4.missingWhitespaceBetweenAttributes),this.state=d6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case m4.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=d6.DATA,this.emitCurrentTagToken();break;case m4.EOF:this._err(T4.eofInTag),this._emitEOFToken();break;default:this._err(T4.unexpectedSolidusInTag),this.state=d6.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.data+=f4;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(y4,!0)?(this._createCommentToken(y4.length+1),this.state=d6.COMMENT_START):this._consumeSequenceIfMatch(v4,!1)?(this.currentLocation=this.getCurrentLocation(v4.length+1),this.state=d6.DOCTYPE):this._consumeSequenceIfMatch(b4,!0)?this.inForeignNode?this.state=d6.CDATA_SECTION:(this._err(T4.cdataInHtmlContent),this._createCommentToken(b4.length+1),this.currentToken.data="[CDATA[",this.state=d6.BOGUS_COMMENT):this._ensureHibernation()||(this._err(T4.incorrectlyOpenedComment),this._createCommentToken(2),this.state=d6.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_START_DASH;break;case m4.GREATER_THAN_SIGN:{this._err(T4.abruptClosingOfEmptyComment),this.state=d6.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptClosingOfEmptyComment),this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=d6.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END_DASH;break;case m4.LESS_THAN_SIGN:t.data+="<",this.state=d6.COMMENT_LESS_THAN_SIGN;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.data+=f4;break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case m4.EXCLAMATION_MARK:t.data+="!",this.state=d6.COMMENT_LESS_THAN_SIGN_BANG;break;case m4.LESS_THAN_SIGN:t.data+="<";break;default:this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===m4.HYPHEN_MINUS?this.state=d6.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=d6.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===m4.HYPHEN_MINUS?this.state=d6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=d6.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==m4.GREATER_THAN_SIGN&&e!==m4.EOF&&this._err(T4.nestedComment),this.state=d6.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:this.state=d6.COMMENT_END;break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EXCLAMATION_MARK:this.state=d6.COMMENT_END_BANG;break;case m4.HYPHEN_MINUS:t.data+="-";break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=d6.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case m4.HYPHEN_MINUS:t.data+="--!",this.state=d6.COMMENT_END_DASH;break;case m4.GREATER_THAN_SIGN:this._err(T4.incorrectlyClosedComment),this.state=d6.DATA,this.emitCurrentComment(t);break;case m4.EOF:this._err(T4.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=d6.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:this.state=d6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case m4.EOF:{this._err(T4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(T4.missingWhitespaceBeforeDoctypeName),this.state=d6.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(f6(e))this._createDoctypeToken(String.fromCharCode(y6(e))),this.state=d6.DOCTYPE_NAME;else switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.NULL:this._err(T4.unexpectedNullCharacter),this._createDoctypeToken(f4),this.state=d6.DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:{this._err(T4.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=d6.DATA;break}case m4.EOF:{this._err(T4.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=d6.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.AFTER_DOCTYPE_NAME;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.name+=f4;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(f6(e)?y6(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(w4,!1)?this.state=d6.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(x4,!1)?this.state=d6.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(T4.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.publicId="",this.state=d6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.publicId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.publicId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case m4.GREATER_THAN_SIGN:this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.QUOTATION_MARK:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:this.state=d6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.QUOTATION_MARK:this._err(T4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:this._err(T4.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.QUOTATION_MARK:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m4.APOSTROPHE:t.systemId="",this.state=d6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m4.GREATER_THAN_SIGN:this._err(T4.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.DATA,this.emitCurrentDoctype(t);break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m4.QUOTATION_MARK:this.state=d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.systemId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m4.APOSTROPHE:this.state=d6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m4.NULL:this._err(T4.unexpectedNullCharacter),t.systemId+=f4;break;case m4.GREATER_THAN_SIGN:this._err(T4.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m4.SPACE:case m4.LINE_FEED:case m4.TABULATION:case m4.FORM_FEED:break;case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.EOF:this._err(T4.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(T4.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=d6.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case m4.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=d6.DATA;break;case m4.NULL:this._err(T4.unexpectedNullCharacter);break;case m4.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case m4.RIGHT_SQUARE_BRACKET:this.state=d6.CDATA_SECTION_BRACKET;break;case m4.EOF:this._err(T4.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===m4.RIGHT_SQUARE_BRACKET?this.state=d6.CDATA_SECTION_END:(this._emitChars("]"),this.state=d6.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case m4.GREATER_THAN_SIGN:this.state=d6.DATA;break;case m4.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=d6.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m4.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&g6(this.preprocessor.peek(1))?d6.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){g6(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===m4.SEMICOLON&&this._err(T4.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const w6=new Set([J4.DD,J4.DT,J4.LI,J4.OPTGROUP,J4.OPTION,J4.P,J4.RB,J4.RP,J4.RT,J4.RTC]),x6=new Set([...w6,J4.CAPTION,J4.COLGROUP,J4.TBODY,J4.TD,J4.TFOOT,J4.TH,J4.THEAD,J4.TR]),E6=new Set([J4.APPLET,J4.CAPTION,J4.HTML,J4.MARQUEE,J4.OBJECT,J4.TABLE,J4.TD,J4.TEMPLATE,J4.TH]),_6=new Set([...E6,J4.OL,J4.UL]),S6=new Set([...E6,J4.BUTTON]),T6=new Set([J4.ANNOTATION_XML,J4.MI,J4.MN,J4.MO,J4.MS,J4.MTEXT]),C6=new Set([J4.DESC,J4.FOREIGN_OBJECT,J4.TITLE]),A6=new Set([J4.TR,J4.TEMPLATE,J4.HTML]),N6=new Set([J4.TBODY,J4.TFOOT,J4.THEAD,J4.TEMPLATE,J4.HTML]),I6=new Set([J4.TABLE,J4.TEMPLATE,J4.HTML]),R6=new Set([J4.TD,J4.TH]);class O6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=J4.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===J4.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===G4.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==G4.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(u6,G4.HTML)}popUntilTableCellPopped(){this.popUntilPopped(R6,G4.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(I6,G4.HTML)}clearBackToTableBodyContext(){this.clearBackTo(N6,G4.HTML)}clearBackToTableRowContext(){this.clearBackTo(A6,G4.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===J4.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===J4.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case G4.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case G4.SVG:if(C6.has(r))return!1;break;case G4.MATHML:if(T6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,E6)}hasInListItemScope(e){return this.hasInDynamicScope(e,_6)}hasInButtonScope(e){return this.hasInDynamicScope(e,S6)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case G4.HTML:if(u6.has(t))return!0;if(E6.has(t))return!1;break;case G4.SVG:if(C6.has(t))return!1;break;case G4.MATHML:if(T6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===G4.HTML)switch(this.tagIDs[t]){case e:return!0;case J4.TABLE:case J4.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===G4.HTML)switch(this.tagIDs[e]){case J4.TBODY:case J4.THEAD:case J4.TFOOT:return!0;case J4.TABLE:case J4.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===G4.HTML)switch(this.tagIDs[t]){case e:return!0;case J4.OPTION:case J4.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;w6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;x6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&x6.has(this.currentTagId);)this.pop()}}var P6,L6;(L6=P6||(P6={}))[L6.Marker=0]="Marker",L6[L6.Element=1]="Element";const D6={type:P6.Marker};class M6{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let i=0;i<this.entries.length;i++){const e=this.entries[i];if(e.type===P6.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:i,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let a=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(D6)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:P6.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:P6.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(D6);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===P6.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===P6.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===P6.Element&&t.element===e))}}const F6={createDocument:()=>({nodeName:"#document",mode:K4.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find((e=>"#documentType"===e.nodeName));if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};F6.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(F6.isTextNode(n))return void(n.value+=t)}F6.appendChild(e,F6.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&F6.isTextNode(r)?r.value+=t:F6.insertBefore(e,F6.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},j6="html",B6=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],H6=[...B6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],z6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),U6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$6=[...U6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function V6(e,t){return t.some((t=>e.startsWith(t)))}const G6="text/html",W6="application/xhtml+xml",q6=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Y6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G4.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G4.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G4.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G4.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G4.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G4.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G4.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:G4.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G4.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G4.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G4.XMLNS}]]),K6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),X6=new Set([J4.B,J4.BIG,J4.BLOCKQUOTE,J4.BODY,J4.BR,J4.CENTER,J4.CODE,J4.DD,J4.DIV,J4.DL,J4.DT,J4.EM,J4.EMBED,J4.H1,J4.H2,J4.H3,J4.H4,J4.H5,J4.H6,J4.HEAD,J4.HR,J4.I,J4.IMG,J4.LI,J4.LISTING,J4.MENU,J4.META,J4.NOBR,J4.OL,J4.P,J4.PRE,J4.RUBY,J4.S,J4.SMALL,J4.SPAN,J4.STRONG,J4.STRIKE,J4.SUB,J4.SUP,J4.TABLE,J4.TT,J4.U,J4.UL,J4.VAR]);function Q6(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Z6(e){for(let t=0;t<e.attrs.length;t++){const n=q6.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function J6(e){for(let t=0;t<e.attrs.length;t++){const n=Y6.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function e8(e,t,n,r){return(!r||r===G4.HTML)&&function(e,t,n){if(t===G4.MATHML&&e===J4.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===q4.ENCODING){const e=n[r].value.toLowerCase();return e===G6||e===W6}return t===G4.SVG&&(e===J4.FOREIGN_OBJECT||e===J4.DESC||e===J4.TITLE)}(e,t,n)||(!r||r===G4.MATHML)&&function(e,t){return t===G4.MATHML&&(e===J4.MI||e===J4.MO||e===J4.MN||e===J4.MS||e===J4.MTEXT)}(e,t)}var t8,n8;(n8=t8||(t8={}))[n8.INITIAL=0]="INITIAL",n8[n8.BEFORE_HTML=1]="BEFORE_HTML",n8[n8.BEFORE_HEAD=2]="BEFORE_HEAD",n8[n8.IN_HEAD=3]="IN_HEAD",n8[n8.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",n8[n8.AFTER_HEAD=5]="AFTER_HEAD",n8[n8.IN_BODY=6]="IN_BODY",n8[n8.TEXT=7]="TEXT",n8[n8.IN_TABLE=8]="IN_TABLE",n8[n8.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",n8[n8.IN_CAPTION=10]="IN_CAPTION",n8[n8.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",n8[n8.IN_TABLE_BODY=12]="IN_TABLE_BODY",n8[n8.IN_ROW=13]="IN_ROW",n8[n8.IN_CELL=14]="IN_CELL",n8[n8.IN_SELECT=15]="IN_SELECT",n8[n8.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",n8[n8.IN_TEMPLATE=17]="IN_TEMPLATE",n8[n8.AFTER_BODY=18]="AFTER_BODY",n8[n8.IN_FRAMESET=19]="IN_FRAMESET",n8[n8.AFTER_FRAMESET=20]="AFTER_FRAMESET",n8[n8.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",n8[n8.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const r8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},a8=new Set([J4.TABLE,J4.TBODY,J4.TFOOT,J4.THEAD,J4.TR]),o8={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:F6,onParseError:null};class i8{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=t8.INITIAL,this.originalInsertionMode=t8.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...o8,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new k6(this.options,this),this.activeFormattingElements=new M6(this.treeAdapter),this.fragmentContextID=n?s6(this.treeAdapter.getTagName(n)):J4.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new O6(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...o8,...t};null!=e||(e=n.treeAdapter.createElement(Q4.TEMPLATE,G4.HTML,[]));const r=n.treeAdapter.createElement("documentmock",G4.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===J4.TEMPLATE&&a.tmplInsertionModeStack.unshift(t8.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:r8,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===G4.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,G4.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=t8.TEXT}switchToPlaintextParsing(){this.insertionMode=t8.TEXT,this.originalInsertionMode=t8.IN_BODY,this.tokenizer.state=h6.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Q4.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===G4.HTML)switch(this.fragmentContextID){case J4.TITLE:case J4.TEXTAREA:this.tokenizer.state=h6.RCDATA;break;case J4.STYLE:case J4.XMP:case J4.IFRAME:case J4.NOEMBED:case J4.NOFRAMES:case J4.NOSCRIPT:this.tokenizer.state=h6.RAWTEXT;break;case J4.SCRIPT:this.tokenizer.state=h6.SCRIPT_DATA;break;case J4.PLAINTEXT:this.tokenizer.state=h6.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,G4.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,G4.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Q4.HTML,G4.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,J4.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,o=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===N4.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==J4.SVG||this.treeAdapter.getTagName(t)!==Q4.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==G4.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===J4.MGLYPH||e.tagID===J4.MALIGNMARK)&&!this._isIntegrationPoint(n,t,G4.HTML))}_processToken(e){switch(e.type){case N4.CHARACTER:this.onCharacter(e);break;case N4.NULL_CHARACTER:this.onNullCharacter(e);break;case N4.COMMENT:this.onComment(e);break;case N4.DOCTYPE:this.onDoctype(e);break;case N4.START_TAG:this._processStartTag(e);break;case N4.END_TAG:this.onEndTag(e);break;case N4.EOF:this.onEof(e);break;case N4.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return e8(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===P6.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=t8.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(J4.P),this.openElements.popUntilTagNamePopped(J4.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case J4.TR:return void(this.insertionMode=t8.IN_ROW);case J4.TBODY:case J4.THEAD:case J4.TFOOT:return void(this.insertionMode=t8.IN_TABLE_BODY);case J4.CAPTION:return void(this.insertionMode=t8.IN_CAPTION);case J4.COLGROUP:return void(this.insertionMode=t8.IN_COLUMN_GROUP);case J4.TABLE:return void(this.insertionMode=t8.IN_TABLE);case J4.BODY:return void(this.insertionMode=t8.IN_BODY);case J4.FRAMESET:return void(this.insertionMode=t8.IN_FRAMESET);case J4.SELECT:return void this._resetInsertionModeForSelect(e);case J4.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case J4.HTML:return void(this.insertionMode=this.headElement?t8.AFTER_HEAD:t8.BEFORE_HEAD);case J4.TD:case J4.TH:if(e>0)return void(this.insertionMode=t8.IN_CELL);break;case J4.HEAD:if(e>0)return void(this.insertionMode=t8.IN_HEAD)}this.insertionMode=t8.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===J4.TEMPLATE)break;if(e===J4.TABLE)return void(this.insertionMode=t8.IN_SELECT_IN_TABLE)}this.insertionMode=t8.IN_SELECT}_isElementCausesFosterParenting(e){return a8.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case J4.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===G4.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case J4.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return c6[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.IN_BODY:case t8.IN_CAPTION:case t8.IN_CELL:case t8.IN_TEMPLATE:T8(this,e);break;case t8.TEXT:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_TABLE_TEXT:H8(this,e);break;case t8.IN_COLUMN_GROUP:V8(this,e);break;case t8.AFTER_BODY:J8(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=f4,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.TEXT:this._insertCharacters(e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_COLUMN_GROUP:V8(this,e);break;case t8.AFTER_BODY:J8(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)f8(this,e);else switch(this.insertionMode){case t8.INITIAL:case t8.BEFORE_HTML:case t8.BEFORE_HEAD:case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:case t8.IN_BODY:case t8.IN_TABLE:case t8.IN_CAPTION:case t8.IN_COLUMN_GROUP:case t8.IN_TABLE_BODY:case t8.IN_ROW:case t8.IN_CELL:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:case t8.IN_TEMPLATE:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:f8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case t8.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?K4.QUIRKS:function(e){if(e.name!==j6)return K4.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return K4.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),z6.has(n))return K4.QUIRKS;let e=null===t?H6:B6;if(V6(n,e))return K4.QUIRKS;if(e=null===t?U6:$6,V6(n,e))return K4.LIMITED_QUIRKS}return K4.NO_QUIRKS}(t);(function(e){return e.name===j6&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,T4.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=t8.BEFORE_HTML}(this,e);break;case t8.BEFORE_HEAD:case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:this._err(e,T4.misplacedDoctype);break;case t8.IN_TABLE_TEXT:z8(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,T4.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===J4.FONT&&e.attrs.some((({name:e})=>e===q4.COLOR||e===q4.SIZE||e===q4.FACE))||X6.has(t)}(t))t9(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===G4.MATHML?Q6(t):r===G4.SVG&&(!function(e){const t=K6.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=s6(e.tagName))}(t),Z6(t)),J6(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:!function(e,t){t.tagID===J4.HTML?(e._insertElement(t,G4.HTML),e.insertionMode=t8.BEFORE_HEAD):y8(e,t)}(this,e);break;case t8.BEFORE_HEAD:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.HEAD:e._insertElement(t,G4.HTML),e.headElement=e.openElements.current,e.insertionMode=t8.IN_HEAD;break;default:b8(e,t)}}(this,e);break;case t8.IN_HEAD:v8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BASEFONT:case J4.BGSOUND:case J4.HEAD:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.STYLE:v8(e,t);break;case J4.NOSCRIPT:e._err(t,T4.nestedNoscriptInHead);break;default:x8(e,t)}}(this,e);break;case t8.AFTER_HEAD:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BODY:e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=t8.IN_BODY;break;case J4.FRAMESET:e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_FRAMESET;break;case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.SCRIPT:case J4.STYLE:case J4.TEMPLATE:case J4.TITLE:e._err(t,T4.abandonedHeadElementChild),e.openElements.push(e.headElement,J4.HEAD),v8(e,t),e.openElements.remove(e.headElement);break;case J4.HEAD:e._err(t,T4.misplacedStartTagForHeadElement);break;default:E8(e,t)}}(this,e);break;case t8.IN_BODY:R8(this,e);break;case t8.IN_TABLE:M8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_CAPTION:!function(e,t){const n=t.tagID;U8.has(n)?e.openElements.hasInTableScope(J4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_TABLE,M8(e,t)):R8(e,t)}(this,e);break;case t8.IN_COLUMN_GROUP:$8(this,e);break;case t8.IN_TABLE_BODY:G8(this,e);break;case t8.IN_ROW:q8(this,e);break;case t8.IN_CELL:!function(e,t){const n=t.tagID;U8.has(n)?(e.openElements.hasInTableScope(J4.TD)||e.openElements.hasInTableScope(J4.TH))&&(e._closeTableCell(),q8(e,t)):R8(e,t)}(this,e);break;case t8.IN_SELECT:K8(this,e);break;case t8.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===J4.CAPTION||n===J4.TABLE||n===J4.TBODY||n===J4.TFOOT||n===J4.THEAD||n===J4.TR||n===J4.TD||n===J4.TH?(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),e._processStartTag(t)):K8(e,t)}(this,e);break;case t8.IN_TEMPLATE:!function(e,t){switch(t.tagID){case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:case J4.NOFRAMES:case J4.SCRIPT:case J4.STYLE:case J4.TEMPLATE:case J4.TITLE:v8(e,t);break;case J4.CAPTION:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.tmplInsertionModeStack[0]=t8.IN_TABLE,e.insertionMode=t8.IN_TABLE,M8(e,t);break;case J4.COL:e.tmplInsertionModeStack[0]=t8.IN_COLUMN_GROUP,e.insertionMode=t8.IN_COLUMN_GROUP,$8(e,t);break;case J4.TR:e.tmplInsertionModeStack[0]=t8.IN_TABLE_BODY,e.insertionMode=t8.IN_TABLE_BODY,G8(e,t);break;case J4.TD:case J4.TH:e.tmplInsertionModeStack[0]=t8.IN_ROW,e.insertionMode=t8.IN_ROW,q8(e,t);break;default:e.tmplInsertionModeStack[0]=t8.IN_BODY,e.insertionMode=t8.IN_BODY,R8(e,t)}}(this,e);break;case t8.AFTER_BODY:!function(e,t){t.tagID===J4.HTML?R8(e,t):J8(e,t)}(this,e);break;case t8.IN_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.FRAMESET:e._insertElement(t,G4.HTML);break;case J4.FRAME:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.NOFRAMES:v8(e,t)}}(this,e);break;case t8.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.NOFRAMES:v8(e,t)}}(this,e);break;case t8.AFTER_AFTER_BODY:!function(e,t){t.tagID===J4.HTML?R8(e,t):e9(e,t)}(this,e);break;case t8.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.NOFRAMES:v8(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===J4.P||t.tagID===J4.BR)return t9(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===G4.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==J4.HTML&&n!==J4.HEAD&&n!==J4.BODY&&n!==J4.BR||y8(e,t)}(this,e);break;case t8.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===J4.HEAD||n===J4.BODY||n===J4.HTML||n===J4.BR?b8(e,t):e._err(t,T4.endTagWithoutMatchingOpenElement)}(this,e);break;case t8.IN_HEAD:!function(e,t){switch(t.tagID){case J4.HEAD:e.openElements.pop(),e.insertionMode=t8.AFTER_HEAD;break;case J4.BODY:case J4.BR:case J4.HTML:w8(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case J4.NOSCRIPT:e.openElements.pop(),e.insertionMode=t8.IN_HEAD;break;case J4.BR:x8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.AFTER_HEAD:!function(e,t){switch(t.tagID){case J4.BODY:case J4.HTML:case J4.BR:E8(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:e._err(t,T4.endTagWithoutMatchingOpenElement)}}(this,e);break;case t8.IN_BODY:P8(this,e);break;case t8.TEXT:!function(e,t){var n;t.tagID===J4.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case t8.IN_TABLE:F8(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case J4.CAPTION:case J4.TABLE:e.openElements.hasInTableScope(J4.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_TABLE,n===J4.TABLE&&F8(e,t));break;case J4.BODY:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TBODY:case J4.TD:case J4.TFOOT:case J4.TH:case J4.THEAD:case J4.TR:break;default:P8(e,t)}}(this,e);break;case t8.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case J4.COLGROUP:e.openElements.currentTagId===J4.COLGROUP&&(e.openElements.pop(),e.insertionMode=t8.IN_TABLE);break;case J4.TEMPLATE:k8(e,t);break;case J4.COL:break;default:V8(e,t)}}(this,e);break;case t8.IN_TABLE_BODY:W8(this,e);break;case t8.IN_ROW:Y8(this,e);break;case t8.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case J4.TD:case J4.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=t8.IN_ROW);break;case J4.TABLE:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Y8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:break;default:P8(e,t)}}(this,e);break;case t8.IN_SELECT:X8(this,e);break;case t8.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===J4.CAPTION||n===J4.TABLE||n===J4.TBODY||n===J4.TFOOT||n===J4.THEAD||n===J4.TR||n===J4.TD||n===J4.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),e.onEndTag(t)):X8(e,t)}(this,e);break;case t8.IN_TEMPLATE:!function(e,t){t.tagID===J4.TEMPLATE&&k8(e,t)}(this,e);break;case t8.AFTER_BODY:Z8(this,e);break;case t8.IN_FRAMESET:!function(e,t){t.tagID!==J4.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===J4.FRAMESET||(e.insertionMode=t8.AFTER_FRAMESET))}(this,e);break;case t8.AFTER_FRAMESET:!function(e,t){t.tagID===J4.HTML&&(e.insertionMode=t8.AFTER_AFTER_FRAMESET)}(this,e);break;case t8.AFTER_AFTER_BODY:e9(this,e)}}onEof(e){switch(this.insertionMode){case t8.INITIAL:g8(this,e);break;case t8.BEFORE_HTML:y8(this,e);break;case t8.BEFORE_HEAD:b8(this,e);break;case t8.IN_HEAD:w8(this,e);break;case t8.IN_HEAD_NO_SCRIPT:x8(this,e);break;case t8.AFTER_HEAD:E8(this,e);break;case t8.IN_BODY:case t8.IN_TABLE:case t8.IN_CAPTION:case t8.IN_COLUMN_GROUP:case t8.IN_TABLE_BODY:case t8.IN_ROW:case t8.IN_CELL:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:L8(this,e);break;case t8.TEXT:!function(e,t){e._err(t,T4.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case t8.IN_TABLE_TEXT:z8(this,e);break;case t8.IN_TEMPLATE:Q8(this,e);break;case t8.AFTER_BODY:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:m8(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m4.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case t8.IN_HEAD:case t8.IN_HEAD_NO_SCRIPT:case t8.AFTER_HEAD:case t8.TEXT:case t8.IN_COLUMN_GROUP:case t8.IN_SELECT:case t8.IN_SELECT_IN_TABLE:case t8.IN_FRAMESET:case t8.AFTER_FRAMESET:this._insertCharacters(e);break;case t8.IN_BODY:case t8.IN_CAPTION:case t8.IN_CELL:case t8.IN_TEMPLATE:case t8.AFTER_BODY:case t8.AFTER_AFTER_BODY:case t8.AFTER_AFTER_FRAMESET:S8(this,e);break;case t8.IN_TABLE:case t8.IN_TABLE_BODY:case t8.IN_ROW:D8(this,e);break;case t8.IN_TABLE_TEXT:B8(this,e)}}}function s8(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):O8(e,t),n}function l8(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function c8(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);const n=e.activeFormattingElements.getElementEntry(i),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(i)):(i=u8(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function u8(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function d8(e,t,n){const r=s6(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===J4.TEMPLATE&&a===G4.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function p8(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function h8(e,t){for(let n=0;n<8;n++){const n=s8(e,t);if(!n)break;const r=l8(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=c8(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&d8(e,o,a),p8(e,r,n)}}function f8(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function m8(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function g8(e,t){e._err(t,T4.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,K4.QUIRKS),e.insertionMode=t8.BEFORE_HTML,e._processToken(t)}function y8(e,t){e._insertFakeRootElement(),e.insertionMode=t8.BEFORE_HEAD,e._processToken(t)}function b8(e,t){e._insertFakeElement(Q4.HEAD,J4.HEAD),e.headElement=e.openElements.current,e.insertionMode=t8.IN_HEAD,e._processToken(t)}function v8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.BASE:case J4.BASEFONT:case J4.BGSOUND:case J4.LINK:case J4.META:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.TITLE:e._switchToTextParsing(t,h6.RCDATA);break;case J4.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,h6.RAWTEXT):(e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_HEAD_NO_SCRIPT);break;case J4.NOFRAMES:case J4.STYLE:e._switchToTextParsing(t,h6.RAWTEXT);break;case J4.SCRIPT:e._switchToTextParsing(t,h6.SCRIPT_DATA);break;case J4.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=t8.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(t8.IN_TEMPLATE);break;case J4.HEAD:e._err(t,T4.misplacedStartTagForHeadElement);break;default:w8(e,t)}}function k8(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==J4.TEMPLATE&&e._err(t,T4.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(J4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,T4.endTagWithoutMatchingOpenElement)}function w8(e,t){e.openElements.pop(),e.insertionMode=t8.AFTER_HEAD,e._processToken(t)}function x8(e,t){const n=t.type===N4.EOF?T4.openElementsLeftAfterEof:T4.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=t8.IN_HEAD,e._processToken(t)}function E8(e,t){e._insertFakeElement(Q4.BODY,J4.BODY),e.insertionMode=t8.IN_BODY,_8(e,t)}function _8(e,t){switch(t.type){case N4.CHARACTER:T8(e,t);break;case N4.WHITESPACE_CHARACTER:S8(e,t);break;case N4.COMMENT:f8(e,t);break;case N4.START_TAG:R8(e,t);break;case N4.END_TAG:P8(e,t);break;case N4.EOF:L8(e,t)}}function S8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function T8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function A8(e){const t=R4(e,q4.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function N8(e,t){e._switchToTextParsing(t,h6.RAWTEXT)}function I8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML)}function R8(e,t){switch(t.tagID){case J4.I:case J4.S:case J4.B:case J4.U:case J4.EM:case J4.TT:case J4.BIG:case J4.CODE:case J4.FONT:case J4.SMALL:case J4.STRIKE:case J4.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Q4.A);n&&(h8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.H1:case J4.H2:case J4.H3:case J4.H4:case J4.H5:case J4.H6:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),u6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.P:case J4.DL:case J4.OL:case J4.UL:case J4.DIV:case J4.DIR:case J4.NAV:case J4.MAIN:case J4.MENU:case J4.ASIDE:case J4.CENTER:case J4.FIGURE:case J4.FOOTER:case J4.HEADER:case J4.HGROUP:case J4.DIALOG:case J4.DETAILS:case J4.ADDRESS:case J4.ARTICLE:case J4.SEARCH:case J4.SECTION:case J4.SUMMARY:case J4.FIELDSET:case J4.BLOCKQUOTE:case J4.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.LI:case J4.DD:case J4.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===J4.LI&&t===J4.LI||(n===J4.DD||n===J4.DT)&&(t===J4.DD||t===J4.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==J4.ADDRESS&&t!==J4.DIV&&t!==J4.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.BR:case J4.IMG:case J4.WBR:case J4.AREA:case J4.EMBED:case J4.KEYGEN:C8(e,t);break;case J4.HR:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._appendElement(t,G4.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case J4.RB:case J4.RTC:!function(e,t){e.openElements.hasInScope(J4.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.RT:case J4.RP:!function(e,t){e.openElements.hasInScope(J4.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(J4.RTC),e._insertElement(t,G4.HTML)}(e,t);break;case J4.PRE:case J4.LISTING:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case J4.XMP:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,h6.RAWTEXT)}(e,t);break;case J4.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Z6(t),J6(t),t.selfClosing?e._appendElement(t,G4.SVG):e._insertElement(t,G4.SVG),t.ackSelfClosing=!0}(e,t);break;case J4.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case J4.BASE:case J4.LINK:case J4.META:case J4.STYLE:case J4.TITLE:case J4.SCRIPT:case J4.BGSOUND:case J4.BASEFONT:case J4.TEMPLATE:v8(e,t);break;case J4.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case J4.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case J4.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(J4.NOBR)&&(h8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,G4.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case J4.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Q6(t),J6(t),t.selfClosing?e._appendElement(t,G4.MATHML):e._insertElement(t,G4.MATHML),t.ackSelfClosing=!0}(e,t);break;case J4.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==K4.QUIRKS&&e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=t8.IN_TABLE}(e,t);break;case J4.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G4.HTML),A8(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case J4.PARAM:case J4.TRACK:case J4.SOURCE:!function(e,t){e._appendElement(t,G4.HTML),t.ackSelfClosing=!0}(e,t);break;case J4.IMAGE:!function(e,t){t.tagName=Q4.IMG,t.tagID=J4.IMG,C8(e,t)}(e,t);break;case J4.BUTTON:!function(e,t){e.openElements.hasInScope(J4.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J4.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.framesetOk=!1}(e,t);break;case J4.APPLET:case J4.OBJECT:case J4.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case J4.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,h6.RAWTEXT)}(e,t);break;case J4.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===t8.IN_TABLE||e.insertionMode===t8.IN_CAPTION||e.insertionMode===t8.IN_TABLE_BODY||e.insertionMode===t8.IN_ROW||e.insertionMode===t8.IN_CELL?t8.IN_SELECT_IN_TABLE:t8.IN_SELECT}(e,t);break;case J4.OPTION:case J4.OPTGROUP:!function(e,t){e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,G4.HTML)}(e,t);break;case J4.NOEMBED:case J4.NOFRAMES:N8(e,t);break;case J4.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_FRAMESET)}(e,t);break;case J4.TEXTAREA:!function(e,t){e._insertElement(t,G4.HTML),e.skipNextNewLine=!0,e.tokenizer.state=h6.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=t8.TEXT}(e,t);break;case J4.NOSCRIPT:e.options.scriptingEnabled?N8(e,t):I8(e,t);break;case J4.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(J4.P)&&e._closePElement(),e._insertElement(t,G4.HTML),e.tokenizer.state=h6.PLAINTEXT}(e,t);break;case J4.COL:case J4.TH:case J4.TD:case J4.TR:case J4.HEAD:case J4.FRAME:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.CAPTION:case J4.COLGROUP:break;default:I8(e,t)}}function O8(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==J4.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,o))break}}function P8(e,t){switch(t.tagID){case J4.A:case J4.B:case J4.I:case J4.S:case J4.U:case J4.EM:case J4.TT:case J4.BIG:case J4.CODE:case J4.FONT:case J4.NOBR:case J4.SMALL:case J4.STRIKE:case J4.STRONG:h8(e,t);break;case J4.P:!function(e){e.openElements.hasInButtonScope(J4.P)||e._insertFakeElement(Q4.P,J4.P),e._closePElement()}(e);break;case J4.DL:case J4.UL:case J4.OL:case J4.DIR:case J4.DIV:case J4.NAV:case J4.PRE:case J4.MAIN:case J4.MENU:case J4.ASIDE:case J4.BUTTON:case J4.CENTER:case J4.FIGURE:case J4.FOOTER:case J4.HEADER:case J4.HGROUP:case J4.DIALOG:case J4.ADDRESS:case J4.ARTICLE:case J4.DETAILS:case J4.SEARCH:case J4.SECTION:case J4.SUMMARY:case J4.LISTING:case J4.FIELDSET:case J4.BLOCKQUOTE:case J4.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case J4.LI:!function(e){e.openElements.hasInListItemScope(J4.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(J4.LI),e.openElements.popUntilTagNamePopped(J4.LI))}(e);break;case J4.DD:case J4.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case J4.H1:case J4.H2:case J4.H3:case J4.H4:case J4.H5:case J4.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case J4.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Q4.BR,J4.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case J4.BODY:!function(e,t){if(e.openElements.hasInScope(J4.BODY)&&(e.insertionMode=t8.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case J4.HTML:!function(e,t){e.openElements.hasInScope(J4.BODY)&&(e.insertionMode=t8.AFTER_BODY,Z8(e,t))}(e,t);break;case J4.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(J4.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(J4.FORM):n&&e.openElements.remove(n))}(e);break;case J4.APPLET:case J4.OBJECT:case J4.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case J4.TEMPLATE:k8(e,t);break;default:O8(e,t)}}function L8(e,t){e.tmplInsertionModeStack.length>0?Q8(e,t):m8(e,t)}function D8(e,t){if(a8.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=t8.IN_TABLE_TEXT,t.type){case N4.CHARACTER:H8(e,t);break;case N4.WHITESPACE_CHARACTER:B8(e,t)}else j8(e,t)}function M8(e,t){switch(t.tagID){case J4.TD:case J4.TH:case J4.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q4.TBODY,J4.TBODY),e.insertionMode=t8.IN_TABLE_BODY,G8(e,t)}(e,t);break;case J4.STYLE:case J4.SCRIPT:case J4.TEMPLATE:v8(e,t);break;case J4.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q4.COLGROUP,J4.COLGROUP),e.insertionMode=t8.IN_COLUMN_GROUP,$8(e,t)}(e,t);break;case J4.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,G4.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case J4.TABLE:!function(e,t){e.openElements.hasInTableScope(J4.TABLE)&&(e.openElements.popUntilTagNamePopped(J4.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case J4.TBODY:case J4.TFOOT:case J4.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_TABLE_BODY}(e,t);break;case J4.INPUT:!function(e,t){A8(t)?e._appendElement(t,G4.HTML):j8(e,t),t.ackSelfClosing=!0}(e,t);break;case J4.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_CAPTION}(e,t);break;case J4.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_COLUMN_GROUP}(e,t);break;default:j8(e,t)}}function F8(e,t){switch(t.tagID){case J4.TABLE:e.openElements.hasInTableScope(J4.TABLE)&&(e.openElements.popUntilTagNamePopped(J4.TABLE),e._resetInsertionMode());break;case J4.TEMPLATE:k8(e,t);break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TBODY:case J4.TD:case J4.TFOOT:case J4.TH:case J4.THEAD:case J4.TR:break;default:j8(e,t)}}function j8(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_8(e,t),e.fosterParentingEnabled=n}function B8(e,t){e.pendingCharacterTokens.push(t)}function H8(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function z8(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)j8(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const U8=new Set([J4.CAPTION,J4.COL,J4.COLGROUP,J4.TBODY,J4.TD,J4.TFOOT,J4.TH,J4.THEAD,J4.TR]);function $8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.COL:e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.TEMPLATE:v8(e,t);break;default:V8(e,t)}}function V8(e,t){e.openElements.currentTagId===J4.COLGROUP&&(e.openElements.pop(),e.insertionMode=t8.IN_TABLE,e._processToken(t))}function G8(e,t){switch(t.tagID){case J4.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_ROW;break;case J4.TH:case J4.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Q4.TR,J4.TR),e.insertionMode=t8.IN_ROW,q8(e,t);break;case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE,M8(e,t));break;default:M8(e,t)}}function W8(e,t){const n=t.tagID;switch(t.tagID){case J4.TBODY:case J4.TFOOT:case J4.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE);break;case J4.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE,F8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TD:case J4.TH:case J4.TR:break;default:F8(e,t)}}function q8(e,t){switch(t.tagID){case J4.TH:case J4.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,G4.HTML),e.insertionMode=t8.IN_CELL,e.activeFormattingElements.insertMarker();break;case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.TBODY:case J4.TFOOT:case J4.THEAD:case J4.TR:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,G8(e,t));break;default:M8(e,t)}}function Y8(e,t){switch(t.tagID){case J4.TR:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY);break;case J4.TABLE:e.openElements.hasInTableScope(J4.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,W8(e,t));break;case J4.TBODY:case J4.TFOOT:case J4.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(J4.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=t8.IN_TABLE_BODY,W8(e,t));break;case J4.BODY:case J4.CAPTION:case J4.COL:case J4.COLGROUP:case J4.HTML:case J4.TD:case J4.TH:break;default:F8(e,t)}}function K8(e,t){switch(t.tagID){case J4.HTML:R8(e,t);break;case J4.OPTION:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e._insertElement(t,G4.HTML);break;case J4.OPTGROUP:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop(),e._insertElement(t,G4.HTML);break;case J4.HR:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop(),e._appendElement(t,G4.HTML),t.ackSelfClosing=!0;break;case J4.INPUT:case J4.KEYGEN:case J4.TEXTAREA:case J4.SELECT:e.openElements.hasInSelectScope(J4.SELECT)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode(),t.tagID!==J4.SELECT&&e._processStartTag(t));break;case J4.SCRIPT:case J4.TEMPLATE:v8(e,t)}}function X8(e,t){switch(t.tagID){case J4.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===J4.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===J4.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===J4.OPTGROUP&&e.openElements.pop();break;case J4.OPTION:e.openElements.currentTagId===J4.OPTION&&e.openElements.pop();break;case J4.SELECT:e.openElements.hasInSelectScope(J4.SELECT)&&(e.openElements.popUntilTagNamePopped(J4.SELECT),e._resetInsertionMode());break;case J4.TEMPLATE:k8(e,t)}}function Q8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(J4.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):m8(e,t)}function Z8(e,t){var n;if(t.tagID===J4.HTML){if(e.fragmentContext||(e.insertionMode=t8.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===J4.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else J8(e,t)}function J8(e,t){e.insertionMode=t8.IN_BODY,_8(e,t)}function e9(e,t){e.insertionMode=t8.IN_BODY,_8(e,t)}function t9(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==G4.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Q4.AREA,Q4.BASE,Q4.BASEFONT,Q4.BGSOUND,Q4.BR,Q4.COL,Q4.EMBED,Q4.FRAME,Q4.HR,Q4.IMG,Q4.INPUT,Q4.KEYGEN,Q4.LINK,Q4.META,Q4.PARAM,Q4.SOURCE,Q4.TRACK,Q4.WBR;const n9=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,r9=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),a9={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function o9(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=o4("type",{handlers:{root:s9,element:l9,text:c9,comment:p9,doctype:u9,raw:h9},unknown:f9}),a={parser:n?new i8(a9):i8.getFragmentParser(void 0,a9),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),m9(a,E0());const o=function(e,t){const n=t||{};return v3({file:n.file||void 0,location:!1,schema:"svg"===n.space?qJ:WJ,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&h5(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function i9(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function s9(e,t){i9(e.children,t)}function l9(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===h6.PLAINTEXT)return;m9(t,E0(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:g3.html;a===g3.html&&"svg"===n&&(a=g3.svg);const o=function(e,t){const n=(t||i4).space;return l4(e,"svg"===n?r4:n4)}({...e,children:[]},{space:a===g3.svg?"svg":"html"}),i={type:N4.START_TAG,tagName:n,tagID:s6(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:y9(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),i9(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&p4.includes(n))return;if(t.parser.tokenizer.state===h6.PLAINTEXT)return;m9(t,x0(e));const r={type:N4.END_TAG,tagName:n,tagID:s6(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:y9(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==h6.RCDATA&&t.parser.tokenizer.state!==h6.RAWTEXT&&t.parser.tokenizer.state!==h6.SCRIPT_DATA||(t.parser.tokenizer.state=h6.DATA)}(e,t)}function c9(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:N4.CHARACTER,chars:e.value,location:y9(e)};m9(t,E0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function u9(e,t){const n={type:N4.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:y9(e)};m9(t,E0(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function d9(e,t){t.stitches=!0;const n=function(e){return r5("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=o9({type:"root",children:e.children},t.options);n.children=r.children}p9({type:"comment",value:{stitch:n}},t)}function p9(e,t){const n=e.value,r={type:N4.COMMENT,data:n,location:y9(e)};m9(t,E0(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function h9(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,g9(t,E0(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(n9,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function f9(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw r9.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}d9(n,t)}function m9(e,t){g9(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=h6.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function g9(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function y9(e){const t=E0(e)||{line:void 0,column:void 0,offset:void 0},n=x0(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function b9(e){return function(t,n){return o9(t,{...e,file:n})}}function v9(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function k9(e,t,n){const r=i5((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([w9(e[0]),x9(e[1])])}return t}(t);let o=-1;for(;++o<a.length;)p5(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[o][0],i=a[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function w9(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function x9(e){return"function"==typeof e?e:function(){return e}}const E9="phrasing",_9=["autolink","link","image","label"];function S9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function T9(e){this.config.enter.autolinkProtocol.call(this,e)}function C9(e){this.config.exit.autolinkProtocol.call(this,e)}function A9(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function N9(e){this.config.exit.autolinkEmail.call(this,e)}function I9(e){this.exit(e)}function R9(e){k9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,O9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),P9]],{ignore:["link","linkReference"]})}function O9(e,t,n,r,a){let o="";if(!L9(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=v9(e,"(");let o=v9(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function P9(e,t,n,r){return!(!L9(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function L9(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||b1(n)||y1(n))&&(!t||47!==n)}function D9(){this.buffer()}function M9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F9(){this.buffer()}function j9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function B9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function H9(e){this.exit(e)}function z9(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=i1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function U9(e){this.exit(e)}function $9(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]"),o}function V9(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const o=r.createTracker(a);let i=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");i+=o.move(r.safe(r.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?W9:G9)));return s(),i},footnoteReference:$9},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function G9(e,t,n){return 0===t?e:W9(e,t,n)}function W9(e,t,n){return(n?"":" ")+e}$9.peek=function(){return"["};const q9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Y9(e){this.enter({type:"delete",children:[]},e)}function K9(e){this.exit(e)}function X9(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function Q9(e){return e.length}function Z9(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function J9(e,t,n){return">"+(n?"":" ")+e}function e7(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function t7(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&(o=n.stack,i=n.unsafe[a],e7(o,i.inConstruct,!0)&&!e7(o,i.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,i;return"\\\n"}function n7(e,t,n){return(n?"":" ")+e}function r7(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function a7(e){return"&#x"+e.toString(16).toUpperCase()+";"}function o7(e,t,n){const r=S1(e),a=S1(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function i7(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),i=n.createTracker(r),s=i.move(a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=o7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=a7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=o7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+a7(d));const h=i.move(a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function s7(e){return e.value||""}function l7(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),i(),c}function c7(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function u7(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function d7(e,t){const n=Y0(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function p7(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.createTracker(r);let s,l;if(d7(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(l=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=i.move(" "+a),c+=i.move(n.safe(e.title,{before:c,after:a,...i.current()})),c+=i.move(a),l()),c+=i.move(")"),s(),c}function h7(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return i(),n.stack=u,o(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function f7(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function m7(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}X9.peek=function(){return"~"},i7.peek=function(e,t,n){return n.options.emphasis||"*"},s7.peek=function(){return"<"},l7.peek=function(){return"!"},c7.peek=function(){return"!"},u7.peek=function(){return"`"},p7.peek=function(e,t,n){return d7(e,n)?"<":"["},h7.peek=function(){return"["};const g7=i5(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function y7(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),i=n.createTracker(r),s=i.move(a+a);let l=i.move(n.containerPhrasing(e,{after:a,before:s,...i.current()}));const c=l.charCodeAt(0),u=o7(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=a7(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=o7(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+a7(d));const h=i.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}y7.peek=function(e,t,n){return n.options.strong||"*"};const b7={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const i=n.indentLines(n.containerFlow(e,o.current()),J9);return a(),i},break:t7,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",i="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,n7);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++o>i&&(i=o):o=1,a=r+t.length,r=n.indexOf(t,a);return i}(o,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=r7(n),o='"'===a?"Quote":"Apostrophe",i=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),i(),c},emphasis:i7,hardBreak:t7,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return h5(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,d5})),Boolean((!e.depth||e.depth<3)&&Y0(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=a7(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),l(),s(),c},html:s7,image:l7,imageReference:c7,inlineCode:u7,link:p7,linkReference:h7,list:function(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):f7(n);const s=e.ordered?"."===i?")":".":function(e){const t=f7(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),m7(n)===i&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(i=s),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=o,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||f7(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?o:o+" ".repeat(i-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),a(),i},root:function(e,t,n,r){return(e.children.some((function(e){return g7(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:y7,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(m7(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function v7(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function k7(e){this.exit(e),this.data.inTable=void 0}function w7(e){this.enter({type:"tableRow",children:[]},e)}function x7(e){this.exit(e)}function E7(e){this.enter({type:"tableCell",children:[]},e)}function _7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function S7(e,t){return"|"===t?t:e}function T7(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=b7.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){const a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Q9,o=[],i=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const i=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){const e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[u]=t,s[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=Z9(r[p]);else{const e=Z9(r);for(;++p<c;)o[p]=e}p=-1;const h=[],f=[];for(;++p<c;){const e=o[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length);const i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[p]&&(l[p]=a),f[p]=a),h[p]=i}i.splice(1,0,h),s.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=s[u];p=-1;const r=[];for(;++p<c;){const a=e[p]||"";let i="",s="";if(!1!==n.alignDelimiters){const e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),s=i):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],0,t,n);return s(),o}}function C7(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function A7(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function N7(e,t,n,r){const a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=b7.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),l}const I7={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),a;return n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},R7={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(P7,l,s)(t):null===t||m1(t)||b1(t)||45!==t&&y1(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},O7={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(P7,t,o)(i):null===i||m1(i)||b1(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},P7={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||m1(i)||b1(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||m1(e)||b1(e)?t(e):r(e)}function o(e){return s1(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):s1(t)?(e.consume(t),i):n(t)}},partial:!0},L7={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return l1(e)?n(e):t(e)}},partial:!0},D7={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!H7.call(r,r.previous)||V7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(I7,e.attempt(R7,e.attempt(O7,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:H7},M7={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",o=!1;return function(t){if((72===t||104===t)&&z7.call(r,r.previous)&&!V7(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i;return n(t)};function i(t){if(s1(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||u1(t)||m1(t)||b1(t)||y1(t)?n(t):e.attempt(R7,e.attempt(O7,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:z7},F7={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,o;return function(t){if(!$7(t)||!U7.call(r,r.previous)||V7(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)};function i(t){return $7(t)?(e.consume(t),i):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(L7,c,l)(t):45===t||95===t||l1(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(i){return o&&a&&s1(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:U7},j7={};let B7=48;for(;B7<123;)j7[B7]=F7,B7++,58===B7?B7=65:91===B7&&(B7=97);function H7(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||m1(e)}function z7(e){return!s1(e)}function U7(e){return!(47===e||$7(e))}function $7(e){return 43===e||45===e||46===e||95===e||l1(e)}function V7(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}j7[43]=F7,j7[45]=F7,j7[46]=F7,j7[95]=F7,j7[72]=[F7,M7],j7[104]=[F7,M7],j7[87]=[F7,D7],j7[119]=[F7,D7];const G7={tokenize:function(e,t,n){const r=this;return w1(e,(function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function W7(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!i||!i._balanced)return n(a);const s=i1(r.sliceSerialize({start:i.end,end:r.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function q7(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Y7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!o||null===s||91===s||m1(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return a.includes(i1(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return m1(s)||(o=!0),i++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function K7(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,i,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||m1(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=i1(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return m1(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),w1(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function X7(e,t,n){return e.check(I1,t,e.attempt(G7,t,n))}function Q7(e){e.exit("gfmFootnoteDefinition")}function Z7(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,o=this.events;let i=0;return function(t){if(126===a&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const l=S1(a);if(126===o)return i>1?r(o):(e.consume(o),i++,s);if(i<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=S1(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&J0(i,i.length,0,T1(s,e.slice(r+1,n),t)),J0(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),J0(e,r-1,n-r+3,i),n=r+i.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class J7{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function eee(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function tee(e,t,n){const r=this;let a,o=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?k:s;if(o===k&&r.parser.lazy[r.now().line])return n(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,i+=1,l(e)}(t)}function l(t){return null===t?n(t):f1(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):g1(t)?w1(e,l,"whitespace")(t):(i+=1,a&&(a=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||m1(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,g1(t)?w1(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return g1(t)?w1(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||f1(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return g1(t)?w1(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||f1(n))&&a&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function k(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||f1(n)?(e.exit("tableRow"),t(n)):g1(n)?w1(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||m1(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function nee(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new J7;for(;++o<e.length;){const h=e[o],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(aee(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(c[0]=c[1],a=ree(p,t,l,s,void 0,a)),l=c,c=[l[1],o,0,0])):(i=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=ree(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(c[0]=c[1],a=ree(p,t,l,s,o,a)):0!==c[1]&&(a=ree(p,t,c,s,o,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==d&&aee(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=eee(t.events,o))}return e}function ree(e,t,n,r,a,o){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},oee(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=oee(t.events,n[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const a=oee(t.events,n[2]),o=oee(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},oee(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function aee(e,t,n,r,a){const o=[],i=oee(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function oee(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const iee={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return m1(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return f1(r)?t(r):g1(r)?e.check({tokenize:see},t,n)(r):n(r)}}};function see(e,t,n){return w1(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const lee={};function cee(e){const t=e||lee,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return n1([{text:j7},{document:{91:{name:"gfmFootnoteDefinition",tokenize:K7,continuation:{tokenize:X7},exit:Q7}},text:{91:{name:"gfmFootnoteCall",tokenize:Y7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W7,resolveTo:q7}}},Z7(e),{flow:{null:{name:"table",tokenize:tee,resolveAll:nee}}},{text:{91:iee}}])}(t)),a.push([{transforms:[R9],enter:{literalAutolink:S9,literalAutolinkEmail:T9,literalAutolinkHttp:T9,literalAutolinkWww:T9},exit:{literalAutolink:I9,literalAutolinkEmail:N9,literalAutolinkHttp:C9,literalAutolinkWww:A9}},{enter:{gfmFootnoteCallString:D9,gfmFootnoteCall:M9,gfmFootnoteDefinitionLabelString:F9,gfmFootnoteDefinition:j9},exit:{gfmFootnoteCallString:B9,gfmFootnoteCall:H9,gfmFootnoteDefinitionLabelString:z9,gfmFootnoteDefinition:U9}},{canContainEols:["delete"],enter:{strikethrough:Y9},exit:{strikethrough:K9}},{enter:{table:v7,tableData:E7,tableHeader:E7,tableRow:w7},exit:{codeText:_7,table:k7,tableData:x7,tableHeader:x7,tableRow:x7}},{exit:{taskListCheckValueChecked:C7,taskListCheckValueUnchecked:C7,paragraph:A7}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:E9,notInConstruct:_9},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:E9,notInConstruct:_9},{character:":",before:"[ps]",after:"\\/",inConstruct:E9,notInConstruct:_9}]},V9(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:q9}],handlers:{delete:X9}},T7(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N7}}]}}(t))}function uee(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=uee(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dee(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=uee(e))&&(r&&(r+=" "),r+=t);return r}var pee,hee,fee,mee,gee,yee,bee,vee=Object.create,kee=Object.defineProperty,wee=Object.defineProperties,xee=Object.getOwnPropertyDescriptor,Eee=Object.getOwnPropertyDescriptors,_ee=Object.getOwnPropertyNames,See=Object.getOwnPropertySymbols,Tee=Object.getPrototypeOf,Cee=Object.prototype.hasOwnProperty,Aee=Object.prototype.propertyIsEnumerable,Nee=(e,t,n)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iee=(e,t)=>{for(var n in t||(t={}))Cee.call(t,n)&&Nee(e,n,t[n]);if(See)for(var n of See(t))Aee.call(t,n)&&Nee(e,n,t[n]);return e},Ree=(e,t)=>wee(e,Eee(t)),Oee=(e,t)=>{var n={};for(var r in e)Cee.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&See)for(var r of See(e))t.indexOf(r)<0&&Aee.call(e,r)&&(n[r]=e[r]);return n},Pee=(pee={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var m=h[f],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var k=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,k+"g")}for(var w=m.pattern||m,x=s.next,E=u;x!==t.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof a)){var S,T=1;if(b){if(!(S=o(w,E,e,y))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,N=E;for(N+=x.value.length;C>=N;)N+=(x=x.next).value.length;if(E=N-=x.value.length,x.value instanceof a)continue;for(var I=x;I!==t.tail&&(N<A||"string"==typeof I.value);I=I.next)T++,N+=I.value.length;T--,_=e.slice(E,N),S.index-=E}else if(!(S=o(w,0,_,y)))continue;C=S.index;var R=S[0],O=_.slice(0,C),P=_.slice(C+R.length),L=E+_.length;d&&L>d.reach&&(d.reach=L);var D=x.prev;if(O&&(D=l(t,D,O),E+=O.length),c(t,D,T),x=l(t,D,new a(p,g?r.tokenize(R,g):R,v,R)),P&&l(t,x,P),T>1){var M={cause:p+","+f,reach:L};i(e,t,n,x.prev,E,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return hee||(0,pee[_ee(pee)[0]])((hee={exports:{}}).exports,hee),hee.exports}),Lee=((e,t,n)=>(n=null!=e?vee(Tee(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of _ee(t))Cee.call(e,a)||a===n||kee(e,a,{get:()=>t[a],enumerable:!(r=xee(t,a))||r.enumerable});return e})(e&&e.__esModule?n:kee(n,"default",{value:e,enumerable:!0}),e)))(Pee());Lee.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Lee.languages.markup.tag.inside["attr-value"].inside.entity=Lee.languages.markup.entity,Lee.languages.markup.doctype.inside["internal-subset"].inside=Lee.languages.markup,Lee.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Lee.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Lee.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Lee.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Lee.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Lee.languages.markup.tag,"addAttribute",{value:function(e,t){Lee.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Lee.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Lee.languages.html=Lee.languages.markup,Lee.languages.mathml=Lee.languages.markup,Lee.languages.svg=Lee.languages.markup,Lee.languages.xml=Lee.languages.extend("markup",{}),Lee.languages.ssml=Lee.languages.xml,Lee.languages.atom=Lee.languages.xml,Lee.languages.rss=Lee.languages.xml,fee=Lee,mee={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},yee="(?:[^\\\\-]|"+(gee=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",yee=RegExp(yee+"-"+yee),bee={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},fee.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:yee,inside:{escape:gee,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":mee,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:gee}},"special-escape":mee,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":bee}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:gee,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":bee}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Lee.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Lee.languages.javascript=Lee.languages.extend("clike",{"class-name":[Lee.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Lee.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Lee.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Lee.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Lee.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Lee.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Lee.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Lee.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Lee.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Lee.languages.markup&&(Lee.languages.markup.tag.addInlined("script","javascript"),Lee.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Lee.languages.js=Lee.languages.javascript,Lee.languages.actionscript=Lee.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Lee.languages.actionscript["class-name"].alias="function",delete Lee.languages.actionscript.parameter,delete Lee.languages.actionscript["literal-property"],Lee.languages.markup&&Lee.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Lee.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Lee),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(Lee),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Lee),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Lee),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Lee),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Lee),Lee.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Lee.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Lee.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(h(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,h(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&h(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Lee.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,h,f,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),f=u[i],p=void 0,(h={})["interpolation-punctuation"]=a,3===(h=e.tokenize(f,h)).length&&((p=[1,1]).push.apply(p,s(h[1],e.languages.javascript,"javascript")),h.splice.apply(h,p)),p=new e.Token("interpolation",h,r.alias,f),h=m.substring(g+i.length),f=[],l&&f.push(l),f.push(p),h&&(t(m=[h]),f.push.apply(f,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(f)),o+=f.length-1):y.content=f)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(Lee),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Lee),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Lee),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Lee),Lee.languages.n4js=Lee.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Lee.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Lee.languages.n4jsd=Lee.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Lee),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(Lee),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Lee),Lee.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Lee.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Lee.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Lee),Lee.languages.c=Lee.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Lee.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Lee.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Lee.languages.c.string],char:Lee.languages.c.char,comment:Lee.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Lee.languages.c}}}}),Lee.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Lee.languages.c.boolean,Lee.languages.objectivec=Lee.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Lee.languages.objectivec["class-name"],Lee.languages.objc=Lee.languages.objectivec,Lee.languages.reason=Lee.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Lee.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Lee.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Lee),Lee.languages.go=Lee.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Lee.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Lee.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Lee),Lee.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Lee.languages.python["string-interpolation"].inside.interpolation.inside.rest=Lee.languages.python,Lee.languages.py=Lee.languages.python,Lee.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Lee.languages.webmanifest=Lee.languages.json;var Dee={};((e,t)=>{for(var n in t)kee(e,n,{get:t[n],enumerable:!0})})(Dee,{dracula:()=>Mee,duotoneDark:()=>Fee,duotoneLight:()=>jee,github:()=>Bee,gruvboxMaterialDark:()=>nte,gruvboxMaterialLight:()=>rte,jettwaveDark:()=>Zee,jettwaveLight:()=>Jee,nightOwl:()=>Hee,nightOwlLight:()=>zee,oceanicNext:()=>Vee,okaidia:()=>Gee,oneDark:()=>ete,oneLight:()=>tte,palenight:()=>Wee,shadesOfPurple:()=>qee,synthwave84:()=>Yee,ultramin:()=>Kee,vsDark:()=>Xee,vsLight:()=>Qee});var Mee={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Fee={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},jee={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Bee={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Hee={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},zee={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Uee="#c5a5c5",$ee="#8dc891",Vee={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Uee}},{types:["attr-value"],style:{color:$ee}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:$ee}},{types:["punctuation"],style:{color:$ee}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Uee}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Gee={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Wee={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},qee={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Yee={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Kee={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Xee={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Qee={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Zee={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Jee={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},ete={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},tte={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},nte={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},rte={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},ate=/\r\n|\r|\n/,ote=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},ite=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ste=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=ite(c,u.type),u.alias&&(c=ite(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(ate),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)ote(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return ote(s),l},lte=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Iee(Iee({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=Ree(Iee({},n),{backgroundColor:void 0}),r},cte=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=lte(r,o),s=(e=>K.useCallback((t=>{var n=t,{className:r,style:a,line:o}=n,i=Oee(n,["className","style","line"]);const s=Ree(Iee({},i),{className:dee("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=Iee(Iee({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=K.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return K.useCallback((e=>{var n=e,{token:r,className:a,style:o}=n,i=Oee(n,["token","className","style"]);const s=Ree(Iee({},i),{className:dee("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=Iee(Iee({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>K.useMemo((()=>{if(null==n)return ste([t]);const a={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",a),ste(a.tokens)}),[t,n,r,e]))({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ute=e=>K.createElement(cte,Ree(Iee({},e),{prism:e.prism||Lee,theme:e.theme||Xee,code:e.code,language:e.language}))
71
71
  /*! Bundled license information:
72
72
 
73
73
  prismjs/prism.js: