hasting-swatchcart-module 1.0.28 → 1.0.30
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.
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
function t_(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bd={exports:{}},ms={},xd={exports:{}},Ue={};var O0;function n_(){if(O0)return Ue;O0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),E=Symbol.iterator;function b(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function k(H,Z,L){this.props=H,this.context=Z,this.refs=C,this.updater=L||T}k.prototype.isReactComponent={},k.prototype.setState=function(H,Z){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,Z,"setState")},k.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function S(){}S.prototype=k.prototype;function O(H,Z,L){this.props=H,this.context=Z,this.refs=C,this.updater=L||T}var I=O.prototype=new S;I.constructor=O,w(I,k.prototype),I.isPureReactComponent=!0;var F=Array.isArray,z=Object.prototype.hasOwnProperty,B={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function V(H,Z,L){var Te,Ie={},we=null,Se=null;if(Z!=null)for(Te in Z.ref!==void 0&&(Se=Z.ref),Z.key!==void 0&&(we=""+Z.key),Z)z.call(Z,Te)&&!W.hasOwnProperty(Te)&&(Ie[Te]=Z[Te]);var Le=arguments.length-2;if(Le===1)Ie.children=L;else if(1<Le){for(var Fe=Array(Le),Ge=0;Ge<Le;Ge++)Fe[Ge]=arguments[Ge+2];Ie.children=Fe}if(H&&H.defaultProps)for(Te in Le=H.defaultProps,Le)Ie[Te]===void 0&&(Ie[Te]=Le[Te]);return{$$typeof:e,type:H,key:we,ref:Se,props:Ie,_owner:B.current}}function le(H,Z){return{$$typeof:e,type:H.type,key:Z,ref:H.ref,props:H.props,_owner:H._owner}}function ge(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function J(H){var Z={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(L){return Z[L]})}var ne=/\/+/g;function oe(H,Z){return typeof H=="object"&&H!==null&&H.key!=null?J(""+H.key):Z.toString(36)}function ee(H,Z,L,Te,Ie){var we=typeof H;(we==="undefined"||we==="boolean")&&(H=null);var Se=!1;if(H===null)Se=!0;else switch(we){case"string":case"number":Se=!0;break;case"object":switch(H.$$typeof){case e:case t:Se=!0}}if(Se)return Se=H,Ie=Ie(Se),H=Te===""?"."+oe(Se,0):Te,F(Ie)?(L="",H!=null&&(L=H.replace(ne,"$&/")+"/"),ee(Ie,Z,L,"",function(Ge){return Ge})):Ie!=null&&(ge(Ie)&&(Ie=le(Ie,L+(!Ie.key||Se&&Se.key===Ie.key?"":(""+Ie.key).replace(ne,"$&/")+"/")+H)),Z.push(Ie)),1;if(Se=0,Te=Te===""?".":Te+":",F(H))for(var Le=0;Le<H.length;Le++){we=H[Le];var Fe=Te+oe(we,Le);Se+=ee(we,Z,L,Fe,Ie)}else if(Fe=b(H),typeof Fe=="function")for(H=Fe.call(H),Le=0;!(we=H.next()).done;)we=we.value,Fe=Te+oe(we,Le++),Se+=ee(we,Z,L,Fe,Ie);else if(we==="object")throw Z=String(H),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Se}function X(H,Z,L){if(H==null)return H;var Te=[],Ie=0;return ee(H,Te,"","",function(we){return Z.call(L,we,Ie++)}),Te}function ue(H){if(H._status===-1){var Z=H._result;Z=Z(),Z.then(function(L){(H._status===0||H._status===-1)&&(H._status=1,H._result=L)},function(L){(H._status===0||H._status===-1)&&(H._status=2,H._result=L)}),H._status===-1&&(H._status=0,H._result=Z)}if(H._status===1)return H._result.default;throw H._result}var fe={current:null},j={transition:null},pe={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:j,ReactCurrentOwner:B};function N(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:X,forEach:function(H,Z,L){X(H,function(){Z.apply(this,arguments)},L)},count:function(H){var Z=0;return X(H,function(){Z++}),Z},toArray:function(H){return X(H,function(Z){return Z})||[]},only:function(H){if(!ge(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},Ue.Component=k,Ue.Fragment=n,Ue.Profiler=s,Ue.PureComponent=O,Ue.StrictMode=i,Ue.Suspense=f,Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,Ue.act=N,Ue.cloneElement=function(H,Z,L){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var Te=w({},H.props),Ie=H.key,we=H.ref,Se=H._owner;if(Z!=null){if(Z.ref!==void 0&&(we=Z.ref,Se=B.current),Z.key!==void 0&&(Ie=""+Z.key),H.type&&H.type.defaultProps)var Le=H.type.defaultProps;for(Fe in Z)z.call(Z,Fe)&&!W.hasOwnProperty(Fe)&&(Te[Fe]=Z[Fe]===void 0&&Le!==void 0?Le[Fe]:Z[Fe])}var Fe=arguments.length-2;if(Fe===1)Te.children=L;else if(1<Fe){Le=Array(Fe);for(var Ge=0;Ge<Fe;Ge++)Le[Ge]=arguments[Ge+2];Te.children=Le}return{$$typeof:e,type:H.type,key:Ie,ref:we,props:Te,_owner:Se}},Ue.createContext=function(H){return H={$$typeof:l,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:a,_context:H},H.Consumer=H},Ue.createElement=V,Ue.createFactory=function(H){var Z=V.bind(null,H);return Z.type=H,Z},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(H){return{$$typeof:c,render:H}},Ue.isValidElement=ge,Ue.lazy=function(H){return{$$typeof:g,_payload:{_status:-1,_result:H},_init:ue}},Ue.memo=function(H,Z){return{$$typeof:p,type:H,compare:Z===void 0?null:Z}},Ue.startTransition=function(H){var Z=j.transition;j.transition={};try{H()}finally{j.transition=Z}},Ue.unstable_act=N,Ue.useCallback=function(H,Z){return fe.current.useCallback(H,Z)},Ue.useContext=function(H){return fe.current.useContext(H)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(H){return fe.current.useDeferredValue(H)},Ue.useEffect=function(H,Z){return fe.current.useEffect(H,Z)},Ue.useId=function(){return fe.current.useId()},Ue.useImperativeHandle=function(H,Z,L){return fe.current.useImperativeHandle(H,Z,L)},Ue.useInsertionEffect=function(H,Z){return fe.current.useInsertionEffect(H,Z)},Ue.useLayoutEffect=function(H,Z){return fe.current.useLayoutEffect(H,Z)},Ue.useMemo=function(H,Z){return fe.current.useMemo(H,Z)},Ue.useReducer=function(H,Z,L){return fe.current.useReducer(H,Z,L)},Ue.useRef=function(H){return fe.current.useRef(H)},Ue.useState=function(H){return fe.current.useState(H)},Ue.useSyncExternalStore=function(H,Z,L){return fe.current.useSyncExternalStore(H,Z,L)},Ue.useTransition=function(){return fe.current.useTransition()},Ue.version="18.3.1",Ue}var R0;function ol(){return R0||(R0=1,xd.exports=n_()),xd.exports}var L0;function r_(){if(L0)return ms;L0=1;var e=ol(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,p){var g,E={},b=null,T=null;p!==void 0&&(b=""+p),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(T=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(E[g]=f[g]);if(c&&c.defaultProps)for(g in f=c.defaultProps,f)E[g]===void 0&&(E[g]=f[g]);return{$$typeof:t,type:c,key:b,ref:T,props:E,_owner:s.current}}return ms.Fragment=n,ms.jsx=l,ms.jsxs=l,ms}var P0;function i_(){return P0||(P0=1,bd.exports=r_()),bd.exports}var x=i_(),_=ol();const Je=il(_),Q1=t_({__proto__:null,default:Je},[_]);var gu={},vd={exports:{}},qt={},_d={exports:{}},Cd={};var D0;function o_(){return D0||(D0=1,(function(e){function t(j,pe){var N=j.length;j.push(pe);e:for(;0<N;){var H=N-1>>>1,Z=j[H];if(0<s(Z,pe))j[H]=pe,j[N]=Z,N=H;else break e}}function n(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var pe=j[0],N=j.pop();if(N!==pe){j[0]=N;e:for(var H=0,Z=j.length,L=Z>>>1;H<L;){var Te=2*(H+1)-1,Ie=j[Te],we=Te+1,Se=j[we];if(0>s(Ie,N))we<Z&&0>s(Se,Ie)?(j[H]=Se,j[we]=N,H=we):(j[H]=Ie,j[Te]=N,H=Te);else if(we<Z&&0>s(Se,N))j[H]=Se,j[we]=N,H=we;else break e}}return pe}function s(j,pe){var N=j.sortIndex-pe.sortIndex;return N!==0?N:j.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],p=[],g=1,E=null,b=3,T=!1,w=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(j){for(var pe=n(p);pe!==null;){if(pe.callback===null)i(p);else if(pe.startTime<=j)i(p),pe.sortIndex=pe.expirationTime,t(f,pe);else break;pe=n(p)}}function F(j){if(C=!1,I(j),!w)if(n(f)!==null)w=!0,ue(z);else{var pe=n(p);pe!==null&&fe(F,pe.startTime-j)}}function z(j,pe){w=!1,C&&(C=!1,S(V),V=-1),T=!0;var N=b;try{for(I(pe),E=n(f);E!==null&&(!(E.expirationTime>pe)||j&&!J());){var H=E.callback;if(typeof H=="function"){E.callback=null,b=E.priorityLevel;var Z=H(E.expirationTime<=pe);pe=e.unstable_now(),typeof Z=="function"?E.callback=Z:E===n(f)&&i(f),I(pe)}else i(f);E=n(f)}if(E!==null)var L=!0;else{var Te=n(p);Te!==null&&fe(F,Te.startTime-pe),L=!1}return L}finally{E=null,b=N,T=!1}}var B=!1,W=null,V=-1,le=5,ge=-1;function J(){return!(e.unstable_now()-ge<le)}function ne(){if(W!==null){var j=e.unstable_now();ge=j;var pe=!0;try{pe=W(!0,j)}finally{pe?oe():(B=!1,W=null)}}else B=!1}var oe;if(typeof O=="function")oe=function(){O(ne)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,X=ee.port2;ee.port1.onmessage=ne,oe=function(){X.postMessage(null)}}else oe=function(){k(ne,0)};function ue(j){W=j,B||(B=!0,oe())}function fe(j,pe){V=k(function(){j(e.unstable_now())},pe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){w||T||(w=!0,ue(z))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(j){switch(b){case 1:case 2:case 3:var pe=3;break;default:pe=b}var N=b;b=pe;try{return j()}finally{b=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,pe){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var N=b;b=j;try{return pe()}finally{b=N}},e.unstable_scheduleCallback=function(j,pe,N){var H=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?H+N:H):N=H,j){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=N+Z,j={id:g++,callback:pe,priorityLevel:j,startTime:N,expirationTime:Z,sortIndex:-1},N>H?(j.sortIndex=N,t(p,j),n(f)===null&&j===n(p)&&(C?(S(V),V=-1):C=!0,fe(F,N-H))):(j.sortIndex=Z,t(f,j),w||T||(w=!0,ue(z))),j},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(j){var pe=b;return function(){var N=b;b=pe;try{return j.apply(this,arguments)}finally{b=N}}}})(Cd)),Cd}var M0;function s_(){return M0||(M0=1,_d.exports=o_()),_d.exports}var F0;function a_(){if(F0)return qt;F0=1;var e=ol(),t=s_();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(r,o){l(r,o),l(r+"Capture",o)}function l(r,o){for(s[r]=o,r=0;r<o.length;r++)i.add(o[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},E={};function b(r){return f.call(E,r)?!0:f.call(g,r)?!1:p.test(r)?E[r]=!0:(g[r]=!0,!1)}function T(r,o,u,d){if(u!==null&&u.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:u!==null?!u.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function w(r,o,u,d){if(o===null||typeof o>"u"||T(r,o,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function C(r,o,u,d,m,y,v){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=u,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=v}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){k[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];k[o]=new C(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){k[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function O(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(S,O);k[o]=new C(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(S,O);k[o]=new C(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(S,O);k[o]=new C(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function I(r,o,u,d){var m=k.hasOwnProperty(o)?k[o]:null;(m!==null?m.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(w(o,u,m,d)&&(u=null),d||m===null?b(o)&&(u===null?r.removeAttribute(o):r.setAttribute(o,""+u)):m.mustUseProperty?r[m.propertyName]=u===null?m.type===3?!1:"":u:(o=m.attributeName,d=m.attributeNamespace,u===null?r.removeAttribute(o):(m=m.type,u=m===3||m===4&&u===!0?"":""+u,d?r.setAttributeNS(d,o,u):r.setAttribute(o,u))))}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),B=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),J=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),j=Symbol.iterator;function pe(r){return r===null||typeof r!="object"?null:(r=j&&r[j]||r["@@iterator"],typeof r=="function"?r:null)}var N=Object.assign,H;function Z(r){if(H===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);H=o&&o[1]||""}return`
|
|
2
|
+
`+H+r}var L=!1;function Te(r,o){if(!r||L)return"";L=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(G){var d=G}Reflect.construct(r,[],o)}else{try{o.call()}catch(G){d=G}r.call(o.prototype)}else{try{throw Error()}catch(G){d=G}r()}}catch(G){if(G&&d&&typeof G.stack=="string"){for(var m=G.stack.split(`
|
|
3
|
+
`),y=d.stack.split(`
|
|
4
|
+
`),v=m.length-1,P=y.length-1;1<=v&&0<=P&&m[v]!==y[P];)P--;for(;1<=v&&0<=P;v--,P--)if(m[v]!==y[P]){if(v!==1||P!==1)do if(v--,P--,0>P||m[v]!==y[P]){var M=`
|
|
5
|
+
`+m[v].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=v&&0<=P);break}}}finally{L=!1,Error.prepareStackTrace=u}return(r=r?r.displayName||r.name:"")?Z(r):""}function Ie(r){switch(r.tag){case 5:return Z(r.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return r=Te(r.type,!1),r;case 11:return r=Te(r.type.render,!1),r;case 1:return r=Te(r.type,!0),r;default:return""}}function we(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case W:return"Fragment";case B:return"Portal";case le:return"Profiler";case V:return"StrictMode";case oe:return"Suspense";case ee:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:return(r.displayName||"Context")+".Consumer";case ge:return(r._context.displayName||"Context")+".Provider";case ne:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case X:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case ue:o=r._payload,r=r._init;try{return we(r(o))}catch{}}return null}function Se(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Le(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Fe(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ge(r){var o=Fe(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),d=""+r[o];if(!r.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,y=u.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return m.call(this)},set:function(v){d=""+v,y.call(this,v)}}),Object.defineProperty(r,o,{enumerable:u.enumerable}),{getValue:function(){return d},setValue:function(v){d=""+v},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Pt(r){r._valueTracker||(r._valueTracker=Ge(r))}function xn(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var u=o.getValue(),d="";return r&&(d=Fe(r)?r.checked?"true":"false":r.value),r=d,r!==u?(o.setValue(r),!0):!1}function vn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function No(r,o){var u=o.checked;return N({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function Io(r,o){var u=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;u=Le(o.value!=null?o.value:u),r._wrapperState={initialChecked:d,initialValue:u,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Oo(r,o){o=o.checked,o!=null&&I(r,"checked",o,!1)}function _i(r,o){Oo(r,o);var u=Le(o.value),d=o.type;if(u!=null)d==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+u):r.value!==""+u&&(r.value=""+u);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?Ci(r,o.type,u):o.hasOwnProperty("defaultValue")&&Ci(r,o.type,Le(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function oa(r,o,u){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,u||o===r.value||(r.value=o),r.defaultValue=o}u=r.name,u!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function Ci(r,o,u){(o!=="number"||vn(r.ownerDocument)!==r)&&(u==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+u&&(r.defaultValue=""+u))}var pr=Array.isArray;function mr(r,o,u,d){if(r=r.options,o){o={};for(var m=0;m<u.length;m++)o["$"+u[m]]=!0;for(u=0;u<r.length;u++)m=o.hasOwnProperty("$"+r[u].value),r[u].selected!==m&&(r[u].selected=m),m&&d&&(r[u].defaultSelected=!0)}else{for(u=""+Le(u),o=null,m=0;m<r.length;m++){if(r[m].value===u){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}o!==null||r[m].disabled||(o=r[m])}o!==null&&(o.selected=!0)}}function Ro(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return N({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function sa(r,o){var u=o.value;if(u==null){if(u=o.children,o=o.defaultValue,u!=null){if(o!=null)throw Error(n(92));if(pr(u)){if(1<u.length)throw Error(n(93));u=u[0]}o=u}o==null&&(o=""),u=o}r._wrapperState={initialValue:Le(u)}}function aa(r,o){var u=Le(o.value),d=Le(o.defaultValue);u!=null&&(u=""+u,u!==r.value&&(r.value=u),o.defaultValue==null&&r.defaultValue!==u&&(r.defaultValue=u)),d!=null&&(r.defaultValue=""+d)}function ua(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function K(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?K(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ne,Be=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,u,d,m){MSApp.execUnsafeLocalFunction(function(){return r(o,u,d,m)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ne.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function ze(r,o){if(o){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=o;return}}r.textContent=o}var xt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xn=["Webkit","ms","Moz","O"];Object.keys(xt).forEach(function(r){Xn.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),xt[o]=xt[r]})});function dn(r,o,u){return o==null||typeof o=="boolean"||o===""?"":u||typeof o!="number"||o===0||xt.hasOwnProperty(r)&&xt[r]?(""+o).trim():o+"px"}function gr(r,o){r=r.style;for(var u in o)if(o.hasOwnProperty(u)){var d=u.indexOf("--")===0,m=dn(u,o[u],d);u==="float"&&(u="cssFloat"),d?r.setProperty(u,m):r[u]=m}}var Gr=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(r,o){if(o){if(Gr[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Dn(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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":return!1;default:return!0}}var Zt=null;function Dl(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ml=null,Si=null,wi=null;function Gh(r){if(r=es(r)){if(typeof Ml!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Oa(o),Ml(r.stateNode,r.type,o))}}function Qh(r){Si?wi?wi.push(r):wi=[r]:Si=r}function Kh(){if(Si){var r=Si,o=wi;if(wi=Si=null,Gh(r),o)for(r=0;r<o.length;r++)Gh(o[r])}}function Xh(r,o){return r(o)}function Zh(){}var Fl=!1;function Jh(r,o,u){if(Fl)return r(o,u);Fl=!0;try{return Xh(r,o,u)}finally{Fl=!1,(Si!==null||wi!==null)&&(Zh(),Kh())}}function Lo(r,o){var u=r.stateNode;if(u===null)return null;var d=Oa(u);if(d===null)return null;u=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(n(231,o,typeof u));return u}var Bl=!1;if(c)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{Bl=!1}function ax(r,o,u,d,m,y,v,P,M){var G=Array.prototype.slice.call(arguments,3);try{o.apply(u,G)}catch(ie){this.onError(ie)}}var Do=!1,la=null,ca=!1,Ul=null,ux={onError:function(r){Do=!0,la=r}};function lx(r,o,u,d,m,y,v,P,M){Do=!1,la=null,ax.apply(ux,arguments)}function cx(r,o,u,d,m,y,v,P,M){if(lx.apply(this,arguments),Do){if(Do){var G=la;Do=!1,la=null}else throw Error(n(198));ca||(ca=!0,Ul=G)}}function Qr(r){var o=r,u=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(u=o.return),r=o.return;while(r)}return o.tag===3?u:null}function ep(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function tp(r){if(Qr(r)!==r)throw Error(n(188))}function dx(r){var o=r.alternate;if(!o){if(o=Qr(r),o===null)throw Error(n(188));return o!==r?null:r}for(var u=r,d=o;;){var m=u.return;if(m===null)break;var y=m.alternate;if(y===null){if(d=m.return,d!==null){u=d;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===u)return tp(m),r;if(y===d)return tp(m),o;y=y.sibling}throw Error(n(188))}if(u.return!==d.return)u=m,d=y;else{for(var v=!1,P=m.child;P;){if(P===u){v=!0,u=m,d=y;break}if(P===d){v=!0,d=m,u=y;break}P=P.sibling}if(!v){for(P=y.child;P;){if(P===u){v=!0,u=y,d=m;break}if(P===d){v=!0,d=y,u=m;break}P=P.sibling}if(!v)throw Error(n(189))}}if(u.alternate!==d)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?r:o}function np(r){return r=dx(r),r!==null?rp(r):null}function rp(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=rp(r);if(o!==null)return o;r=r.sibling}return null}var ip=t.unstable_scheduleCallback,op=t.unstable_cancelCallback,fx=t.unstable_shouldYield,hx=t.unstable_requestPaint,at=t.unstable_now,px=t.unstable_getCurrentPriorityLevel,Hl=t.unstable_ImmediatePriority,sp=t.unstable_UserBlockingPriority,da=t.unstable_NormalPriority,mx=t.unstable_LowPriority,ap=t.unstable_IdlePriority,fa=null,Mn=null;function gx(r){if(Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(fa,r,void 0,(r.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:Tx,Ex=Math.log,yx=Math.LN2;function Tx(r){return r>>>=0,r===0?32:31-(Ex(r)/yx|0)|0}var ha=64,pa=4194304;function Mo(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ma(r,o){var u=r.pendingLanes;if(u===0)return 0;var d=0,m=r.suspendedLanes,y=r.pingedLanes,v=u&268435455;if(v!==0){var P=v&~m;P!==0?d=Mo(P):(y&=v,y!==0&&(d=Mo(y)))}else v=u&~m,v!==0?d=Mo(v):y!==0&&(d=Mo(y));if(d===0)return 0;if(o!==0&&o!==d&&(o&m)===0&&(m=d&-d,y=o&-o,m>=y||m===16&&(y&4194240)!==0))return o;if((d&4)!==0&&(d|=u&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=d;0<o;)u=31-_n(o),m=1<<u,d|=r[u],o&=~m;return d}function bx(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xx(r,o){for(var u=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,y=r.pendingLanes;0<y;){var v=31-_n(y),P=1<<v,M=m[v];M===-1?((P&u)===0||(P&d)!==0)&&(m[v]=bx(P,o)):M<=o&&(r.expiredLanes|=P),y&=~P}}function jl(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function up(){var r=ha;return ha<<=1,(ha&4194240)===0&&(ha=64),r}function zl(r){for(var o=[],u=0;31>u;u++)o.push(r);return o}function Fo(r,o,u){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-_n(o),r[o]=u}function vx(r,o){var u=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<u;){var m=31-_n(u),y=1<<m;o[m]=0,d[m]=-1,r[m]=-1,u&=~y}}function Wl(r,o){var u=r.entangledLanes|=o;for(r=r.entanglements;u;){var d=31-_n(u),m=1<<d;m&o|r[d]&o&&(r[d]|=o),u&=~m}}var $e=0;function lp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var cp,Vl,dp,fp,hp,Yl=!1,ga=[],Er=null,yr=null,Tr=null,Bo=new Map,Uo=new Map,br=[],_x="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pp(r,o){switch(r){case"focusin":case"focusout":Er=null;break;case"dragenter":case"dragleave":yr=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":Bo.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(o.pointerId)}}function Ho(r,o,u,d,m,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:u,eventSystemFlags:d,nativeEvent:y,targetContainers:[m]},o!==null&&(o=es(o),o!==null&&Vl(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),r)}function Cx(r,o,u,d,m){switch(o){case"focusin":return Er=Ho(Er,r,o,u,d,m),!0;case"dragenter":return yr=Ho(yr,r,o,u,d,m),!0;case"mouseover":return Tr=Ho(Tr,r,o,u,d,m),!0;case"pointerover":var y=m.pointerId;return Bo.set(y,Ho(Bo.get(y)||null,r,o,u,d,m)),!0;case"gotpointercapture":return y=m.pointerId,Uo.set(y,Ho(Uo.get(y)||null,r,o,u,d,m)),!0}return!1}function mp(r){var o=Kr(r.target);if(o!==null){var u=Qr(o);if(u!==null){if(o=u.tag,o===13){if(o=ep(u),o!==null){r.blockedOn=o,hp(r.priority,function(){dp(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ea(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var u=ql(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(u===null){u=r.nativeEvent;var d=new u.constructor(u.type,u);Zt=d,u.target.dispatchEvent(d),Zt=null}else return o=es(u),o!==null&&Vl(o),r.blockedOn=u,!1;o.shift()}return!0}function gp(r,o,u){Ea(r)&&u.delete(o)}function Sx(){Yl=!1,Er!==null&&Ea(Er)&&(Er=null),yr!==null&&Ea(yr)&&(yr=null),Tr!==null&&Ea(Tr)&&(Tr=null),Bo.forEach(gp),Uo.forEach(gp)}function jo(r,o){r.blockedOn===o&&(r.blockedOn=null,Yl||(Yl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Sx)))}function zo(r){function o(m){return jo(m,r)}if(0<ga.length){jo(ga[0],r);for(var u=1;u<ga.length;u++){var d=ga[u];d.blockedOn===r&&(d.blockedOn=null)}}for(Er!==null&&jo(Er,r),yr!==null&&jo(yr,r),Tr!==null&&jo(Tr,r),Bo.forEach(o),Uo.forEach(o),u=0;u<br.length;u++)d=br[u],d.blockedOn===r&&(d.blockedOn=null);for(;0<br.length&&(u=br[0],u.blockedOn===null);)mp(u),u.blockedOn===null&&br.shift()}var Ai=F.ReactCurrentBatchConfig,ya=!0;function wx(r,o,u,d){var m=$e,y=Ai.transition;Ai.transition=null;try{$e=1,$l(r,o,u,d)}finally{$e=m,Ai.transition=y}}function Ax(r,o,u,d){var m=$e,y=Ai.transition;Ai.transition=null;try{$e=4,$l(r,o,u,d)}finally{$e=m,Ai.transition=y}}function $l(r,o,u,d){if(ya){var m=ql(r,o,u,d);if(m===null)cc(r,o,d,Ta,u),pp(r,d);else if(Cx(m,r,o,u,d))d.stopPropagation();else if(pp(r,d),o&4&&-1<_x.indexOf(r)){for(;m!==null;){var y=es(m);if(y!==null&&cp(y),y=ql(r,o,u,d),y===null&&cc(r,o,d,Ta,u),y===m)break;m=y}m!==null&&d.stopPropagation()}else cc(r,o,d,null,u)}}var Ta=null;function ql(r,o,u,d){if(Ta=null,r=Dl(d),r=Kr(r),r!==null)if(o=Qr(r),o===null)r=null;else if(u=o.tag,u===13){if(r=ep(o),r!==null)return r;r=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Ta=r,null}function Ep(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(px()){case Hl:return 1;case sp:return 4;case da:case mx:return 16;case ap:return 536870912;default:return 16}default:return 16}}var xr=null,Gl=null,ba=null;function yp(){if(ba)return ba;var r,o=Gl,u=o.length,d,m="value"in xr?xr.value:xr.textContent,y=m.length;for(r=0;r<u&&o[r]===m[r];r++);var v=u-r;for(d=1;d<=v&&o[u-d]===m[y-d];d++);return ba=m.slice(r,1<d?1-d:void 0)}function xa(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function va(){return!0}function Tp(){return!1}function Jt(r){function o(u,d,m,y,v){this._reactName=u,this._targetInst=m,this.type=d,this.nativeEvent=y,this.target=v,this.currentTarget=null;for(var P in r)r.hasOwnProperty(P)&&(u=r[P],this[P]=u?u(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?va:Tp,this.isPropagationStopped=Tp,this}return N(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=va)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=va)},persist:function(){},isPersistent:va}),o}var ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ql=Jt(ki),Wo=N({},ki,{view:0,detail:0}),kx=Jt(Wo),Kl,Xl,Vo,_a=N({},Wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jl,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Vo&&(Vo&&r.type==="mousemove"?(Kl=r.screenX-Vo.screenX,Xl=r.screenY-Vo.screenY):Xl=Kl=0,Vo=r),Kl)},movementY:function(r){return"movementY"in r?r.movementY:Xl}}),bp=Jt(_a),Nx=N({},_a,{dataTransfer:0}),Ix=Jt(Nx),Ox=N({},Wo,{relatedTarget:0}),Zl=Jt(Ox),Rx=N({},ki,{animationName:0,elapsedTime:0,pseudoElement:0}),Lx=Jt(Rx),Px=N({},ki,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Dx=Jt(Px),Mx=N({},ki,{data:0}),xp=Jt(Mx),Fx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ux={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hx(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Ux[r])?!!o[r]:!1}function Jl(){return Hx}var jx=N({},Wo,{key:function(r){if(r.key){var o=Fx[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=xa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Bx[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jl,charCode:function(r){return r.type==="keypress"?xa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?xa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),zx=Jt(jx),Wx=N({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vp=Jt(Wx),Vx=N({},Wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jl}),Yx=Jt(Vx),$x=N({},ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),qx=Jt($x),Gx=N({},_a,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Qx=Jt(Gx),Kx=[9,13,27,32],ec=c&&"CompositionEvent"in window,Yo=null;c&&"documentMode"in document&&(Yo=document.documentMode);var Xx=c&&"TextEvent"in window&&!Yo,_p=c&&(!ec||Yo&&8<Yo&&11>=Yo),Cp=" ",Sp=!1;function wp(r,o){switch(r){case"keyup":return Kx.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ap(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ni=!1;function Zx(r,o){switch(r){case"compositionend":return Ap(o);case"keypress":return o.which!==32?null:(Sp=!0,Cp);case"textInput":return r=o.data,r===Cp&&Sp?null:r;default:return null}}function Jx(r,o){if(Ni)return r==="compositionend"||!ec&&wp(r,o)?(r=yp(),ba=Gl=xr=null,Ni=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return _p&&o.locale!=="ko"?null:o.data;default:return null}}var ev={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kp(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!ev[r.type]:o==="textarea"}function Np(r,o,u,d){Qh(d),o=ka(o,"onChange"),0<o.length&&(u=new Ql("onChange","change",null,u,d),r.push({event:u,listeners:o}))}var $o=null,qo=null;function tv(r){qp(r,0)}function Ca(r){var o=Pi(r);if(xn(o))return r}function nv(r,o){if(r==="change")return o}var Ip=!1;if(c){var tc;if(c){var nc="oninput"in document;if(!nc){var Op=document.createElement("div");Op.setAttribute("oninput","return;"),nc=typeof Op.oninput=="function"}tc=nc}else tc=!1;Ip=tc&&(!document.documentMode||9<document.documentMode)}function Rp(){$o&&($o.detachEvent("onpropertychange",Lp),qo=$o=null)}function Lp(r){if(r.propertyName==="value"&&Ca(qo)){var o=[];Np(o,qo,r,Dl(r)),Jh(tv,o)}}function rv(r,o,u){r==="focusin"?(Rp(),$o=o,qo=u,$o.attachEvent("onpropertychange",Lp)):r==="focusout"&&Rp()}function iv(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ca(qo)}function ov(r,o){if(r==="click")return Ca(o)}function sv(r,o){if(r==="input"||r==="change")return Ca(o)}function av(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Cn=typeof Object.is=="function"?Object.is:av;function Go(r,o){if(Cn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var u=Object.keys(r),d=Object.keys(o);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var m=u[d];if(!f.call(o,m)||!Cn(r[m],o[m]))return!1}return!0}function Pp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Dp(r,o){var u=Pp(r);r=0;for(var d;u;){if(u.nodeType===3){if(d=r+u.textContent.length,r<=o&&d>=o)return{node:u,offset:o-r};r=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Pp(u)}}function Mp(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Mp(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Fp(){for(var r=window,o=vn();o instanceof r.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)r=o.contentWindow;else break;o=vn(r.document)}return o}function rc(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function uv(r){var o=Fp(),u=r.focusedElem,d=r.selectionRange;if(o!==u&&u&&u.ownerDocument&&Mp(u.ownerDocument.documentElement,u)){if(d!==null&&rc(u)){if(o=d.start,r=d.end,r===void 0&&(r=o),"selectionStart"in u)u.selectionStart=o,u.selectionEnd=Math.min(r,u.value.length);else if(r=(o=u.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var m=u.textContent.length,y=Math.min(d.start,m);d=d.end===void 0?y:Math.min(d.end,m),!r.extend&&y>d&&(m=d,d=y,y=m),m=Dp(u,y);var v=Dp(u,d);m&&v&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==v.node||r.focusOffset!==v.offset)&&(o=o.createRange(),o.setStart(m.node,m.offset),r.removeAllRanges(),y>d?(r.addRange(o),r.extend(v.node,v.offset)):(o.setEnd(v.node,v.offset),r.addRange(o)))}}for(o=[],r=u;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<o.length;u++)r=o[u],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var lv=c&&"documentMode"in document&&11>=document.documentMode,Ii=null,ic=null,Qo=null,oc=!1;function Bp(r,o,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;oc||Ii==null||Ii!==vn(d)||(d=Ii,"selectionStart"in d&&rc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Qo&&Go(Qo,d)||(Qo=d,d=ka(ic,"onSelect"),0<d.length&&(o=new Ql("onSelect","select",null,o,u),r.push({event:o,listeners:d}),o.target=Ii)))}function Sa(r,o){var u={};return u[r.toLowerCase()]=o.toLowerCase(),u["Webkit"+r]="webkit"+o,u["Moz"+r]="moz"+o,u}var Oi={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionend:Sa("Transition","TransitionEnd")},sc={},Up={};c&&(Up=document.createElement("div").style,"AnimationEvent"in window||(delete Oi.animationend.animation,delete Oi.animationiteration.animation,delete Oi.animationstart.animation),"TransitionEvent"in window||delete Oi.transitionend.transition);function wa(r){if(sc[r])return sc[r];if(!Oi[r])return r;var o=Oi[r],u;for(u in o)if(o.hasOwnProperty(u)&&u in Up)return sc[r]=o[u];return r}var Hp=wa("animationend"),jp=wa("animationiteration"),zp=wa("animationstart"),Wp=wa("transitionend"),Vp=new Map,Yp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vr(r,o){Vp.set(r,o),a(o,[r])}for(var ac=0;ac<Yp.length;ac++){var uc=Yp[ac],cv=uc.toLowerCase(),dv=uc[0].toUpperCase()+uc.slice(1);vr(cv,"on"+dv)}vr(Hp,"onAnimationEnd"),vr(jp,"onAnimationIteration"),vr(zp,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(Wp,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ko));function $p(r,o,u){var d=r.type||"unknown-event";r.currentTarget=u,cx(d,o,void 0,r),r.currentTarget=null}function qp(r,o){o=(o&4)!==0;for(var u=0;u<r.length;u++){var d=r[u],m=d.event;d=d.listeners;e:{var y=void 0;if(o)for(var v=d.length-1;0<=v;v--){var P=d[v],M=P.instance,G=P.currentTarget;if(P=P.listener,M!==y&&m.isPropagationStopped())break e;$p(m,P,G),y=M}else for(v=0;v<d.length;v++){if(P=d[v],M=P.instance,G=P.currentTarget,P=P.listener,M!==y&&m.isPropagationStopped())break e;$p(m,P,G),y=M}}}if(ca)throw r=Ul,ca=!1,Ul=null,r}function et(r,o){var u=o[gc];u===void 0&&(u=o[gc]=new Set);var d=r+"__bubble";u.has(d)||(Gp(o,r,2,!1),u.add(d))}function lc(r,o,u){var d=0;o&&(d|=4),Gp(u,r,d,o)}var Aa="_reactListening"+Math.random().toString(36).slice(2);function Xo(r){if(!r[Aa]){r[Aa]=!0,i.forEach(function(u){u!=="selectionchange"&&(fv.has(u)||lc(u,!1,r),lc(u,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Aa]||(o[Aa]=!0,lc("selectionchange",!1,o))}}function Gp(r,o,u,d){switch(Ep(o)){case 1:var m=wx;break;case 4:m=Ax;break;default:m=$l}u=m.bind(null,o,u,r),m=void 0,!Bl||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(o,u,{capture:!0,passive:m}):r.addEventListener(o,u,!0):m!==void 0?r.addEventListener(o,u,{passive:m}):r.addEventListener(o,u,!1)}function cc(r,o,u,d,m){var y=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var v=d.tag;if(v===3||v===4){var P=d.stateNode.containerInfo;if(P===m||P.nodeType===8&&P.parentNode===m)break;if(v===4)for(v=d.return;v!==null;){var M=v.tag;if((M===3||M===4)&&(M=v.stateNode.containerInfo,M===m||M.nodeType===8&&M.parentNode===m))return;v=v.return}for(;P!==null;){if(v=Kr(P),v===null)return;if(M=v.tag,M===5||M===6){d=y=v;continue e}P=P.parentNode}}d=d.return}Jh(function(){var G=y,ie=Dl(u),se=[];e:{var te=Vp.get(r);if(te!==void 0){var Ee=Ql,be=r;switch(r){case"keypress":if(xa(u)===0)break e;case"keydown":case"keyup":Ee=zx;break;case"focusin":be="focus",Ee=Zl;break;case"focusout":be="blur",Ee=Zl;break;case"beforeblur":case"afterblur":Ee=Zl;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ee=bp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=Ix;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=Yx;break;case Hp:case jp:case zp:Ee=Lx;break;case Wp:Ee=qx;break;case"scroll":Ee=kx;break;case"wheel":Ee=Qx;break;case"copy":case"cut":case"paste":Ee=Dx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=vp}var _e=(o&4)!==0,ut=!_e&&r==="scroll",Y=_e?te!==null?te+"Capture":null:te;_e=[];for(var U=G,q;U!==null;){q=U;var he=q.stateNode;if(q.tag===5&&he!==null&&(q=he,Y!==null&&(he=Lo(U,Y),he!=null&&_e.push(Zo(U,he,q)))),ut)break;U=U.return}0<_e.length&&(te=new Ee(te,be,null,u,ie),se.push({event:te,listeners:_e}))}}if((o&7)===0){e:{if(te=r==="mouseover"||r==="pointerover",Ee=r==="mouseout"||r==="pointerout",te&&u!==Zt&&(be=u.relatedTarget||u.fromElement)&&(Kr(be)||be[Zn]))break e;if((Ee||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,Ee?(be=u.relatedTarget||u.toElement,Ee=G,be=be?Kr(be):null,be!==null&&(ut=Qr(be),be!==ut||be.tag!==5&&be.tag!==6)&&(be=null)):(Ee=null,be=G),Ee!==be)){if(_e=bp,he="onMouseLeave",Y="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(_e=vp,he="onPointerLeave",Y="onPointerEnter",U="pointer"),ut=Ee==null?te:Pi(Ee),q=be==null?te:Pi(be),te=new _e(he,U+"leave",Ee,u,ie),te.target=ut,te.relatedTarget=q,he=null,Kr(ie)===G&&(_e=new _e(Y,U+"enter",be,u,ie),_e.target=q,_e.relatedTarget=ut,he=_e),ut=he,Ee&&be)t:{for(_e=Ee,Y=be,U=0,q=_e;q;q=Ri(q))U++;for(q=0,he=Y;he;he=Ri(he))q++;for(;0<U-q;)_e=Ri(_e),U--;for(;0<q-U;)Y=Ri(Y),q--;for(;U--;){if(_e===Y||Y!==null&&_e===Y.alternate)break t;_e=Ri(_e),Y=Ri(Y)}_e=null}else _e=null;Ee!==null&&Qp(se,te,Ee,_e,!1),be!==null&&ut!==null&&Qp(se,ut,be,_e,!0)}}e:{if(te=G?Pi(G):window,Ee=te.nodeName&&te.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&te.type==="file")var Ce=nv;else if(kp(te))if(Ip)Ce=sv;else{Ce=iv;var Ae=rv}else(Ee=te.nodeName)&&Ee.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(Ce=ov);if(Ce&&(Ce=Ce(r,G))){Np(se,Ce,u,ie);break e}Ae&&Ae(r,te,G),r==="focusout"&&(Ae=te._wrapperState)&&Ae.controlled&&te.type==="number"&&Ci(te,"number",te.value)}switch(Ae=G?Pi(G):window,r){case"focusin":(kp(Ae)||Ae.contentEditable==="true")&&(Ii=Ae,ic=G,Qo=null);break;case"focusout":Qo=ic=Ii=null;break;case"mousedown":oc=!0;break;case"contextmenu":case"mouseup":case"dragend":oc=!1,Bp(se,u,ie);break;case"selectionchange":if(lv)break;case"keydown":case"keyup":Bp(se,u,ie)}var ke;if(ec)e:{switch(r){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Ni?wp(r,u)&&(Oe="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Oe="onCompositionStart");Oe&&(_p&&u.locale!=="ko"&&(Ni||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ni&&(ke=yp()):(xr=ie,Gl="value"in xr?xr.value:xr.textContent,Ni=!0)),Ae=ka(G,Oe),0<Ae.length&&(Oe=new xp(Oe,r,null,u,ie),se.push({event:Oe,listeners:Ae}),ke?Oe.data=ke:(ke=Ap(u),ke!==null&&(Oe.data=ke)))),(ke=Xx?Zx(r,u):Jx(r,u))&&(G=ka(G,"onBeforeInput"),0<G.length&&(ie=new xp("onBeforeInput","beforeinput",null,u,ie),se.push({event:ie,listeners:G}),ie.data=ke))}qp(se,o)})}function Zo(r,o,u){return{instance:r,listener:o,currentTarget:u}}function ka(r,o){for(var u=o+"Capture",d=[];r!==null;){var m=r,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=Lo(r,u),y!=null&&d.unshift(Zo(r,y,m)),y=Lo(r,o),y!=null&&d.push(Zo(r,y,m))),r=r.return}return d}function Ri(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Qp(r,o,u,d,m){for(var y=o._reactName,v=[];u!==null&&u!==d;){var P=u,M=P.alternate,G=P.stateNode;if(M!==null&&M===d)break;P.tag===5&&G!==null&&(P=G,m?(M=Lo(u,y),M!=null&&v.unshift(Zo(u,M,P))):m||(M=Lo(u,y),M!=null&&v.push(Zo(u,M,P)))),u=u.return}v.length!==0&&r.push({event:o,listeners:v})}var hv=/\r\n?/g,pv=/\u0000|\uFFFD/g;function Kp(r){return(typeof r=="string"?r:""+r).replace(hv,`
|
|
6
|
+
`).replace(pv,"")}function Na(r,o,u){if(o=Kp(o),Kp(r)!==o&&u)throw Error(n(425))}function Ia(){}var dc=null,fc=null;function hc(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var pc=typeof setTimeout=="function"?setTimeout:void 0,mv=typeof clearTimeout=="function"?clearTimeout:void 0,Xp=typeof Promise=="function"?Promise:void 0,gv=typeof queueMicrotask=="function"?queueMicrotask:typeof Xp<"u"?function(r){return Xp.resolve(null).then(r).catch(Ev)}:pc;function Ev(r){setTimeout(function(){throw r})}function mc(r,o){var u=o,d=0;do{var m=u.nextSibling;if(r.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(d===0){r.removeChild(m),zo(o);return}d--}else u!=="$"&&u!=="$?"&&u!=="$!"||d++;u=m}while(u);zo(o)}function _r(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Zp(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return r;o--}else u==="/$"&&o++}r=r.previousSibling}return null}var Li=Math.random().toString(36).slice(2),Fn="__reactFiber$"+Li,Jo="__reactProps$"+Li,Zn="__reactContainer$"+Li,gc="__reactEvents$"+Li,yv="__reactListeners$"+Li,Tv="__reactHandles$"+Li;function Kr(r){var o=r[Fn];if(o)return o;for(var u=r.parentNode;u;){if(o=u[Zn]||u[Fn]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(r=Zp(r);r!==null;){if(u=r[Fn])return u;r=Zp(r)}return o}r=u,u=r.parentNode}return null}function es(r){return r=r[Fn]||r[Zn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Pi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Oa(r){return r[Jo]||null}var Ec=[],Di=-1;function Cr(r){return{current:r}}function tt(r){0>Di||(r.current=Ec[Di],Ec[Di]=null,Di--)}function Qe(r,o){Di++,Ec[Di]=r.current,r.current=o}var Sr={},kt=Cr(Sr),zt=Cr(!1),Xr=Sr;function Mi(r,o){var u=r.type.contextTypes;if(!u)return Sr;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in u)m[y]=o[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=m),m}function Wt(r){return r=r.childContextTypes,r!=null}function Ra(){tt(zt),tt(kt)}function Jp(r,o,u){if(kt.current!==Sr)throw Error(n(168));Qe(kt,o),Qe(zt,u)}function em(r,o,u){var d=r.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return u;d=d.getChildContext();for(var m in d)if(!(m in o))throw Error(n(108,Se(r)||"Unknown",m));return N({},u,d)}function La(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Sr,Xr=kt.current,Qe(kt,r),Qe(zt,zt.current),!0}function tm(r,o,u){var d=r.stateNode;if(!d)throw Error(n(169));u?(r=em(r,o,Xr),d.__reactInternalMemoizedMergedChildContext=r,tt(zt),tt(kt),Qe(kt,r)):tt(zt),Qe(zt,u)}var Jn=null,Pa=!1,yc=!1;function nm(r){Jn===null?Jn=[r]:Jn.push(r)}function bv(r){Pa=!0,nm(r)}function wr(){if(!yc&&Jn!==null){yc=!0;var r=0,o=$e;try{var u=Jn;for($e=1;r<u.length;r++){var d=u[r];do d=d(!0);while(d!==null)}Jn=null,Pa=!1}catch(m){throw Jn!==null&&(Jn=Jn.slice(r+1)),ip(Hl,wr),m}finally{$e=o,yc=!1}}return null}var Fi=[],Bi=0,Da=null,Ma=0,fn=[],hn=0,Zr=null,er=1,tr="";function Jr(r,o){Fi[Bi++]=Ma,Fi[Bi++]=Da,Da=r,Ma=o}function rm(r,o,u){fn[hn++]=er,fn[hn++]=tr,fn[hn++]=Zr,Zr=r;var d=er;r=tr;var m=32-_n(d)-1;d&=~(1<<m),u+=1;var y=32-_n(o)+m;if(30<y){var v=m-m%5;y=(d&(1<<v)-1).toString(32),d>>=v,m-=v,er=1<<32-_n(o)+m|u<<m|d,tr=y+r}else er=1<<y|u<<m|d,tr=r}function Tc(r){r.return!==null&&(Jr(r,1),rm(r,1,0))}function bc(r){for(;r===Da;)Da=Fi[--Bi],Fi[Bi]=null,Ma=Fi[--Bi],Fi[Bi]=null;for(;r===Zr;)Zr=fn[--hn],fn[hn]=null,tr=fn[--hn],fn[hn]=null,er=fn[--hn],fn[hn]=null}var en=null,tn=null,nt=!1,Sn=null;function im(r,o){var u=En(5,null,null,0);u.elementType="DELETED",u.stateNode=o,u.return=r,o=r.deletions,o===null?(r.deletions=[u],r.flags|=16):o.push(u)}function om(r,o){switch(r.tag){case 5:var u=r.type;return o=o.nodeType!==1||u.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,en=r,tn=_r(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,en=r,tn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(u=Zr!==null?{id:er,overflow:tr}:null,r.memoizedState={dehydrated:o,treeContext:u,retryLane:1073741824},u=En(18,null,null,0),u.stateNode=o,u.return=r,r.child=u,en=r,tn=null,!0):!1;default:return!1}}function xc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function vc(r){if(nt){var o=tn;if(o){var u=o;if(!om(r,o)){if(xc(r))throw Error(n(418));o=_r(u.nextSibling);var d=en;o&&om(r,o)?im(d,u):(r.flags=r.flags&-4097|2,nt=!1,en=r)}}else{if(xc(r))throw Error(n(418));r.flags=r.flags&-4097|2,nt=!1,en=r}}}function sm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;en=r}function Fa(r){if(r!==en)return!1;if(!nt)return sm(r),nt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!hc(r.type,r.memoizedProps)),o&&(o=tn)){if(xc(r))throw am(),Error(n(418));for(;o;)im(r,o),o=_r(o.nextSibling)}if(sm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"){if(o===0){tn=_r(r.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++}r=r.nextSibling}tn=null}}else tn=en?_r(r.stateNode.nextSibling):null;return!0}function am(){for(var r=tn;r;)r=_r(r.nextSibling)}function Ui(){tn=en=null,nt=!1}function _c(r){Sn===null?Sn=[r]:Sn.push(r)}var xv=F.ReactCurrentBatchConfig;function ts(r,o,u){if(r=u.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var d=u.stateNode}if(!d)throw Error(n(147,r));var m=d,y=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(v){var P=m.refs;v===null?delete P[y]:P[y]=v},o._stringRef=y,o)}if(typeof r!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,r))}return r}function Ba(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function um(r){var o=r._init;return o(r._payload)}function lm(r){function o(Y,U){if(r){var q=Y.deletions;q===null?(Y.deletions=[U],Y.flags|=16):q.push(U)}}function u(Y,U){if(!r)return null;for(;U!==null;)o(Y,U),U=U.sibling;return null}function d(Y,U){for(Y=new Map;U!==null;)U.key!==null?Y.set(U.key,U):Y.set(U.index,U),U=U.sibling;return Y}function m(Y,U){return Y=Pr(Y,U),Y.index=0,Y.sibling=null,Y}function y(Y,U,q){return Y.index=q,r?(q=Y.alternate,q!==null?(q=q.index,q<U?(Y.flags|=2,U):q):(Y.flags|=2,U)):(Y.flags|=1048576,U)}function v(Y){return r&&Y.alternate===null&&(Y.flags|=2),Y}function P(Y,U,q,he){return U===null||U.tag!==6?(U=pd(q,Y.mode,he),U.return=Y,U):(U=m(U,q),U.return=Y,U)}function M(Y,U,q,he){var Ce=q.type;return Ce===W?ie(Y,U,q.props.children,he,q.key):U!==null&&(U.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===ue&&um(Ce)===U.type)?(he=m(U,q.props),he.ref=ts(Y,U,q),he.return=Y,he):(he=uu(q.type,q.key,q.props,null,Y.mode,he),he.ref=ts(Y,U,q),he.return=Y,he)}function G(Y,U,q,he){return U===null||U.tag!==4||U.stateNode.containerInfo!==q.containerInfo||U.stateNode.implementation!==q.implementation?(U=md(q,Y.mode,he),U.return=Y,U):(U=m(U,q.children||[]),U.return=Y,U)}function ie(Y,U,q,he,Ce){return U===null||U.tag!==7?(U=ai(q,Y.mode,he,Ce),U.return=Y,U):(U=m(U,q),U.return=Y,U)}function se(Y,U,q){if(typeof U=="string"&&U!==""||typeof U=="number")return U=pd(""+U,Y.mode,q),U.return=Y,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return q=uu(U.type,U.key,U.props,null,Y.mode,q),q.ref=ts(Y,null,U),q.return=Y,q;case B:return U=md(U,Y.mode,q),U.return=Y,U;case ue:var he=U._init;return se(Y,he(U._payload),q)}if(pr(U)||pe(U))return U=ai(U,Y.mode,q,null),U.return=Y,U;Ba(Y,U)}return null}function te(Y,U,q,he){var Ce=U!==null?U.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return Ce!==null?null:P(Y,U,""+q,he);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case z:return q.key===Ce?M(Y,U,q,he):null;case B:return q.key===Ce?G(Y,U,q,he):null;case ue:return Ce=q._init,te(Y,U,Ce(q._payload),he)}if(pr(q)||pe(q))return Ce!==null?null:ie(Y,U,q,he,null);Ba(Y,q)}return null}function Ee(Y,U,q,he,Ce){if(typeof he=="string"&&he!==""||typeof he=="number")return Y=Y.get(q)||null,P(U,Y,""+he,Ce);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case z:return Y=Y.get(he.key===null?q:he.key)||null,M(U,Y,he,Ce);case B:return Y=Y.get(he.key===null?q:he.key)||null,G(U,Y,he,Ce);case ue:var Ae=he._init;return Ee(Y,U,q,Ae(he._payload),Ce)}if(pr(he)||pe(he))return Y=Y.get(q)||null,ie(U,Y,he,Ce,null);Ba(U,he)}return null}function be(Y,U,q,he){for(var Ce=null,Ae=null,ke=U,Oe=U=0,yt=null;ke!==null&&Oe<q.length;Oe++){ke.index>Oe?(yt=ke,ke=null):yt=ke.sibling;var Ve=te(Y,ke,q[Oe],he);if(Ve===null){ke===null&&(ke=yt);break}r&&ke&&Ve.alternate===null&&o(Y,ke),U=y(Ve,U,Oe),Ae===null?Ce=Ve:Ae.sibling=Ve,Ae=Ve,ke=yt}if(Oe===q.length)return u(Y,ke),nt&&Jr(Y,Oe),Ce;if(ke===null){for(;Oe<q.length;Oe++)ke=se(Y,q[Oe],he),ke!==null&&(U=y(ke,U,Oe),Ae===null?Ce=ke:Ae.sibling=ke,Ae=ke);return nt&&Jr(Y,Oe),Ce}for(ke=d(Y,ke);Oe<q.length;Oe++)yt=Ee(ke,Y,Oe,q[Oe],he),yt!==null&&(r&&yt.alternate!==null&&ke.delete(yt.key===null?Oe:yt.key),U=y(yt,U,Oe),Ae===null?Ce=yt:Ae.sibling=yt,Ae=yt);return r&&ke.forEach(function(Dr){return o(Y,Dr)}),nt&&Jr(Y,Oe),Ce}function _e(Y,U,q,he){var Ce=pe(q);if(typeof Ce!="function")throw Error(n(150));if(q=Ce.call(q),q==null)throw Error(n(151));for(var Ae=Ce=null,ke=U,Oe=U=0,yt=null,Ve=q.next();ke!==null&&!Ve.done;Oe++,Ve=q.next()){ke.index>Oe?(yt=ke,ke=null):yt=ke.sibling;var Dr=te(Y,ke,Ve.value,he);if(Dr===null){ke===null&&(ke=yt);break}r&&ke&&Dr.alternate===null&&o(Y,ke),U=y(Dr,U,Oe),Ae===null?Ce=Dr:Ae.sibling=Dr,Ae=Dr,ke=yt}if(Ve.done)return u(Y,ke),nt&&Jr(Y,Oe),Ce;if(ke===null){for(;!Ve.done;Oe++,Ve=q.next())Ve=se(Y,Ve.value,he),Ve!==null&&(U=y(Ve,U,Oe),Ae===null?Ce=Ve:Ae.sibling=Ve,Ae=Ve);return nt&&Jr(Y,Oe),Ce}for(ke=d(Y,ke);!Ve.done;Oe++,Ve=q.next())Ve=Ee(ke,Y,Oe,Ve.value,he),Ve!==null&&(r&&Ve.alternate!==null&&ke.delete(Ve.key===null?Oe:Ve.key),U=y(Ve,U,Oe),Ae===null?Ce=Ve:Ae.sibling=Ve,Ae=Ve);return r&&ke.forEach(function(e_){return o(Y,e_)}),nt&&Jr(Y,Oe),Ce}function ut(Y,U,q,he){if(typeof q=="object"&&q!==null&&q.type===W&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case z:e:{for(var Ce=q.key,Ae=U;Ae!==null;){if(Ae.key===Ce){if(Ce=q.type,Ce===W){if(Ae.tag===7){u(Y,Ae.sibling),U=m(Ae,q.props.children),U.return=Y,Y=U;break e}}else if(Ae.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===ue&&um(Ce)===Ae.type){u(Y,Ae.sibling),U=m(Ae,q.props),U.ref=ts(Y,Ae,q),U.return=Y,Y=U;break e}u(Y,Ae);break}else o(Y,Ae);Ae=Ae.sibling}q.type===W?(U=ai(q.props.children,Y.mode,he,q.key),U.return=Y,Y=U):(he=uu(q.type,q.key,q.props,null,Y.mode,he),he.ref=ts(Y,U,q),he.return=Y,Y=he)}return v(Y);case B:e:{for(Ae=q.key;U!==null;){if(U.key===Ae)if(U.tag===4&&U.stateNode.containerInfo===q.containerInfo&&U.stateNode.implementation===q.implementation){u(Y,U.sibling),U=m(U,q.children||[]),U.return=Y,Y=U;break e}else{u(Y,U);break}else o(Y,U);U=U.sibling}U=md(q,Y.mode,he),U.return=Y,Y=U}return v(Y);case ue:return Ae=q._init,ut(Y,U,Ae(q._payload),he)}if(pr(q))return be(Y,U,q,he);if(pe(q))return _e(Y,U,q,he);Ba(Y,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,U!==null&&U.tag===6?(u(Y,U.sibling),U=m(U,q),U.return=Y,Y=U):(u(Y,U),U=pd(q,Y.mode,he),U.return=Y,Y=U),v(Y)):u(Y,U)}return ut}var Hi=lm(!0),cm=lm(!1),Ua=Cr(null),Ha=null,ji=null,Cc=null;function Sc(){Cc=ji=Ha=null}function wc(r){var o=Ua.current;tt(Ua),r._currentValue=o}function Ac(r,o,u){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===u)break;r=r.return}}function zi(r,o){Ha=r,Cc=ji=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Vt=!0),r.firstContext=null)}function pn(r){var o=r._currentValue;if(Cc!==r)if(r={context:r,memoizedValue:o,next:null},ji===null){if(Ha===null)throw Error(n(308));ji=r,Ha.dependencies={lanes:0,firstContext:r}}else ji=ji.next=r;return o}var ei=null;function kc(r){ei===null?ei=[r]:ei.push(r)}function dm(r,o,u,d){var m=o.interleaved;return m===null?(u.next=u,kc(o)):(u.next=m.next,m.next=u),o.interleaved=u,nr(r,d)}function nr(r,o){r.lanes|=o;var u=r.alternate;for(u!==null&&(u.lanes|=o),u=r,r=r.return;r!==null;)r.childLanes|=o,u=r.alternate,u!==null&&(u.childLanes|=o),u=r,r=r.return;return u.tag===3?u.stateNode:null}var Ar=!1;function Nc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fm(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function rr(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function kr(r,o,u){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(We&2)!==0){var m=d.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),d.pending=o,nr(r,u)}return m=d.interleaved,m===null?(o.next=o,kc(d)):(o.next=m.next,m.next=o),d.interleaved=o,nr(r,u)}function ja(r,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194240)!==0)){var d=o.lanes;d&=r.pendingLanes,u|=d,o.lanes=u,Wl(r,u)}}function hm(r,o){var u=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var m=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var v={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};y===null?m=y=v:y=y.next=v,u=u.next}while(u!==null);y===null?m=y=o:y=y.next=o}else m=y=o;u={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=o:r.next=o,u.lastBaseUpdate=o}function za(r,o,u,d){var m=r.updateQueue;Ar=!1;var y=m.firstBaseUpdate,v=m.lastBaseUpdate,P=m.shared.pending;if(P!==null){m.shared.pending=null;var M=P,G=M.next;M.next=null,v===null?y=G:v.next=G,v=M;var ie=r.alternate;ie!==null&&(ie=ie.updateQueue,P=ie.lastBaseUpdate,P!==v&&(P===null?ie.firstBaseUpdate=G:P.next=G,ie.lastBaseUpdate=M))}if(y!==null){var se=m.baseState;v=0,ie=G=M=null,P=y;do{var te=P.lane,Ee=P.eventTime;if((d&te)===te){ie!==null&&(ie=ie.next={eventTime:Ee,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var be=r,_e=P;switch(te=o,Ee=u,_e.tag){case 1:if(be=_e.payload,typeof be=="function"){se=be.call(Ee,se,te);break e}se=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=_e.payload,te=typeof be=="function"?be.call(Ee,se,te):be,te==null)break e;se=N({},se,te);break e;case 2:Ar=!0}}P.callback!==null&&P.lane!==0&&(r.flags|=64,te=m.effects,te===null?m.effects=[P]:te.push(P))}else Ee={eventTime:Ee,lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ie===null?(G=ie=Ee,M=se):ie=ie.next=Ee,v|=te;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;te=P,P=te.next,te.next=null,m.lastBaseUpdate=te,m.shared.pending=null}}while(!0);if(ie===null&&(M=se),m.baseState=M,m.firstBaseUpdate=G,m.lastBaseUpdate=ie,o=m.shared.interleaved,o!==null){m=o;do v|=m.lane,m=m.next;while(m!==o)}else y===null&&(m.shared.lanes=0);ri|=v,r.lanes=v,r.memoizedState=se}}function pm(r,o,u){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var d=r[o],m=d.callback;if(m!==null){if(d.callback=null,d=u,typeof m!="function")throw Error(n(191,m));m.call(d)}}}var ns={},Bn=Cr(ns),rs=Cr(ns),is=Cr(ns);function ti(r){if(r===ns)throw Error(n(174));return r}function Ic(r,o){switch(Qe(is,o),Qe(rs,r),Qe(Bn,ns),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:me(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=me(o,r)}tt(Bn),Qe(Bn,o)}function Wi(){tt(Bn),tt(rs),tt(is)}function mm(r){ti(is.current);var o=ti(Bn.current),u=me(o,r.type);o!==u&&(Qe(rs,r),Qe(Bn,u))}function Oc(r){rs.current===r&&(tt(Bn),tt(rs))}var it=Cr(0);function Wa(r){for(var o=r;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Rc=[];function Lc(){for(var r=0;r<Rc.length;r++)Rc[r]._workInProgressVersionPrimary=null;Rc.length=0}var Va=F.ReactCurrentDispatcher,Pc=F.ReactCurrentBatchConfig,ni=0,ot=null,ht=null,gt=null,Ya=!1,os=!1,ss=0,vv=0;function Nt(){throw Error(n(321))}function Dc(r,o){if(o===null)return!1;for(var u=0;u<o.length&&u<r.length;u++)if(!Cn(r[u],o[u]))return!1;return!0}function Mc(r,o,u,d,m,y){if(ni=y,ot=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Va.current=r===null||r.memoizedState===null?wv:Av,r=u(d,m),os){y=0;do{if(os=!1,ss=0,25<=y)throw Error(n(301));y+=1,gt=ht=null,o.updateQueue=null,Va.current=kv,r=u(d,m)}while(os)}if(Va.current=Ga,o=ht!==null&&ht.next!==null,ni=0,gt=ht=ot=null,Ya=!1,o)throw Error(n(300));return r}function Fc(){var r=ss!==0;return ss=0,r}function Un(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?ot.memoizedState=gt=r:gt=gt.next=r,gt}function mn(){if(ht===null){var r=ot.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var o=gt===null?ot.memoizedState:gt.next;if(o!==null)gt=o,ht=r;else{if(r===null)throw Error(n(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},gt===null?ot.memoizedState=gt=r:gt=gt.next=r}return gt}function as(r,o){return typeof o=="function"?o(r):o}function Bc(r){var o=mn(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var d=ht,m=d.baseQueue,y=u.pending;if(y!==null){if(m!==null){var v=m.next;m.next=y.next,y.next=v}d.baseQueue=m=y,u.pending=null}if(m!==null){y=m.next,d=d.baseState;var P=v=null,M=null,G=y;do{var ie=G.lane;if((ni&ie)===ie)M!==null&&(M=M.next={lane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),d=G.hasEagerState?G.eagerState:r(d,G.action);else{var se={lane:ie,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null};M===null?(P=M=se,v=d):M=M.next=se,ot.lanes|=ie,ri|=ie}G=G.next}while(G!==null&&G!==y);M===null?v=d:M.next=P,Cn(d,o.memoizedState)||(Vt=!0),o.memoizedState=d,o.baseState=v,o.baseQueue=M,u.lastRenderedState=d}if(r=u.interleaved,r!==null){m=r;do y=m.lane,ot.lanes|=y,ri|=y,m=m.next;while(m!==r)}else m===null&&(u.lanes=0);return[o.memoizedState,u.dispatch]}function Uc(r){var o=mn(),u=o.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var d=u.dispatch,m=u.pending,y=o.memoizedState;if(m!==null){u.pending=null;var v=m=m.next;do y=r(y,v.action),v=v.next;while(v!==m);Cn(y,o.memoizedState)||(Vt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),u.lastRenderedState=y}return[y,d]}function gm(){}function Em(r,o){var u=ot,d=mn(),m=o(),y=!Cn(d.memoizedState,m);if(y&&(d.memoizedState=m,Vt=!0),d=d.queue,Hc(bm.bind(null,u,d,r),[r]),d.getSnapshot!==o||y||gt!==null&>.memoizedState.tag&1){if(u.flags|=2048,us(9,Tm.bind(null,u,d,m,o),void 0,null),Et===null)throw Error(n(349));(ni&30)!==0||ym(u,o,m)}return m}function ym(r,o,u){r.flags|=16384,r={getSnapshot:o,value:u},o=ot.updateQueue,o===null?(o={lastEffect:null,stores:null},ot.updateQueue=o,o.stores=[r]):(u=o.stores,u===null?o.stores=[r]:u.push(r))}function Tm(r,o,u,d){o.value=u,o.getSnapshot=d,xm(o)&&vm(r)}function bm(r,o,u){return u(function(){xm(o)&&vm(r)})}function xm(r){var o=r.getSnapshot;r=r.value;try{var u=o();return!Cn(r,u)}catch{return!0}}function vm(r){var o=nr(r,1);o!==null&&Nn(o,r,1,-1)}function _m(r){var o=Un();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:r},o.queue=r,r=r.dispatch=Sv.bind(null,ot,r),[o.memoizedState,r]}function us(r,o,u,d){return r={tag:r,create:o,destroy:u,deps:d,next:null},o=ot.updateQueue,o===null?(o={lastEffect:null,stores:null},ot.updateQueue=o,o.lastEffect=r.next=r):(u=o.lastEffect,u===null?o.lastEffect=r.next=r:(d=u.next,u.next=r,r.next=d,o.lastEffect=r)),r}function Cm(){return mn().memoizedState}function $a(r,o,u,d){var m=Un();ot.flags|=r,m.memoizedState=us(1|o,u,void 0,d===void 0?null:d)}function qa(r,o,u,d){var m=mn();d=d===void 0?null:d;var y=void 0;if(ht!==null){var v=ht.memoizedState;if(y=v.destroy,d!==null&&Dc(d,v.deps)){m.memoizedState=us(o,u,y,d);return}}ot.flags|=r,m.memoizedState=us(1|o,u,y,d)}function Sm(r,o){return $a(8390656,8,r,o)}function Hc(r,o){return qa(2048,8,r,o)}function wm(r,o){return qa(4,2,r,o)}function Am(r,o){return qa(4,4,r,o)}function km(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Nm(r,o,u){return u=u!=null?u.concat([r]):null,qa(4,4,km.bind(null,o,r),u)}function jc(){}function Im(r,o){var u=mn();o=o===void 0?null:o;var d=u.memoizedState;return d!==null&&o!==null&&Dc(o,d[1])?d[0]:(u.memoizedState=[r,o],r)}function Om(r,o){var u=mn();o=o===void 0?null:o;var d=u.memoizedState;return d!==null&&o!==null&&Dc(o,d[1])?d[0]:(r=r(),u.memoizedState=[r,o],r)}function Rm(r,o,u){return(ni&21)===0?(r.baseState&&(r.baseState=!1,Vt=!0),r.memoizedState=u):(Cn(u,o)||(u=up(),ot.lanes|=u,ri|=u,r.baseState=!0),o)}function _v(r,o){var u=$e;$e=u!==0&&4>u?u:4,r(!0);var d=Pc.transition;Pc.transition={};try{r(!1),o()}finally{$e=u,Pc.transition=d}}function Lm(){return mn().memoizedState}function Cv(r,o,u){var d=Rr(r);if(u={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null},Pm(r))Dm(o,u);else if(u=dm(r,o,u,d),u!==null){var m=Mt();Nn(u,r,d,m),Mm(u,o,d)}}function Sv(r,o,u){var d=Rr(r),m={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(Pm(r))Dm(o,m);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var v=o.lastRenderedState,P=y(v,u);if(m.hasEagerState=!0,m.eagerState=P,Cn(P,v)){var M=o.interleaved;M===null?(m.next=m,kc(o)):(m.next=M.next,M.next=m),o.interleaved=m;return}}catch{}finally{}u=dm(r,o,m,d),u!==null&&(m=Mt(),Nn(u,r,d,m),Mm(u,o,d))}}function Pm(r){var o=r.alternate;return r===ot||o!==null&&o===ot}function Dm(r,o){os=Ya=!0;var u=r.pending;u===null?o.next=o:(o.next=u.next,u.next=o),r.pending=o}function Mm(r,o,u){if((u&4194240)!==0){var d=o.lanes;d&=r.pendingLanes,u|=d,o.lanes=u,Wl(r,u)}}var Ga={readContext:pn,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useInsertionEffect:Nt,useLayoutEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useMutableSource:Nt,useSyncExternalStore:Nt,useId:Nt,unstable_isNewReconciler:!1},wv={readContext:pn,useCallback:function(r,o){return Un().memoizedState=[r,o===void 0?null:o],r},useContext:pn,useEffect:Sm,useImperativeHandle:function(r,o,u){return u=u!=null?u.concat([r]):null,$a(4194308,4,km.bind(null,o,r),u)},useLayoutEffect:function(r,o){return $a(4194308,4,r,o)},useInsertionEffect:function(r,o){return $a(4,2,r,o)},useMemo:function(r,o){var u=Un();return o=o===void 0?null:o,r=r(),u.memoizedState=[r,o],r},useReducer:function(r,o,u){var d=Un();return o=u!==void 0?u(o):o,d.memoizedState=d.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},d.queue=r,r=r.dispatch=Cv.bind(null,ot,r),[d.memoizedState,r]},useRef:function(r){var o=Un();return r={current:r},o.memoizedState=r},useState:_m,useDebugValue:jc,useDeferredValue:function(r){return Un().memoizedState=r},useTransition:function(){var r=_m(!1),o=r[0];return r=_v.bind(null,r[1]),Un().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,u){var d=ot,m=Un();if(nt){if(u===void 0)throw Error(n(407));u=u()}else{if(u=o(),Et===null)throw Error(n(349));(ni&30)!==0||ym(d,o,u)}m.memoizedState=u;var y={value:u,getSnapshot:o};return m.queue=y,Sm(bm.bind(null,d,y,r),[r]),d.flags|=2048,us(9,Tm.bind(null,d,y,u,o),void 0,null),u},useId:function(){var r=Un(),o=Et.identifierPrefix;if(nt){var u=tr,d=er;u=(d&~(1<<32-_n(d)-1)).toString(32)+u,o=":"+o+"R"+u,u=ss++,0<u&&(o+="H"+u.toString(32)),o+=":"}else u=vv++,o=":"+o+"r"+u.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},Av={readContext:pn,useCallback:Im,useContext:pn,useEffect:Hc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:Am,useMemo:Om,useReducer:Bc,useRef:Cm,useState:function(){return Bc(as)},useDebugValue:jc,useDeferredValue:function(r){var o=mn();return Rm(o,ht.memoizedState,r)},useTransition:function(){var r=Bc(as)[0],o=mn().memoizedState;return[r,o]},useMutableSource:gm,useSyncExternalStore:Em,useId:Lm,unstable_isNewReconciler:!1},kv={readContext:pn,useCallback:Im,useContext:pn,useEffect:Hc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:Am,useMemo:Om,useReducer:Uc,useRef:Cm,useState:function(){return Uc(as)},useDebugValue:jc,useDeferredValue:function(r){var o=mn();return ht===null?o.memoizedState=r:Rm(o,ht.memoizedState,r)},useTransition:function(){var r=Uc(as)[0],o=mn().memoizedState;return[r,o]},useMutableSource:gm,useSyncExternalStore:Em,useId:Lm,unstable_isNewReconciler:!1};function wn(r,o){if(r&&r.defaultProps){o=N({},o),r=r.defaultProps;for(var u in r)o[u]===void 0&&(o[u]=r[u]);return o}return o}function zc(r,o,u,d){o=r.memoizedState,u=u(d,o),u=u==null?o:N({},o,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var Qa={isMounted:function(r){return(r=r._reactInternals)?Qr(r)===r:!1},enqueueSetState:function(r,o,u){r=r._reactInternals;var d=Mt(),m=Rr(r),y=rr(d,m);y.payload=o,u!=null&&(y.callback=u),o=kr(r,y,m),o!==null&&(Nn(o,r,m,d),ja(o,r,m))},enqueueReplaceState:function(r,o,u){r=r._reactInternals;var d=Mt(),m=Rr(r),y=rr(d,m);y.tag=1,y.payload=o,u!=null&&(y.callback=u),o=kr(r,y,m),o!==null&&(Nn(o,r,m,d),ja(o,r,m))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var u=Mt(),d=Rr(r),m=rr(u,d);m.tag=2,o!=null&&(m.callback=o),o=kr(r,m,d),o!==null&&(Nn(o,r,d,u),ja(o,r,d))}};function Fm(r,o,u,d,m,y,v){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,v):o.prototype&&o.prototype.isPureReactComponent?!Go(u,d)||!Go(m,y):!0}function Bm(r,o,u){var d=!1,m=Sr,y=o.contextType;return typeof y=="object"&&y!==null?y=pn(y):(m=Wt(o)?Xr:kt.current,d=o.contextTypes,y=(d=d!=null)?Mi(r,m):Sr),o=new o(u,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Qa,r.stateNode=o,o._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=y),o}function Um(r,o,u,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,d),o.state!==r&&Qa.enqueueReplaceState(o,o.state,null)}function Wc(r,o,u,d){var m=r.stateNode;m.props=u,m.state=r.memoizedState,m.refs={},Nc(r);var y=o.contextType;typeof y=="object"&&y!==null?m.context=pn(y):(y=Wt(o)?Xr:kt.current,m.context=Mi(r,y)),m.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(zc(r,o,y,u),m.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(o=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),o!==m.state&&Qa.enqueueReplaceState(m,m.state,null),za(r,u,m,d),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function Vi(r,o){try{var u="",d=o;do u+=Ie(d),d=d.return;while(d);var m=u}catch(y){m=`
|
|
7
|
+
Error generating stack: `+y.message+`
|
|
8
|
+
`+y.stack}return{value:r,source:o,stack:m,digest:null}}function Vc(r,o,u){return{value:r,source:null,stack:u??null,digest:o??null}}function Yc(r,o){try{console.error(o.value)}catch(u){setTimeout(function(){throw u})}}var Nv=typeof WeakMap=="function"?WeakMap:Map;function Hm(r,o,u){u=rr(-1,u),u.tag=3,u.payload={element:null};var d=o.value;return u.callback=function(){nu||(nu=!0,sd=d),Yc(r,o)},u}function jm(r,o,u){u=rr(-1,u),u.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;u.payload=function(){return d(m)},u.callback=function(){Yc(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){Yc(r,o),typeof d!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})}),u}function zm(r,o,u){var d=r.pingCache;if(d===null){d=r.pingCache=new Nv;var m=new Set;d.set(o,m)}else m=d.get(o),m===void 0&&(m=new Set,d.set(o,m));m.has(u)||(m.add(u),r=Wv.bind(null,r,o,u),o.then(r,r))}function Wm(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Vm(r,o,u,d,m){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(o=rr(-1,1),o.tag=2,kr(u,o,1))),u.lanes|=1),r):(r.flags|=65536,r.lanes=m,r)}var Iv=F.ReactCurrentOwner,Vt=!1;function Dt(r,o,u,d){o.child=r===null?cm(o,null,u,d):Hi(o,r.child,u,d)}function Ym(r,o,u,d,m){u=u.render;var y=o.ref;return zi(o,m),d=Mc(r,o,u,d,y,m),u=Fc(),r!==null&&!Vt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~m,ir(r,o,m)):(nt&&u&&Tc(o),o.flags|=1,Dt(r,o,d,m),o.child)}function $m(r,o,u,d,m){if(r===null){var y=u.type;return typeof y=="function"&&!hd(y)&&y.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(o.tag=15,o.type=y,qm(r,o,y,d,m)):(r=uu(u.type,null,d,o,o.mode,m),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,(r.lanes&m)===0){var v=y.memoizedProps;if(u=u.compare,u=u!==null?u:Go,u(v,d)&&r.ref===o.ref)return ir(r,o,m)}return o.flags|=1,r=Pr(y,d),r.ref=o.ref,r.return=o,o.child=r}function qm(r,o,u,d,m){if(r!==null){var y=r.memoizedProps;if(Go(y,d)&&r.ref===o.ref)if(Vt=!1,o.pendingProps=d=y,(r.lanes&m)!==0)(r.flags&131072)!==0&&(Vt=!0);else return o.lanes=r.lanes,ir(r,o,m)}return $c(r,o,u,d,m)}function Gm(r,o,u){var d=o.pendingProps,m=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe($i,nn),nn|=u;else{if((u&1073741824)===0)return r=y!==null?y.baseLanes|u:u,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Qe($i,nn),nn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:u,Qe($i,nn),nn|=d}else y!==null?(d=y.baseLanes|u,o.memoizedState=null):d=u,Qe($i,nn),nn|=d;return Dt(r,o,m,u),o.child}function Qm(r,o){var u=o.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(o.flags|=512,o.flags|=2097152)}function $c(r,o,u,d,m){var y=Wt(u)?Xr:kt.current;return y=Mi(o,y),zi(o,m),u=Mc(r,o,u,d,y,m),d=Fc(),r!==null&&!Vt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~m,ir(r,o,m)):(nt&&d&&Tc(o),o.flags|=1,Dt(r,o,u,m),o.child)}function Km(r,o,u,d,m){if(Wt(u)){var y=!0;La(o)}else y=!1;if(zi(o,m),o.stateNode===null)Xa(r,o),Bm(o,u,d),Wc(o,u,d,m),d=!0;else if(r===null){var v=o.stateNode,P=o.memoizedProps;v.props=P;var M=v.context,G=u.contextType;typeof G=="object"&&G!==null?G=pn(G):(G=Wt(u)?Xr:kt.current,G=Mi(o,G));var ie=u.getDerivedStateFromProps,se=typeof ie=="function"||typeof v.getSnapshotBeforeUpdate=="function";se||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(P!==d||M!==G)&&Um(o,v,d,G),Ar=!1;var te=o.memoizedState;v.state=te,za(o,d,v,m),M=o.memoizedState,P!==d||te!==M||zt.current||Ar?(typeof ie=="function"&&(zc(o,u,ie,d),M=o.memoizedState),(P=Ar||Fm(o,u,P,d,te,M,G))?(se||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=M),v.props=d,v.state=M,v.context=G,d=P):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{v=o.stateNode,fm(r,o),P=o.memoizedProps,G=o.type===o.elementType?P:wn(o.type,P),v.props=G,se=o.pendingProps,te=v.context,M=u.contextType,typeof M=="object"&&M!==null?M=pn(M):(M=Wt(u)?Xr:kt.current,M=Mi(o,M));var Ee=u.getDerivedStateFromProps;(ie=typeof Ee=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(P!==se||te!==M)&&Um(o,v,d,M),Ar=!1,te=o.memoizedState,v.state=te,za(o,d,v,m);var be=o.memoizedState;P!==se||te!==be||zt.current||Ar?(typeof Ee=="function"&&(zc(o,u,Ee,d),be=o.memoizedState),(G=Ar||Fm(o,u,G,d,te,be,M)||!1)?(ie||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,be,M),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,be,M)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||P===r.memoizedProps&&te===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&te===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=be),v.props=d,v.state=be,v.context=M,d=G):(typeof v.componentDidUpdate!="function"||P===r.memoizedProps&&te===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&te===r.memoizedState||(o.flags|=1024),d=!1)}return qc(r,o,u,d,y,m)}function qc(r,o,u,d,m,y){Qm(r,o);var v=(o.flags&128)!==0;if(!d&&!v)return m&&tm(o,u,!1),ir(r,o,y);d=o.stateNode,Iv.current=o;var P=v&&typeof u.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,r!==null&&v?(o.child=Hi(o,r.child,null,y),o.child=Hi(o,null,P,y)):Dt(r,o,P,y),o.memoizedState=d.state,m&&tm(o,u,!0),o.child}function Xm(r){var o=r.stateNode;o.pendingContext?Jp(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Jp(r,o.context,!1),Ic(r,o.containerInfo)}function Zm(r,o,u,d,m){return Ui(),_c(m),o.flags|=256,Dt(r,o,u,d),o.child}var Gc={dehydrated:null,treeContext:null,retryLane:0};function Qc(r){return{baseLanes:r,cachePool:null,transitions:null}}function Jm(r,o,u){var d=o.pendingProps,m=it.current,y=!1,v=(o.flags&128)!==0,P;if((P=v)||(P=r!==null&&r.memoizedState===null?!1:(m&2)!==0),P?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),Qe(it,m&1),r===null)return vc(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(v=d.children,r=d.fallback,y?(d=o.mode,y=o.child,v={mode:"hidden",children:v},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=v):y=lu(v,d,0,null),r=ai(r,d,u,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=Qc(u),o.memoizedState=Gc,r):Kc(o,v));if(m=r.memoizedState,m!==null&&(P=m.dehydrated,P!==null))return Ov(r,o,v,d,P,m,u);if(y){y=d.fallback,v=o.mode,m=r.child,P=m.sibling;var M={mode:"hidden",children:d.children};return(v&1)===0&&o.child!==m?(d=o.child,d.childLanes=0,d.pendingProps=M,o.deletions=null):(d=Pr(m,M),d.subtreeFlags=m.subtreeFlags&14680064),P!==null?y=Pr(P,y):(y=ai(y,v,u,null),y.flags|=2),y.return=o,d.return=o,d.sibling=y,o.child=d,d=y,y=o.child,v=r.child.memoizedState,v=v===null?Qc(u):{baseLanes:v.baseLanes|u,cachePool:null,transitions:v.transitions},y.memoizedState=v,y.childLanes=r.childLanes&~u,o.memoizedState=Gc,d}return y=r.child,r=y.sibling,d=Pr(y,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=u),d.return=o,d.sibling=null,r!==null&&(u=o.deletions,u===null?(o.deletions=[r],o.flags|=16):u.push(r)),o.child=d,o.memoizedState=null,d}function Kc(r,o){return o=lu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Ka(r,o,u,d){return d!==null&&_c(d),Hi(o,r.child,null,u),r=Kc(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Ov(r,o,u,d,m,y,v){if(u)return o.flags&256?(o.flags&=-257,d=Vc(Error(n(422))),Ka(r,o,v,d)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=d.fallback,m=o.mode,d=lu({mode:"visible",children:d.children},m,0,null),y=ai(y,m,v,null),y.flags|=2,d.return=o,y.return=o,d.sibling=y,o.child=d,(o.mode&1)!==0&&Hi(o,r.child,null,v),o.child.memoizedState=Qc(v),o.memoizedState=Gc,y);if((o.mode&1)===0)return Ka(r,o,v,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var P=d.dgst;return d=P,y=Error(n(419)),d=Vc(y,d,void 0),Ka(r,o,v,d)}if(P=(v&r.childLanes)!==0,Vt||P){if(d=Et,d!==null){switch(v&-v){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(d.suspendedLanes|v))!==0?0:m,m!==0&&m!==y.retryLane&&(y.retryLane=m,nr(r,m),Nn(d,r,m,-1))}return fd(),d=Vc(Error(n(421))),Ka(r,o,v,d)}return m.data==="$?"?(o.flags|=128,o.child=r.child,o=Vv.bind(null,r),m._reactRetry=o,null):(r=y.treeContext,tn=_r(m.nextSibling),en=o,nt=!0,Sn=null,r!==null&&(fn[hn++]=er,fn[hn++]=tr,fn[hn++]=Zr,er=r.id,tr=r.overflow,Zr=o),o=Kc(o,d.children),o.flags|=4096,o)}function e0(r,o,u){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),Ac(r.return,o,u)}function Xc(r,o,u,d,m){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:m}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=u,y.tailMode=m)}function t0(r,o,u){var d=o.pendingProps,m=d.revealOrder,y=d.tail;if(Dt(r,o,d.children,u),d=it.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&e0(r,u,o);else if(r.tag===19)e0(r,u,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Qe(it,d),(o.mode&1)===0)o.memoizedState=null;else switch(m){case"forwards":for(u=o.child,m=null;u!==null;)r=u.alternate,r!==null&&Wa(r)===null&&(m=u),u=u.sibling;u=m,u===null?(m=o.child,o.child=null):(m=u.sibling,u.sibling=null),Xc(o,!1,m,u,y);break;case"backwards":for(u=null,m=o.child,o.child=null;m!==null;){if(r=m.alternate,r!==null&&Wa(r)===null){o.child=m;break}r=m.sibling,m.sibling=u,u=m,m=r}Xc(o,!0,u,null,y);break;case"together":Xc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Xa(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function ir(r,o,u){if(r!==null&&(o.dependencies=r.dependencies),ri|=o.lanes,(u&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,u=Pr(r,r.pendingProps),o.child=u,u.return=o;r.sibling!==null;)r=r.sibling,u=u.sibling=Pr(r,r.pendingProps),u.return=o;u.sibling=null}return o.child}function Rv(r,o,u){switch(o.tag){case 3:Xm(o),Ui();break;case 5:mm(o);break;case 1:Wt(o.type)&&La(o);break;case 4:Ic(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,m=o.memoizedProps.value;Qe(Ua,d._currentValue),d._currentValue=m;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(Qe(it,it.current&1),o.flags|=128,null):(u&o.child.childLanes)!==0?Jm(r,o,u):(Qe(it,it.current&1),r=ir(r,o,u),r!==null?r.sibling:null);Qe(it,it.current&1);break;case 19:if(d=(u&o.childLanes)!==0,(r.flags&128)!==0){if(d)return t0(r,o,u);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Qe(it,it.current),d)break;return null;case 22:case 23:return o.lanes=0,Gm(r,o,u)}return ir(r,o,u)}var n0,Zc,r0,i0;n0=function(r,o){for(var u=o.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Zc=function(){},r0=function(r,o,u,d){var m=r.memoizedProps;if(m!==d){r=o.stateNode,ti(Bn.current);var y=null;switch(u){case"input":m=No(r,m),d=No(r,d),y=[];break;case"select":m=N({},m,{value:void 0}),d=N({},d,{value:void 0}),y=[];break;case"textarea":m=Ro(r,m),d=Ro(r,d),y=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=Ia)}vt(u,d);var v;u=null;for(G in m)if(!d.hasOwnProperty(G)&&m.hasOwnProperty(G)&&m[G]!=null)if(G==="style"){var P=m[G];for(v in P)P.hasOwnProperty(v)&&(u||(u={}),u[v]="")}else G!=="dangerouslySetInnerHTML"&&G!=="children"&&G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&G!=="autoFocus"&&(s.hasOwnProperty(G)?y||(y=[]):(y=y||[]).push(G,null));for(G in d){var M=d[G];if(P=m?.[G],d.hasOwnProperty(G)&&M!==P&&(M!=null||P!=null))if(G==="style")if(P){for(v in P)!P.hasOwnProperty(v)||M&&M.hasOwnProperty(v)||(u||(u={}),u[v]="");for(v in M)M.hasOwnProperty(v)&&P[v]!==M[v]&&(u||(u={}),u[v]=M[v])}else u||(y||(y=[]),y.push(G,u)),u=M;else G==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,P=P?P.__html:void 0,M!=null&&P!==M&&(y=y||[]).push(G,M)):G==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(G,""+M):G!=="suppressContentEditableWarning"&&G!=="suppressHydrationWarning"&&(s.hasOwnProperty(G)?(M!=null&&G==="onScroll"&&et("scroll",r),y||P===M||(y=[])):(y=y||[]).push(G,M))}u&&(y=y||[]).push("style",u);var G=y;(o.updateQueue=G)&&(o.flags|=4)}},i0=function(r,o,u,d){u!==d&&(o.flags|=4)};function ls(r,o){if(!nt)switch(r.tailMode){case"hidden":o=r.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function It(r){var o=r.alternate!==null&&r.alternate.child===r.child,u=0,d=0;if(o)for(var m=r.child;m!==null;)u|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)u|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=u,o}function Lv(r,o,u){var d=o.pendingProps;switch(bc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(o),null;case 1:return Wt(o.type)&&Ra(),It(o),null;case 3:return d=o.stateNode,Wi(),tt(zt),tt(kt),Lc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(Fa(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Sn!==null&&(ld(Sn),Sn=null))),Zc(r,o),It(o),null;case 5:Oc(o);var m=ti(is.current);if(u=o.type,r!==null&&o.stateNode!=null)r0(r,o,u,d,m),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return It(o),null}if(r=ti(Bn.current),Fa(o)){d=o.stateNode,u=o.type;var y=o.memoizedProps;switch(d[Fn]=o,d[Jo]=y,r=(o.mode&1)!==0,u){case"dialog":et("cancel",d),et("close",d);break;case"iframe":case"object":case"embed":et("load",d);break;case"video":case"audio":for(m=0;m<Ko.length;m++)et(Ko[m],d);break;case"source":et("error",d);break;case"img":case"image":case"link":et("error",d),et("load",d);break;case"details":et("toggle",d);break;case"input":Io(d,y),et("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},et("invalid",d);break;case"textarea":sa(d,y),et("invalid",d)}vt(u,y),m=null;for(var v in y)if(y.hasOwnProperty(v)){var P=y[v];v==="children"?typeof P=="string"?d.textContent!==P&&(y.suppressHydrationWarning!==!0&&Na(d.textContent,P,r),m=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&Na(d.textContent,P,r),m=["children",""+P]):s.hasOwnProperty(v)&&P!=null&&v==="onScroll"&&et("scroll",d)}switch(u){case"input":Pt(d),oa(d,y,!0);break;case"textarea":Pt(d),ua(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=Ia)}d=m,o.updateQueue=d,d!==null&&(o.flags|=4)}else{v=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=K(u)),r==="http://www.w3.org/1999/xhtml"?u==="script"?(r=v.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=v.createElement(u,{is:d.is}):(r=v.createElement(u),u==="select"&&(v=r,d.multiple?v.multiple=!0:d.size&&(v.size=d.size))):r=v.createElementNS(r,u),r[Fn]=o,r[Jo]=d,n0(r,o,!1,!1),o.stateNode=r;e:{switch(v=Dn(u,d),u){case"dialog":et("cancel",r),et("close",r),m=d;break;case"iframe":case"object":case"embed":et("load",r),m=d;break;case"video":case"audio":for(m=0;m<Ko.length;m++)et(Ko[m],r);m=d;break;case"source":et("error",r),m=d;break;case"img":case"image":case"link":et("error",r),et("load",r),m=d;break;case"details":et("toggle",r),m=d;break;case"input":Io(r,d),m=No(r,d),et("invalid",r);break;case"option":m=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},m=N({},d,{value:void 0}),et("invalid",r);break;case"textarea":sa(r,d),m=Ro(r,d),et("invalid",r);break;default:m=d}vt(u,m),P=m;for(y in P)if(P.hasOwnProperty(y)){var M=P[y];y==="style"?gr(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Be(r,M)):y==="children"?typeof M=="string"?(u!=="textarea"||M!=="")&&ze(r,M):typeof M=="number"&&ze(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(s.hasOwnProperty(y)?M!=null&&y==="onScroll"&&et("scroll",r):M!=null&&I(r,y,M,v))}switch(u){case"input":Pt(r),oa(r,d,!1);break;case"textarea":Pt(r),ua(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Le(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?mr(r,!!d.multiple,y,!1):d.defaultValue!=null&&mr(r,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=Ia)}switch(u){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return It(o),null;case 6:if(r&&o.stateNode!=null)i0(r,o,r.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(u=ti(is.current),ti(Bn.current),Fa(o)){if(d=o.stateNode,u=o.memoizedProps,d[Fn]=o,(y=d.nodeValue!==u)&&(r=en,r!==null))switch(r.tag){case 3:Na(d.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Na(d.nodeValue,u,(r.mode&1)!==0)}y&&(o.flags|=4)}else d=(u.nodeType===9?u:u.ownerDocument).createTextNode(d),d[Fn]=o,o.stateNode=d}return It(o),null;case 13:if(tt(it),d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(nt&&tn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)am(),Ui(),o.flags|=98560,y=!1;else if(y=Fa(o),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Fn]=o}else Ui(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;It(o),y=!1}else Sn!==null&&(ld(Sn),Sn=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=u,o):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(it.current&1)!==0?pt===0&&(pt=3):fd())),o.updateQueue!==null&&(o.flags|=4),It(o),null);case 4:return Wi(),Zc(r,o),r===null&&Xo(o.stateNode.containerInfo),It(o),null;case 10:return wc(o.type._context),It(o),null;case 17:return Wt(o.type)&&Ra(),It(o),null;case 19:if(tt(it),y=o.memoizedState,y===null)return It(o),null;if(d=(o.flags&128)!==0,v=y.rendering,v===null)if(d)ls(y,!1);else{if(pt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(v=Wa(r),v!==null){for(o.flags|=128,ls(y,!1),d=v.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=u,u=o.child;u!==null;)y=u,r=d,y.flags&=14680066,v=y.alternate,v===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=v.childLanes,y.lanes=v.lanes,y.child=v.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=v.memoizedProps,y.memoizedState=v.memoizedState,y.updateQueue=v.updateQueue,y.type=v.type,r=v.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),u=u.sibling;return Qe(it,it.current&1|2),o.child}r=r.sibling}y.tail!==null&&at()>qi&&(o.flags|=128,d=!0,ls(y,!1),o.lanes=4194304)}else{if(!d)if(r=Wa(v),r!==null){if(o.flags|=128,d=!0,u=r.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),ls(y,!0),y.tail===null&&y.tailMode==="hidden"&&!v.alternate&&!nt)return It(o),null}else 2*at()-y.renderingStartTime>qi&&u!==1073741824&&(o.flags|=128,d=!0,ls(y,!1),o.lanes=4194304);y.isBackwards?(v.sibling=o.child,o.child=v):(u=y.last,u!==null?u.sibling=v:o.child=v,y.last=v)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=at(),o.sibling=null,u=it.current,Qe(it,d?u&1|2:u&1),o):(It(o),null);case 22:case 23:return dd(),d=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(nn&1073741824)!==0&&(It(o),o.subtreeFlags&6&&(o.flags|=8192)):It(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function Pv(r,o){switch(bc(o),o.tag){case 1:return Wt(o.type)&&Ra(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Wi(),tt(zt),tt(kt),Lc(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return Oc(o),null;case 13:if(tt(it),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Ui()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return tt(it),null;case 4:return Wi(),null;case 10:return wc(o.type._context),null;case 22:case 23:return dd(),null;case 24:return null;default:return null}}var Za=!1,Ot=!1,Dv=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Yi(r,o){var u=r.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(d){st(r,o,d)}else u.current=null}function Jc(r,o,u){try{u()}catch(d){st(r,o,d)}}var o0=!1;function Mv(r,o){if(dc=ya,r=Fp(),rc(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var m=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var v=0,P=-1,M=-1,G=0,ie=0,se=r,te=null;t:for(;;){for(var Ee;se!==u||m!==0&&se.nodeType!==3||(P=v+m),se!==y||d!==0&&se.nodeType!==3||(M=v+d),se.nodeType===3&&(v+=se.nodeValue.length),(Ee=se.firstChild)!==null;)te=se,se=Ee;for(;;){if(se===r)break t;if(te===u&&++G===m&&(P=v),te===y&&++ie===d&&(M=v),(Ee=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=Ee}u=P===-1||M===-1?null:{start:P,end:M}}else u=null}u=u||{start:0,end:0}}else u=null;for(fc={focusedElem:r,selectionRange:u},ya=!1,ye=o;ye!==null;)if(o=ye,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ye=r;else for(;ye!==null;){o=ye;try{var be=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(be!==null){var _e=be.memoizedProps,ut=be.memoizedState,Y=o.stateNode,U=Y.getSnapshotBeforeUpdate(o.elementType===o.type?_e:wn(o.type,_e),ut);Y.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var q=o.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(he){st(o,o.return,he)}if(r=o.sibling,r!==null){r.return=o.return,ye=r;break}ye=o.return}return be=o0,o0=!1,be}function cs(r,o,u){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&r)===r){var y=m.destroy;m.destroy=void 0,y!==void 0&&Jc(o,u,y)}m=m.next}while(m!==d)}}function Ja(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&r)===r){var d=u.create;u.destroy=d()}u=u.next}while(u!==o)}}function ed(r){var o=r.ref;if(o!==null){var u=r.stateNode;switch(r.tag){case 5:r=u;break;default:r=u}typeof o=="function"?o(r):o.current=r}}function s0(r){var o=r.alternate;o!==null&&(r.alternate=null,s0(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[Fn],delete o[Jo],delete o[gc],delete o[yv],delete o[Tv])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function a0(r){return r.tag===5||r.tag===3||r.tag===4}function u0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||a0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function td(r,o,u){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?u.nodeType===8?u.parentNode.insertBefore(r,o):u.insertBefore(r,o):(u.nodeType===8?(o=u.parentNode,o.insertBefore(r,u)):(o=u,o.appendChild(r)),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Ia));else if(d!==4&&(r=r.child,r!==null))for(td(r,o,u),r=r.sibling;r!==null;)td(r,o,u),r=r.sibling}function nd(r,o,u){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?u.insertBefore(r,o):u.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(nd(r,o,u),r=r.sibling;r!==null;)nd(r,o,u),r=r.sibling}var _t=null,An=!1;function Nr(r,o,u){for(u=u.child;u!==null;)l0(r,o,u),u=u.sibling}function l0(r,o,u){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(fa,u)}catch{}switch(u.tag){case 5:Ot||Yi(u,o);case 6:var d=_t,m=An;_t=null,Nr(r,o,u),_t=d,An=m,_t!==null&&(An?(r=_t,u=u.stateNode,r.nodeType===8?r.parentNode.removeChild(u):r.removeChild(u)):_t.removeChild(u.stateNode));break;case 18:_t!==null&&(An?(r=_t,u=u.stateNode,r.nodeType===8?mc(r.parentNode,u):r.nodeType===1&&mc(r,u),zo(r)):mc(_t,u.stateNode));break;case 4:d=_t,m=An,_t=u.stateNode.containerInfo,An=!0,Nr(r,o,u),_t=d,An=m;break;case 0:case 11:case 14:case 15:if(!Ot&&(d=u.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var y=m,v=y.destroy;y=y.tag,v!==void 0&&((y&2)!==0||(y&4)!==0)&&Jc(u,o,v),m=m.next}while(m!==d)}Nr(r,o,u);break;case 1:if(!Ot&&(Yi(u,o),d=u.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=u.memoizedProps,d.state=u.memoizedState,d.componentWillUnmount()}catch(P){st(u,o,P)}Nr(r,o,u);break;case 21:Nr(r,o,u);break;case 22:u.mode&1?(Ot=(d=Ot)||u.memoizedState!==null,Nr(r,o,u),Ot=d):Nr(r,o,u);break;default:Nr(r,o,u)}}function c0(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new Dv),o.forEach(function(d){var m=Yv.bind(null,r,d);u.has(d)||(u.add(d),d.then(m,m))})}}function kn(r,o){var u=o.deletions;if(u!==null)for(var d=0;d<u.length;d++){var m=u[d];try{var y=r,v=o,P=v;e:for(;P!==null;){switch(P.tag){case 5:_t=P.stateNode,An=!1;break e;case 3:_t=P.stateNode.containerInfo,An=!0;break e;case 4:_t=P.stateNode.containerInfo,An=!0;break e}P=P.return}if(_t===null)throw Error(n(160));l0(y,v,m),_t=null,An=!1;var M=m.alternate;M!==null&&(M.return=null),m.return=null}catch(G){st(m,o,G)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)d0(o,r),o=o.sibling}function d0(r,o){var u=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(kn(o,r),Hn(r),d&4){try{cs(3,r,r.return),Ja(3,r)}catch(_e){st(r,r.return,_e)}try{cs(5,r,r.return)}catch(_e){st(r,r.return,_e)}}break;case 1:kn(o,r),Hn(r),d&512&&u!==null&&Yi(u,u.return);break;case 5:if(kn(o,r),Hn(r),d&512&&u!==null&&Yi(u,u.return),r.flags&32){var m=r.stateNode;try{ze(m,"")}catch(_e){st(r,r.return,_e)}}if(d&4&&(m=r.stateNode,m!=null)){var y=r.memoizedProps,v=u!==null?u.memoizedProps:y,P=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{P==="input"&&y.type==="radio"&&y.name!=null&&Oo(m,y),Dn(P,v);var G=Dn(P,y);for(v=0;v<M.length;v+=2){var ie=M[v],se=M[v+1];ie==="style"?gr(m,se):ie==="dangerouslySetInnerHTML"?Be(m,se):ie==="children"?ze(m,se):I(m,ie,se,G)}switch(P){case"input":_i(m,y);break;case"textarea":aa(m,y);break;case"select":var te=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var Ee=y.value;Ee!=null?mr(m,!!y.multiple,Ee,!1):te!==!!y.multiple&&(y.defaultValue!=null?mr(m,!!y.multiple,y.defaultValue,!0):mr(m,!!y.multiple,y.multiple?[]:"",!1))}m[Jo]=y}catch(_e){st(r,r.return,_e)}}break;case 6:if(kn(o,r),Hn(r),d&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,y=r.memoizedProps;try{m.nodeValue=y}catch(_e){st(r,r.return,_e)}}break;case 3:if(kn(o,r),Hn(r),d&4&&u!==null&&u.memoizedState.isDehydrated)try{zo(o.containerInfo)}catch(_e){st(r,r.return,_e)}break;case 4:kn(o,r),Hn(r);break;case 13:kn(o,r),Hn(r),m=r.child,m.flags&8192&&(y=m.memoizedState!==null,m.stateNode.isHidden=y,!y||m.alternate!==null&&m.alternate.memoizedState!==null||(od=at())),d&4&&c0(r);break;case 22:if(ie=u!==null&&u.memoizedState!==null,r.mode&1?(Ot=(G=Ot)||ie,kn(o,r),Ot=G):kn(o,r),Hn(r),d&8192){if(G=r.memoizedState!==null,(r.stateNode.isHidden=G)&&!ie&&(r.mode&1)!==0)for(ye=r,ie=r.child;ie!==null;){for(se=ye=ie;ye!==null;){switch(te=ye,Ee=te.child,te.tag){case 0:case 11:case 14:case 15:cs(4,te,te.return);break;case 1:Yi(te,te.return);var be=te.stateNode;if(typeof be.componentWillUnmount=="function"){d=te,u=te.return;try{o=d,be.props=o.memoizedProps,be.state=o.memoizedState,be.componentWillUnmount()}catch(_e){st(d,u,_e)}}break;case 5:Yi(te,te.return);break;case 22:if(te.memoizedState!==null){p0(se);continue}}Ee!==null?(Ee.return=te,ye=Ee):p0(se)}ie=ie.sibling}e:for(ie=null,se=r;;){if(se.tag===5){if(ie===null){ie=se;try{m=se.stateNode,G?(y=m.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(P=se.stateNode,M=se.memoizedProps.style,v=M!=null&&M.hasOwnProperty("display")?M.display:null,P.style.display=dn("display",v))}catch(_e){st(r,r.return,_e)}}}else if(se.tag===6){if(ie===null)try{se.stateNode.nodeValue=G?"":se.memoizedProps}catch(_e){st(r,r.return,_e)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===r)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===r)break e;for(;se.sibling===null;){if(se.return===null||se.return===r)break e;ie===se&&(ie=null),se=se.return}ie===se&&(ie=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:kn(o,r),Hn(r),d&4&&c0(r);break;case 21:break;default:kn(o,r),Hn(r)}}function Hn(r){var o=r.flags;if(o&2){try{e:{for(var u=r.return;u!==null;){if(a0(u)){var d=u;break e}u=u.return}throw Error(n(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(ze(m,""),d.flags&=-33);var y=u0(r);nd(r,y,m);break;case 3:case 4:var v=d.stateNode.containerInfo,P=u0(r);td(r,P,v);break;default:throw Error(n(161))}}catch(M){st(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Fv(r,o,u){ye=r,f0(r)}function f0(r,o,u){for(var d=(r.mode&1)!==0;ye!==null;){var m=ye,y=m.child;if(m.tag===22&&d){var v=m.memoizedState!==null||Za;if(!v){var P=m.alternate,M=P!==null&&P.memoizedState!==null||Ot;P=Za;var G=Ot;if(Za=v,(Ot=M)&&!G)for(ye=m;ye!==null;)v=ye,M=v.child,v.tag===22&&v.memoizedState!==null?m0(m):M!==null?(M.return=v,ye=M):m0(m);for(;y!==null;)ye=y,f0(y),y=y.sibling;ye=m,Za=P,Ot=G}h0(r)}else(m.subtreeFlags&8772)!==0&&y!==null?(y.return=m,ye=y):h0(r)}}function h0(r){for(;ye!==null;){var o=ye;if((o.flags&8772)!==0){var u=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Ot||Ja(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!Ot)if(u===null)d.componentDidMount();else{var m=o.elementType===o.type?u.memoizedProps:wn(o.type,u.memoizedProps);d.componentDidUpdate(m,u.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&pm(o,y,d);break;case 3:var v=o.updateQueue;if(v!==null){if(u=null,o.child!==null)switch(o.child.tag){case 5:u=o.child.stateNode;break;case 1:u=o.child.stateNode}pm(o,v,u)}break;case 5:var P=o.stateNode;if(u===null&&o.flags&4){u=P;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&u.focus();break;case"img":M.src&&(u.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var G=o.alternate;if(G!==null){var ie=G.memoizedState;if(ie!==null){var se=ie.dehydrated;se!==null&&zo(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ot||o.flags&512&&ed(o)}catch(te){st(o,o.return,te)}}if(o===r){ye=null;break}if(u=o.sibling,u!==null){u.return=o.return,ye=u;break}ye=o.return}}function p0(r){for(;ye!==null;){var o=ye;if(o===r){ye=null;break}var u=o.sibling;if(u!==null){u.return=o.return,ye=u;break}ye=o.return}}function m0(r){for(;ye!==null;){var o=ye;try{switch(o.tag){case 0:case 11:case 15:var u=o.return;try{Ja(4,o)}catch(M){st(o,u,M)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var m=o.return;try{d.componentDidMount()}catch(M){st(o,m,M)}}var y=o.return;try{ed(o)}catch(M){st(o,y,M)}break;case 5:var v=o.return;try{ed(o)}catch(M){st(o,v,M)}}}catch(M){st(o,o.return,M)}if(o===r){ye=null;break}var P=o.sibling;if(P!==null){P.return=o.return,ye=P;break}ye=o.return}}var Bv=Math.ceil,eu=F.ReactCurrentDispatcher,rd=F.ReactCurrentOwner,gn=F.ReactCurrentBatchConfig,We=0,Et=null,ct=null,Ct=0,nn=0,$i=Cr(0),pt=0,ds=null,ri=0,tu=0,id=0,fs=null,Yt=null,od=0,qi=1/0,or=null,nu=!1,sd=null,Ir=null,ru=!1,Or=null,iu=0,hs=0,ad=null,ou=-1,su=0;function Mt(){return(We&6)!==0?at():ou!==-1?ou:ou=at()}function Rr(r){return(r.mode&1)===0?1:(We&2)!==0&&Ct!==0?Ct&-Ct:xv.transition!==null?(su===0&&(su=up()),su):(r=$e,r!==0||(r=window.event,r=r===void 0?16:Ep(r.type)),r)}function Nn(r,o,u,d){if(50<hs)throw hs=0,ad=null,Error(n(185));Fo(r,u,d),((We&2)===0||r!==Et)&&(r===Et&&((We&2)===0&&(tu|=u),pt===4&&Lr(r,Ct)),$t(r,d),u===1&&We===0&&(o.mode&1)===0&&(qi=at()+500,Pa&&wr()))}function $t(r,o){var u=r.callbackNode;xx(r,o);var d=ma(r,r===Et?Ct:0);if(d===0)u!==null&&op(u),r.callbackNode=null,r.callbackPriority=0;else if(o=d&-d,r.callbackPriority!==o){if(u!=null&&op(u),o===1)r.tag===0?bv(E0.bind(null,r)):nm(E0.bind(null,r)),gv(function(){(We&6)===0&&wr()}),u=null;else{switch(lp(d)){case 1:u=Hl;break;case 4:u=sp;break;case 16:u=da;break;case 536870912:u=ap;break;default:u=da}u=S0(u,g0.bind(null,r))}r.callbackPriority=o,r.callbackNode=u}}function g0(r,o){if(ou=-1,su=0,(We&6)!==0)throw Error(n(327));var u=r.callbackNode;if(Gi()&&r.callbackNode!==u)return null;var d=ma(r,r===Et?Ct:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||o)o=au(r,d);else{o=d;var m=We;We|=2;var y=T0();(Et!==r||Ct!==o)&&(or=null,qi=at()+500,oi(r,o));do try{jv();break}catch(P){y0(r,P)}while(!0);Sc(),eu.current=y,We=m,ct!==null?o=0:(Et=null,Ct=0,o=pt)}if(o!==0){if(o===2&&(m=jl(r),m!==0&&(d=m,o=ud(r,m))),o===1)throw u=ds,oi(r,0),Lr(r,d),$t(r,at()),u;if(o===6)Lr(r,d);else{if(m=r.current.alternate,(d&30)===0&&!Uv(m)&&(o=au(r,d),o===2&&(y=jl(r),y!==0&&(d=y,o=ud(r,y))),o===1))throw u=ds,oi(r,0),Lr(r,d),$t(r,at()),u;switch(r.finishedWork=m,r.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:si(r,Yt,or);break;case 3:if(Lr(r,d),(d&130023424)===d&&(o=od+500-at(),10<o)){if(ma(r,0)!==0)break;if(m=r.suspendedLanes,(m&d)!==d){Mt(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=pc(si.bind(null,r,Yt,or),o);break}si(r,Yt,or);break;case 4:if(Lr(r,d),(d&4194240)===d)break;for(o=r.eventTimes,m=-1;0<d;){var v=31-_n(d);y=1<<v,v=o[v],v>m&&(m=v),d&=~y}if(d=m,d=at()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Bv(d/1960))-d,10<d){r.timeoutHandle=pc(si.bind(null,r,Yt,or),d);break}si(r,Yt,or);break;case 5:si(r,Yt,or);break;default:throw Error(n(329))}}}return $t(r,at()),r.callbackNode===u?g0.bind(null,r):null}function ud(r,o){var u=fs;return r.current.memoizedState.isDehydrated&&(oi(r,o).flags|=256),r=au(r,o),r!==2&&(o=Yt,Yt=u,o!==null&&ld(o)),r}function ld(r){Yt===null?Yt=r:Yt.push.apply(Yt,r)}function Uv(r){for(var o=r;;){if(o.flags&16384){var u=o.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var d=0;d<u.length;d++){var m=u[d],y=m.getSnapshot;m=m.value;try{if(!Cn(y(),m))return!1}catch{return!1}}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Lr(r,o){for(o&=~id,o&=~tu,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var u=31-_n(o),d=1<<u;r[u]=-1,o&=~d}}function E0(r){if((We&6)!==0)throw Error(n(327));Gi();var o=ma(r,0);if((o&1)===0)return $t(r,at()),null;var u=au(r,o);if(r.tag!==0&&u===2){var d=jl(r);d!==0&&(o=d,u=ud(r,d))}if(u===1)throw u=ds,oi(r,0),Lr(r,o),$t(r,at()),u;if(u===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,si(r,Yt,or),$t(r,at()),null}function cd(r,o){var u=We;We|=1;try{return r(o)}finally{We=u,We===0&&(qi=at()+500,Pa&&wr())}}function ii(r){Or!==null&&Or.tag===0&&(We&6)===0&&Gi();var o=We;We|=1;var u=gn.transition,d=$e;try{if(gn.transition=null,$e=1,r)return r()}finally{$e=d,gn.transition=u,We=o,(We&6)===0&&wr()}}function dd(){nn=$i.current,tt($i)}function oi(r,o){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,mv(u)),ct!==null)for(u=ct.return;u!==null;){var d=u;switch(bc(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Ra();break;case 3:Wi(),tt(zt),tt(kt),Lc();break;case 5:Oc(d);break;case 4:Wi();break;case 13:tt(it);break;case 19:tt(it);break;case 10:wc(d.type._context);break;case 22:case 23:dd()}u=u.return}if(Et=r,ct=r=Pr(r.current,null),Ct=nn=o,pt=0,ds=null,id=tu=ri=0,Yt=fs=null,ei!==null){for(o=0;o<ei.length;o++)if(u=ei[o],d=u.interleaved,d!==null){u.interleaved=null;var m=d.next,y=u.pending;if(y!==null){var v=y.next;y.next=m,d.next=v}u.pending=d}ei=null}return r}function y0(r,o){do{var u=ct;try{if(Sc(),Va.current=Ga,Ya){for(var d=ot.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}Ya=!1}if(ni=0,gt=ht=ot=null,os=!1,ss=0,rd.current=null,u===null||u.return===null){pt=1,ds=o,ct=null;break}e:{var y=r,v=u.return,P=u,M=o;if(o=Ct,P.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var G=M,ie=P,se=ie.tag;if((ie.mode&1)===0&&(se===0||se===11||se===15)){var te=ie.alternate;te?(ie.updateQueue=te.updateQueue,ie.memoizedState=te.memoizedState,ie.lanes=te.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var Ee=Wm(v);if(Ee!==null){Ee.flags&=-257,Vm(Ee,v,P,y,o),Ee.mode&1&&zm(y,G,o),o=Ee,M=G;var be=o.updateQueue;if(be===null){var _e=new Set;_e.add(M),o.updateQueue=_e}else be.add(M);break e}else{if((o&1)===0){zm(y,G,o),fd();break e}M=Error(n(426))}}else if(nt&&P.mode&1){var ut=Wm(v);if(ut!==null){(ut.flags&65536)===0&&(ut.flags|=256),Vm(ut,v,P,y,o),_c(Vi(M,P));break e}}y=M=Vi(M,P),pt!==4&&(pt=2),fs===null?fs=[y]:fs.push(y),y=v;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var Y=Hm(y,M,o);hm(y,Y);break e;case 1:P=M;var U=y.type,q=y.stateNode;if((y.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(Ir===null||!Ir.has(q)))){y.flags|=65536,o&=-o,y.lanes|=o;var he=jm(y,P,o);hm(y,he);break e}}y=y.return}while(y!==null)}x0(u)}catch(Ce){o=Ce,ct===u&&u!==null&&(ct=u=u.return);continue}break}while(!0)}function T0(){var r=eu.current;return eu.current=Ga,r===null?Ga:r}function fd(){(pt===0||pt===3||pt===2)&&(pt=4),Et===null||(ri&268435455)===0&&(tu&268435455)===0||Lr(Et,Ct)}function au(r,o){var u=We;We|=2;var d=T0();(Et!==r||Ct!==o)&&(or=null,oi(r,o));do try{Hv();break}catch(m){y0(r,m)}while(!0);if(Sc(),We=u,eu.current=d,ct!==null)throw Error(n(261));return Et=null,Ct=0,pt}function Hv(){for(;ct!==null;)b0(ct)}function jv(){for(;ct!==null&&!fx();)b0(ct)}function b0(r){var o=C0(r.alternate,r,nn);r.memoizedProps=r.pendingProps,o===null?x0(r):ct=o,rd.current=null}function x0(r){var o=r;do{var u=o.alternate;if(r=o.return,(o.flags&32768)===0){if(u=Lv(u,o,nn),u!==null){ct=u;return}}else{if(u=Pv(u,o),u!==null){u.flags&=32767,ct=u;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{pt=6,ct=null;return}}if(o=o.sibling,o!==null){ct=o;return}ct=o=r}while(o!==null);pt===0&&(pt=5)}function si(r,o,u){var d=$e,m=gn.transition;try{gn.transition=null,$e=1,zv(r,o,u,d)}finally{gn.transition=m,$e=d}return null}function zv(r,o,u,d){do Gi();while(Or!==null);if((We&6)!==0)throw Error(n(327));u=r.finishedWork;var m=r.finishedLanes;if(u===null)return null;if(r.finishedWork=null,r.finishedLanes=0,u===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=u.lanes|u.childLanes;if(vx(r,y),r===Et&&(ct=Et=null,Ct=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||ru||(ru=!0,S0(da,function(){return Gi(),null})),y=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||y){y=gn.transition,gn.transition=null;var v=$e;$e=1;var P=We;We|=4,rd.current=null,Mv(r,u),d0(u,r),uv(fc),ya=!!dc,fc=dc=null,r.current=u,Fv(u),hx(),We=P,$e=v,gn.transition=y}else r.current=u;if(ru&&(ru=!1,Or=r,iu=m),y=r.pendingLanes,y===0&&(Ir=null),gx(u.stateNode),$t(r,at()),o!==null)for(d=r.onRecoverableError,u=0;u<o.length;u++)m=o[u],d(m.value,{componentStack:m.stack,digest:m.digest});if(nu)throw nu=!1,r=sd,sd=null,r;return(iu&1)!==0&&r.tag!==0&&Gi(),y=r.pendingLanes,(y&1)!==0?r===ad?hs++:(hs=0,ad=r):hs=0,wr(),null}function Gi(){if(Or!==null){var r=lp(iu),o=gn.transition,u=$e;try{if(gn.transition=null,$e=16>r?16:r,Or===null)var d=!1;else{if(r=Or,Or=null,iu=0,(We&6)!==0)throw Error(n(331));var m=We;for(We|=4,ye=r.current;ye!==null;){var y=ye,v=y.child;if((ye.flags&16)!==0){var P=y.deletions;if(P!==null){for(var M=0;M<P.length;M++){var G=P[M];for(ye=G;ye!==null;){var ie=ye;switch(ie.tag){case 0:case 11:case 15:cs(8,ie,y)}var se=ie.child;if(se!==null)se.return=ie,ye=se;else for(;ye!==null;){ie=ye;var te=ie.sibling,Ee=ie.return;if(s0(ie),ie===G){ye=null;break}if(te!==null){te.return=Ee,ye=te;break}ye=Ee}}}var be=y.alternate;if(be!==null){var _e=be.child;if(_e!==null){be.child=null;do{var ut=_e.sibling;_e.sibling=null,_e=ut}while(_e!==null)}}ye=y}}if((y.subtreeFlags&2064)!==0&&v!==null)v.return=y,ye=v;else e:for(;ye!==null;){if(y=ye,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:cs(9,y,y.return)}var Y=y.sibling;if(Y!==null){Y.return=y.return,ye=Y;break e}ye=y.return}}var U=r.current;for(ye=U;ye!==null;){v=ye;var q=v.child;if((v.subtreeFlags&2064)!==0&&q!==null)q.return=v,ye=q;else e:for(v=U;ye!==null;){if(P=ye,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:Ja(9,P)}}catch(Ce){st(P,P.return,Ce)}if(P===v){ye=null;break e}var he=P.sibling;if(he!==null){he.return=P.return,ye=he;break e}ye=P.return}}if(We=m,wr(),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(fa,r)}catch{}d=!0}return d}finally{$e=u,gn.transition=o}}return!1}function v0(r,o,u){o=Vi(u,o),o=Hm(r,o,1),r=kr(r,o,1),o=Mt(),r!==null&&(Fo(r,1,o),$t(r,o))}function st(r,o,u){if(r.tag===3)v0(r,r,u);else for(;o!==null;){if(o.tag===3){v0(o,r,u);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ir===null||!Ir.has(d))){r=Vi(u,r),r=jm(o,r,1),o=kr(o,r,1),r=Mt(),o!==null&&(Fo(o,1,r),$t(o,r));break}}o=o.return}}function Wv(r,o,u){var d=r.pingCache;d!==null&&d.delete(o),o=Mt(),r.pingedLanes|=r.suspendedLanes&u,Et===r&&(Ct&u)===u&&(pt===4||pt===3&&(Ct&130023424)===Ct&&500>at()-od?oi(r,0):id|=u),$t(r,o)}function _0(r,o){o===0&&((r.mode&1)===0?o=1:(o=pa,pa<<=1,(pa&130023424)===0&&(pa=4194304)));var u=Mt();r=nr(r,o),r!==null&&(Fo(r,o,u),$t(r,u))}function Vv(r){var o=r.memoizedState,u=0;o!==null&&(u=o.retryLane),_0(r,u)}function Yv(r,o){var u=0;switch(r.tag){case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(u=m.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),_0(r,u)}var C0;C0=function(r,o,u){if(r!==null)if(r.memoizedProps!==o.pendingProps||zt.current)Vt=!0;else{if((r.lanes&u)===0&&(o.flags&128)===0)return Vt=!1,Rv(r,o,u);Vt=(r.flags&131072)!==0}else Vt=!1,nt&&(o.flags&1048576)!==0&&rm(o,Ma,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Xa(r,o),r=o.pendingProps;var m=Mi(o,kt.current);zi(o,u),m=Mc(null,o,d,r,m,u);var y=Fc();return o.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Wt(d)?(y=!0,La(o)):y=!1,o.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Nc(o),m.updater=Qa,o.stateNode=m,m._reactInternals=o,Wc(o,d,r,u),o=qc(null,o,d,!0,y,u)):(o.tag=0,nt&&y&&Tc(o),Dt(null,o,m,u),o=o.child),o;case 16:d=o.elementType;e:{switch(Xa(r,o),r=o.pendingProps,m=d._init,d=m(d._payload),o.type=d,m=o.tag=qv(d),r=wn(d,r),m){case 0:o=$c(null,o,d,r,u);break e;case 1:o=Km(null,o,d,r,u);break e;case 11:o=Ym(null,o,d,r,u);break e;case 14:o=$m(null,o,d,wn(d.type,r),u);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:wn(d,m),$c(r,o,d,m,u);case 1:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:wn(d,m),Km(r,o,d,m,u);case 3:e:{if(Xm(o),r===null)throw Error(n(387));d=o.pendingProps,y=o.memoizedState,m=y.element,fm(r,o),za(o,d,null,u);var v=o.memoizedState;if(d=v.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){m=Vi(Error(n(423)),o),o=Zm(r,o,d,u,m);break e}else if(d!==m){m=Vi(Error(n(424)),o),o=Zm(r,o,d,u,m);break e}else for(tn=_r(o.stateNode.containerInfo.firstChild),en=o,nt=!0,Sn=null,u=cm(o,null,d,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ui(),d===m){o=ir(r,o,u);break e}Dt(r,o,d,u)}o=o.child}return o;case 5:return mm(o),r===null&&vc(o),d=o.type,m=o.pendingProps,y=r!==null?r.memoizedProps:null,v=m.children,hc(d,m)?v=null:y!==null&&hc(d,y)&&(o.flags|=32),Qm(r,o),Dt(r,o,v,u),o.child;case 6:return r===null&&vc(o),null;case 13:return Jm(r,o,u);case 4:return Ic(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=Hi(o,null,d,u):Dt(r,o,d,u),o.child;case 11:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:wn(d,m),Ym(r,o,d,m,u);case 7:return Dt(r,o,o.pendingProps,u),o.child;case 8:return Dt(r,o,o.pendingProps.children,u),o.child;case 12:return Dt(r,o,o.pendingProps.children,u),o.child;case 10:e:{if(d=o.type._context,m=o.pendingProps,y=o.memoizedProps,v=m.value,Qe(Ua,d._currentValue),d._currentValue=v,y!==null)if(Cn(y.value,v)){if(y.children===m.children&&!zt.current){o=ir(r,o,u);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var P=y.dependencies;if(P!==null){v=y.child;for(var M=P.firstContext;M!==null;){if(M.context===d){if(y.tag===1){M=rr(-1,u&-u),M.tag=2;var G=y.updateQueue;if(G!==null){G=G.shared;var ie=G.pending;ie===null?M.next=M:(M.next=ie.next,ie.next=M),G.pending=M}}y.lanes|=u,M=y.alternate,M!==null&&(M.lanes|=u),Ac(y.return,u,o),P.lanes|=u;break}M=M.next}}else if(y.tag===10)v=y.type===o.type?null:y.child;else if(y.tag===18){if(v=y.return,v===null)throw Error(n(341));v.lanes|=u,P=v.alternate,P!==null&&(P.lanes|=u),Ac(v,u,o),v=y.sibling}else v=y.child;if(v!==null)v.return=y;else for(v=y;v!==null;){if(v===o){v=null;break}if(y=v.sibling,y!==null){y.return=v.return,v=y;break}v=v.return}y=v}Dt(r,o,m.children,u),o=o.child}return o;case 9:return m=o.type,d=o.pendingProps.children,zi(o,u),m=pn(m),d=d(m),o.flags|=1,Dt(r,o,d,u),o.child;case 14:return d=o.type,m=wn(d,o.pendingProps),m=wn(d.type,m),$m(r,o,d,m,u);case 15:return qm(r,o,o.type,o.pendingProps,u);case 17:return d=o.type,m=o.pendingProps,m=o.elementType===d?m:wn(d,m),Xa(r,o),o.tag=1,Wt(d)?(r=!0,La(o)):r=!1,zi(o,u),Bm(o,d,m),Wc(o,d,m,u),qc(null,o,d,!0,r,u);case 19:return t0(r,o,u);case 22:return Gm(r,o,u)}throw Error(n(156,o.tag))};function S0(r,o){return ip(r,o)}function $v(r,o,u,d){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(r,o,u,d){return new $v(r,o,u,d)}function hd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function qv(r){if(typeof r=="function")return hd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ne)return 11;if(r===X)return 14}return 2}function Pr(r,o){var u=r.alternate;return u===null?(u=En(r.tag,o,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=o,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&14680064,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,o=r.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u}function uu(r,o,u,d,m,y){var v=2;if(d=r,typeof r=="function")hd(r)&&(v=1);else if(typeof r=="string")v=5;else e:switch(r){case W:return ai(u.children,m,y,o);case V:v=8,m|=8;break;case le:return r=En(12,u,o,m|2),r.elementType=le,r.lanes=y,r;case oe:return r=En(13,u,o,m),r.elementType=oe,r.lanes=y,r;case ee:return r=En(19,u,o,m),r.elementType=ee,r.lanes=y,r;case fe:return lu(u,m,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ge:v=10;break e;case J:v=9;break e;case ne:v=11;break e;case X:v=14;break e;case ue:v=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=En(v,u,o,m),o.elementType=r,o.type=d,o.lanes=y,o}function ai(r,o,u,d){return r=En(7,r,d,o),r.lanes=u,r}function lu(r,o,u,d){return r=En(22,r,d,o),r.elementType=fe,r.lanes=u,r.stateNode={isHidden:!1},r}function pd(r,o,u){return r=En(6,r,null,o),r.lanes=u,r}function md(r,o,u){return o=En(4,r.children!==null?r.children:[],r.key,o),o.lanes=u,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function Gv(r,o,u,d,m){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function gd(r,o,u,d,m,y,v,P,M){return r=new Gv(r,o,u,P,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=En(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nc(y),r}function Qv(r,o,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:d==null?null:""+d,children:r,containerInfo:o,implementation:u}}function w0(r){if(!r)return Sr;r=r._reactInternals;e:{if(Qr(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Wt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var u=r.type;if(Wt(u))return em(r,u,o)}return o}function A0(r,o,u,d,m,y,v,P,M){return r=gd(u,d,!0,r,m,y,v,P,M),r.context=w0(null),u=r.current,d=Mt(),m=Rr(u),y=rr(d,m),y.callback=o??null,kr(u,y,m),r.current.lanes=m,Fo(r,m,d),$t(r,d),r}function cu(r,o,u,d){var m=o.current,y=Mt(),v=Rr(m);return u=w0(u),o.context===null?o.context=u:o.pendingContext=u,o=rr(y,v),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=kr(m,o,v),r!==null&&(Nn(r,m,v,y),ja(r,m,v)),v}function du(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function k0(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<o?u:o}}function Ed(r,o){k0(r,o),(r=r.alternate)&&k0(r,o)}function Kv(){return null}var N0=typeof reportError=="function"?reportError:function(r){console.error(r)};function yd(r){this._internalRoot=r}fu.prototype.render=yd.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));cu(r,o,null,null)},fu.prototype.unmount=yd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;ii(function(){cu(null,r,null,null)}),o[Zn]=null}};function fu(r){this._internalRoot=r}fu.prototype.unstable_scheduleHydration=function(r){if(r){var o=fp();r={blockedOn:null,target:r,priority:o};for(var u=0;u<br.length&&o!==0&&o<br[u].priority;u++);br.splice(u,0,r),u===0&&mp(r)}};function Td(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function hu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function I0(){}function Xv(r,o,u,d,m){if(m){if(typeof d=="function"){var y=d;d=function(){var G=du(v);y.call(G)}}var v=A0(o,d,r,0,null,!1,!1,"",I0);return r._reactRootContainer=v,r[Zn]=v.current,Xo(r.nodeType===8?r.parentNode:r),ii(),v}for(;m=r.lastChild;)r.removeChild(m);if(typeof d=="function"){var P=d;d=function(){var G=du(M);P.call(G)}}var M=gd(r,0,!1,null,null,!1,!1,"",I0);return r._reactRootContainer=M,r[Zn]=M.current,Xo(r.nodeType===8?r.parentNode:r),ii(function(){cu(o,M,u,d)}),M}function pu(r,o,u,d,m){var y=u._reactRootContainer;if(y){var v=y;if(typeof m=="function"){var P=m;m=function(){var M=du(v);P.call(M)}}cu(o,v,r,m)}else v=Xv(u,o,r,m,d);return du(v)}cp=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var u=Mo(o.pendingLanes);u!==0&&(Wl(o,u|1),$t(o,at()),(We&6)===0&&(qi=at()+500,wr()))}break;case 13:ii(function(){var d=nr(r,1);if(d!==null){var m=Mt();Nn(d,r,1,m)}}),Ed(r,1)}},Vl=function(r){if(r.tag===13){var o=nr(r,134217728);if(o!==null){var u=Mt();Nn(o,r,134217728,u)}Ed(r,134217728)}},dp=function(r){if(r.tag===13){var o=Rr(r),u=nr(r,o);if(u!==null){var d=Mt();Nn(u,r,o,d)}Ed(r,o)}},fp=function(){return $e},hp=function(r,o){var u=$e;try{return $e=r,o()}finally{$e=u}},Ml=function(r,o,u){switch(o){case"input":if(_i(r,u),o=u.name,u.type==="radio"&&o!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<u.length;o++){var d=u[o];if(d!==r&&d.form===r.form){var m=Oa(d);if(!m)throw Error(n(90));xn(d),_i(d,m)}}}break;case"textarea":aa(r,u);break;case"select":o=u.value,o!=null&&mr(r,!!u.multiple,o,!1)}},Xh=cd,Zh=ii;var Zv={usingClientEntryPoint:!1,Events:[es,Pi,Oa,Qh,Kh,cd]},ps={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jv={bundleType:ps.bundleType,version:ps.version,rendererPackageName:ps.rendererPackageName,rendererConfig:ps.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=np(r),r===null?null:r.stateNode},findFiberByHostInstance:ps.findFiberByHostInstance||Kv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{fa=mu.inject(Jv),Mn=mu}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zv,qt.createPortal=function(r,o){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Td(o))throw Error(n(200));return Qv(r,o,null,u)},qt.createRoot=function(r,o){if(!Td(r))throw Error(n(299));var u=!1,d="",m=N0;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),o=gd(r,1,!1,null,null,u,!1,d,m),r[Zn]=o.current,Xo(r.nodeType===8?r.parentNode:r),new yd(o)},qt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=np(o),r=r===null?null:r.stateNode,r},qt.flushSync=function(r){return ii(r)},qt.hydrate=function(r,o,u){if(!hu(o))throw Error(n(200));return pu(null,r,o,!0,u)},qt.hydrateRoot=function(r,o,u){if(!Td(r))throw Error(n(405));var d=u!=null&&u.hydratedSources||null,m=!1,y="",v=N0;if(u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onRecoverableError!==void 0&&(v=u.onRecoverableError)),o=A0(o,null,r,1,u??null,m,!1,y,v),r[Zn]=o.current,Xo(r),d)for(r=0;r<d.length;r++)u=d[r],m=u._getVersion,m=m(u._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[u,m]:o.mutableSourceEagerHydrationData.push(u,m);return new fu(o)},qt.render=function(r,o,u){if(!hu(o))throw Error(n(200));return pu(null,r,o,!1,u)},qt.unmountComponentAtNode=function(r){if(!hu(r))throw Error(n(40));return r._reactRootContainer?(ii(function(){pu(null,null,r,!1,function(){r._reactRootContainer=null,r[Zn]=null})}),!0):!1},qt.unstable_batchedUpdates=cd,qt.unstable_renderSubtreeIntoContainer=function(r,o,u,d){if(!hu(u))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return pu(r,o,u,!1,d)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var B0;function K1(){if(B0)return vd.exports;B0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vd.exports=a_(),vd.exports}var U0;function u_(){if(U0)return gu;U0=1;var e=K1();return gu.createRoot=e.createRoot,gu.hydrateRoot=e.hydrateRoot,gu}var l_=u_();const wt={UI:"UI",FETCH_DATA_PRODUCT:"FETCH_DATA_PRODUCT",FETCH_DATA_ALL:"FETCH_DATA_ALL"};function St(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var c_=typeof Symbol=="function"&&Symbol.observable||"@@observable",H0=c_,Sd=()=>Math.random().toString(36).substring(7).split("").join("."),d_={INIT:`@@redux/INIT${Sd()}`,REPLACE:`@@redux/REPLACE${Sd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sd()}`},Hu=d_;function $f(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function X1(e,t,n){if(typeof e!="function")throw new Error(St(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(St(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(St(1));return n(X1)(e,t)}let i=e,s=t,a=new Map,l=a,c=0,f=!1;function p(){l===a&&(l=new Map,a.forEach((k,S)=>{l.set(S,k)}))}function g(){if(f)throw new Error(St(3));return s}function E(k){if(typeof k!="function")throw new Error(St(4));if(f)throw new Error(St(5));let S=!0;p();const O=c++;return l.set(O,k),function(){if(S){if(f)throw new Error(St(6));S=!1,p(),l.delete(O),a=null}}}function b(k){if(!$f(k))throw new Error(St(7));if(typeof k.type>"u")throw new Error(St(8));if(typeof k.type!="string")throw new Error(St(17));if(f)throw new Error(St(9));try{f=!0,s=i(s,k)}finally{f=!1}return(a=l).forEach(O=>{O()}),k}function T(k){if(typeof k!="function")throw new Error(St(10));i=k,b({type:Hu.REPLACE})}function w(){const k=E;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(St(11));function O(){const F=S;F.next&&F.next(g())}return O(),{unsubscribe:k(O)}},[H0](){return this}}}return b({type:Hu.INIT}),{dispatch:b,subscribe:E,getState:g,replaceReducer:T,[H0]:w}}function f_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Hu.INIT})>"u")throw new Error(St(12));if(typeof n(void 0,{type:Hu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(St(13))})}function qf(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];typeof e[l]=="function"&&(n[l]=e[l])}const i=Object.keys(n);let s;try{f_(n)}catch(a){s=a}return function(l={},c){if(s)throw s;let f=!1;const p={};for(let g=0;g<i.length;g++){const E=i[g],b=n[E],T=l[E],w=b(T,c);if(typeof w>"u")throw c&&c.type,new Error(St(14));p[E]=w,f=f||w!==T}return f=f||i.length!==Object.keys(l).length,f?p:l}}function ju(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function h_(...e){return t=>(n,i)=>{const s=t(n,i);let a=()=>{throw new Error(St(15))};const l={getState:s.getState,dispatch:(f,...p)=>a(f,...p)},c=e.map(f=>f(l));return a=ju(...c)(s.dispatch),{...s,dispatch:a}}}function p_(e){return $f(e)&&"type"in e&&typeof e.type=="string"}var Z1=Symbol.for("immer-nothing"),j0=Symbol.for("immer-draftable"),ln=Symbol.for("immer-state");function In(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fs=Object.getPrototypeOf;function fi(e){return!!e&&!!e[ln]}function cr(e){return e?J1(e)||Array.isArray(e)||!!e[j0]||!!e.constructor?.[j0]||$s(e)||al(e):!1}var m_=Object.prototype.constructor.toString(),z0=new WeakMap;function J1(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let i=z0.get(n);return i===void 0&&(i=Function.toString.call(n),z0.set(n,i)),i===m_}function zu(e,t,n=!0){sl(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((i,s)=>t(s,i,e))}function sl(e){const t=e[ln];return t?t.type_:Array.isArray(e)?1:$s(e)?2:al(e)?3:0}function uf(e,t){return sl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function eE(e,t,n){const i=sl(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function g_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $s(e){return e instanceof Map}function al(e){return e instanceof Set}function li(e){return e.copy_||e.base_}function lf(e,t){if($s(e))return new Map(e);if(al(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=J1(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[ln];let s=Reflect.ownKeys(i);for(let a=0;a<s.length;a++){const l=s[a],c=i[l];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(i[l]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[l]})}return Object.create(Fs(e),i)}else{const i=Fs(e);if(i!==null&&n)return{...e};const s=Object.create(i);return Object.assign(s,e)}}function Gf(e,t=!1){return ul(e)||fi(e)||!cr(e)||(sl(e)>1&&Object.defineProperties(e,{set:Eu,add:Eu,clear:Eu,delete:Eu}),Object.freeze(e),t&&Object.values(e).forEach(n=>Gf(n,!0))),e}function E_(){In(2)}var Eu={value:E_};function ul(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var y_={};function hi(e){const t=y_[e];return t||In(0,e),t}var Bs;function tE(){return Bs}function T_(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function W0(e,t){t&&(hi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cf(e){df(e),e.drafts_.forEach(b_),e.drafts_=null}function df(e){e===Bs&&(Bs=e.parent_)}function V0(e){return Bs=T_(Bs,e)}function b_(e){const t=e[ln];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Y0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ln].modified_&&(cf(t),In(4)),cr(e)&&(e=Wu(t,e),t.parent_||Vu(t,e)),t.patches_&&hi("Patches").generateReplacementPatches_(n[ln].base_,e,t.patches_,t.inversePatches_)):e=Wu(t,n,[]),cf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Z1?e:void 0}function Wu(e,t,n){if(ul(t))return t;const i=e.immer_.shouldUseStrictIteration(),s=t[ln];if(!s)return zu(t,(a,l)=>$0(e,s,t,a,l,n),i),t;if(s.scope_!==e)return t;if(!s.modified_)return Vu(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const a=s.copy_;let l=a,c=!1;s.type_===3&&(l=new Set(a),a.clear(),c=!0),zu(l,(f,p)=>$0(e,s,a,f,p,n,c),i),Vu(e,a,!1),n&&e.patches_&&hi("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function $0(e,t,n,i,s,a,l){if(s==null||typeof s!="object"&&!l)return;const c=ul(s);if(!(c&&!l)){if(fi(s)){const f=a&&t&&t.type_!==3&&!uf(t.assigned_,i)?a.concat(i):void 0,p=Wu(e,s,f);if(eE(n,i,p),fi(p))e.canAutoFreeze_=!1;else return}else l&&n.add(s);if(cr(s)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===s&&c)return;Wu(e,s),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&($s(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&Vu(e,s)}}}function Vu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Gf(t,n)}function x_(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:tE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=i,a=Qf;n&&(s=[i],a=Us);const{revoke:l,proxy:c}=Proxy.revocable(s,a);return i.draft_=c,i.revoke_=l,c}var Qf={get(e,t){if(t===ln)return e;const n=li(e);if(!uf(n,t))return v_(e,n,t);const i=n[t];return e.finalized_||!cr(i)?i:i===wd(e.base_,t)?(Ad(e),e.copy_[t]=hf(i,e)):i},has(e,t){return t in li(e)},ownKeys(e){return Reflect.ownKeys(li(e))},set(e,t,n){const i=nE(li(e),t);if(i?.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const s=wd(li(e),t),a=s?.[ln];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(g_(n,s)&&(n!==void 0||uf(e.base_,t)))return!0;Ad(e),ff(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return wd(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ad(e),ff(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=li(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){In(11)},getPrototypeOf(e){return Fs(e.base_)},setPrototypeOf(){In(12)}},Us={};zu(Qf,(e,t)=>{Us[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Us.deleteProperty=function(e,t){return Us.set.call(this,e,t,void 0)};Us.set=function(e,t,n){return Qf.set.call(this,e[0],t,n,e[0])};function wd(e,t){const n=e[ln];return(n?li(n):e)[t]}function v_(e,t,n){const i=nE(t,n);return i?"value"in i?i.value:i.get?.call(e.draft_):void 0}function nE(e,t){if(!(t in e))return;let n=Fs(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Fs(n)}}function ff(e){e.modified_||(e.modified_=!0,e.parent_&&ff(e.parent_))}function Ad(e){e.copy_||(e.copy_=lf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var __=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const l=this;return function(f=a,...p){return l.produce(f,g=>n.call(this,g,...p))}}typeof n!="function"&&In(6),i!==void 0&&typeof i!="function"&&In(7);let s;if(cr(t)){const a=V0(this),l=hf(t,void 0);let c=!0;try{s=n(l),c=!1}finally{c?cf(a):df(a)}return W0(a,i),Y0(s,a)}else if(!t||typeof t!="object"){if(s=n(t),s===void 0&&(s=t),s===Z1&&(s=void 0),this.autoFreeze_&&Gf(s,!0),i){const a=[],l=[];hi("Patches").generateReplacementPatches_(t,s,a,l),i(a,l)}return s}else In(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...c)=>this.produceWithPatches(l,f=>t(f,...c));let i,s;return[this.produce(t,n,(l,c)=>{i=l,s=c}),i,s]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){cr(e)||In(8),fi(e)&&(e=C_(e));const t=V0(this),n=hf(e,void 0);return n[ln].isManual_=!0,df(t),n}finishDraft(e,t){const n=e&&e[ln];(!n||!n.isManual_)&&In(9);const{scope_:i}=n;return W0(i,t),Y0(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const i=hi("Patches").applyPatches_;return fi(e)?i(e,t):this.produce(e,s=>i(s,t))}};function hf(e,t){const n=$s(e)?hi("MapSet").proxyMap_(e,t):al(e)?hi("MapSet").proxySet_(e,t):x_(e,t);return(t?t.scope_:tE()).drafts_.push(n),n}function C_(e){return fi(e)||In(10,e),rE(e)}function rE(e){if(!cr(e)||ul(e))return e;const t=e[ln];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=lf(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=lf(e,!0);return zu(n,(s,a)=>{eE(n,s,rE(a))},i),t&&(t.finalized_=!1),n}var pf=new __,iE=pf.produce,S_=pf.setUseStrictIteration.bind(pf);function w_(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function A_(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function k_(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var q0=e=>Array.isArray(e)?e:[e];function N_(e){const t=Array.isArray(e[0])?e[0]:e;return k_(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function I_(e,t){const n=[],{length:i}=e;for(let s=0;s<i;s++)n.push(e[s].apply(null,t));return n}var O_=class{constructor(e){this.value=e}deref(){return this.value}},R_=typeof WeakRef<"u"?WeakRef:O_,L_=0,G0=1;function yu(){return{s:L_,v:void 0,o:null,p:null}}function oE(e,t={}){let n=yu();const{resultEqualityCheck:i}=t;let s,a=0;function l(){let c=n;const{length:f}=arguments;for(let E=0,b=f;E<b;E++){const T=arguments[E];if(typeof T=="function"||typeof T=="object"&&T!==null){let w=c.o;w===null&&(c.o=w=new WeakMap);const C=w.get(T);C===void 0?(c=yu(),w.set(T,c)):c=C}else{let w=c.p;w===null&&(c.p=w=new Map);const C=w.get(T);C===void 0?(c=yu(),w.set(T,c)):c=C}}const p=c;let g;if(c.s===G0)g=c.v;else if(g=e.apply(null,arguments),a++,i){const E=s?.deref?.()??s;E!=null&&i(E,g)&&(g=E,a!==0&&a--),s=typeof g=="object"&&g!==null||typeof g=="function"?new R_(g):g}return p.s=G0,p.v=g,g}return l.clearCache=()=>{n=yu(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}function P_(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...s)=>{let a=0,l=0,c,f={},p=s.pop();typeof p=="object"&&(f=p,p=s.pop()),w_(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const g={...n,...f},{memoize:E,memoizeOptions:b=[],argsMemoize:T=oE,argsMemoizeOptions:w=[]}=g,C=q0(b),k=q0(w),S=N_(s),O=E(function(){return a++,p.apply(null,arguments)},...C),I=T(function(){l++;const z=I_(S,arguments);return c=O.apply(null,z),c},...k);return Object.assign(I,{resultFunc:p,memoizedResultFunc:O,dependencies:S,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:E,argsMemoize:T})};return Object.assign(i,{withTypes:()=>i}),i}var ll=P_(oE),D_=Object.assign((e,t=ll)=>{A_(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(a=>e[a]);return t(i,(...a)=>a.reduce((l,c,f)=>(l[n[f]]=c,l),{}))},{withTypes:()=>D_});function sE(e){return({dispatch:n,getState:i})=>s=>a=>typeof a=="function"?a(n,i,e):s(a)}var M_=sE(),F_=sE,B_=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ju:ju.apply(null,arguments)},U_=e=>e&&typeof e.match=="function";function ws(e,t){function n(...i){if(t){let s=t(...i);if(!s)throw new Error(ur(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>p_(i)&&i.type===e,n}var aE=class Cs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Cs.prototype)}static get[Symbol.species](){return Cs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Cs(...t[0].concat(this)):new Cs(...t.concat(this))}};function Q0(e){return cr(e)?iE(e,()=>{}):e}function Tu(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function H_(e){return typeof e=="boolean"}var j_=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:a=!0}=t??{};let l=new aE;return n&&(H_(n)?l.push(M_):l.push(F_(n.extraArgument))),l},z_="RTK_autoBatch",K0=e=>t=>{setTimeout(t,e)},W_=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let s=!0,a=!1,l=!1;const c=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:K0(10):e.type==="callback"?e.queueNotification:K0(e.timeout),p=()=>{l=!1,a&&(a=!1,c.forEach(g=>g()))};return Object.assign({},i,{subscribe(g){const E=()=>s&&g(),b=i.subscribe(E);return c.add(g),()=>{b(),c.delete(g)}},dispatch(g){try{return s=!g?.meta?.[z_],a=!s,a&&(l||(l=!0,f(p))),i.dispatch(g)}finally{s=!0}}})},V_=e=>function(n){const{autoBatch:i=!0}=n??{};let s=new aE(e);return i&&s.push(W_(typeof i=="object"?i:void 0)),s};function uE(e){const t=j_(),{reducer:n=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:a=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let f;if(typeof n=="function")f=n;else if($f(n))f=qf(n);else throw new Error(ur(1));let p;typeof i=="function"?p=i(t):p=t();let g=ju;s&&(g=B_({trace:!1,...typeof s=="object"&&s}));const E=h_(...p),b=V_(E);let T=typeof c=="function"?c(b):b();const w=g(...T);return X1(f,l,w)}function lE(e){const t={},n=[];let i;const s={addCase(a,l){const c=typeof a=="string"?a:a.type;if(!c)throw new Error(ur(28));if(c in t)throw new Error(ur(29));return t[c]=l,s},addAsyncThunk(a,l){return l.pending&&(t[a.pending.type]=l.pending),l.rejected&&(t[a.rejected.type]=l.rejected),l.fulfilled&&(t[a.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:a.settled,reducer:l.settled}),s},addMatcher(a,l){return n.push({matcher:a,reducer:l}),s},addDefaultCase(a){return i=a,s}};return e(s),[t,n,i]}S_(!1);function Y_(e){return typeof e=="function"}function $_(e,t){let[n,i,s]=lE(t),a;if(Y_(e))a=()=>Q0(e());else{const c=Q0(e);a=()=>c}function l(c=a(),f){let p=[n[f.type],...i.filter(({matcher:g})=>g(f)).map(({reducer:g})=>g)];return p.filter(g=>!!g).length===0&&(p=[s]),p.reduce((g,E)=>{if(E)if(fi(g)){const T=E(g,f);return T===void 0?g:T}else{if(cr(g))return iE(g,b=>E(b,f));{const b=E(g,f);if(b===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return g},c)}return l.getInitialState=a,l}var q_=(e,t)=>U_(e)?e.match(t):e(t);function G_(...e){return t=>e.some(n=>q_(n,t))}var Q_="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",K_=(e=21)=>{let t="",n=e;for(;n--;)t+=Q_[Math.random()*64|0];return t},X_=["name","message","stack","code"],kd=class{constructor(e,t){this.payload=e,this.meta=t}_type},X0=class{constructor(e,t){this.payload=e,this.meta=t}_type},Z_=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of X_)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Z0="External signal was aborted",cE=(()=>{function e(t,n,i){const s=ws(t+"/fulfilled",(f,p,g,E)=>({payload:f,meta:{...E||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),a=ws(t+"/pending",(f,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:f,requestStatus:"pending"}})),l=ws(t+"/rejected",(f,p,g,E,b)=>({payload:E,error:(i&&i.serializeError||Z_)(f||"Rejected"),meta:{...b||{},arg:g,requestId:p,rejectedWithValue:!!E,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"}}));function c(f,{signal:p}={}){return(g,E,b)=>{const T=i?.idGenerator?i.idGenerator(f):K_(),w=new AbortController;let C,k;function S(I){k=I,w.abort()}p&&(p.aborted?S(Z0):p.addEventListener("abort",()=>S(Z0),{once:!0}));const O=(async function(){let I;try{let z=i?.condition?.(f,{getState:E,extra:b});if(e2(z)&&(z=await z),z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const B=new Promise((W,V)=>{C=()=>{V({name:"AbortError",message:k||"Aborted"})},w.signal.addEventListener("abort",C)});g(a(T,f,i?.getPendingMeta?.({requestId:T,arg:f},{getState:E,extra:b}))),I=await Promise.race([B,Promise.resolve(n(f,{dispatch:g,getState:E,extra:b,requestId:T,signal:w.signal,abort:S,rejectWithValue:(W,V)=>new kd(W,V),fulfillWithValue:(W,V)=>new X0(W,V)})).then(W=>{if(W instanceof kd)throw W;return W instanceof X0?s(W.payload,T,f,W.meta):s(W,T,f)})])}catch(z){I=z instanceof kd?l(null,T,f,z.payload,z.meta):l(z,T,f)}finally{C&&w.signal.removeEventListener("abort",C)}return i&&!i.dispatchConditionRejection&&l.match(I)&&I.meta.condition||g(I),I})();return Object.assign(O,{abort:S,requestId:T,arg:f,unwrap(){return O.then(J_)}})}}return Object.assign(c,{pending:a,rejected:l,fulfilled:s,settled:G_(l,s),typePrefix:t})}return e.withTypes=()=>e,e})();function J_(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function e2(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var t2=Symbol.for("rtk-slice-createasyncthunk");function n2(e,t){return`${e}/${t}`}function r2({creators:e}={}){const t=e?.asyncThunk?.[t2];return function(i){const{name:s,reducerPath:a=s}=i;if(!s)throw new Error(ur(11));const l=(typeof i.reducers=="function"?i.reducers(o2()):i.reducers)||{},c=Object.keys(l),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(I,F){const z=typeof I=="string"?I:I.type;if(!z)throw new Error(ur(12));if(z in f.sliceCaseReducersByType)throw new Error(ur(13));return f.sliceCaseReducersByType[z]=F,p},addMatcher(I,F){return f.sliceMatchers.push({matcher:I,reducer:F}),p},exposeAction(I,F){return f.actionCreators[I]=F,p},exposeCaseReducer(I,F){return f.sliceCaseReducersByName[I]=F,p}};c.forEach(I=>{const F=l[I],z={reducerName:I,type:n2(s,I),createNotation:typeof i.reducers=="function"};a2(F)?l2(z,F,p,t):s2(z,F,p)});function g(){const[I={},F=[],z=void 0]=typeof i.extraReducers=="function"?lE(i.extraReducers):[i.extraReducers],B={...I,...f.sliceCaseReducersByType};return $_(i.initialState,W=>{for(let V in B)W.addCase(V,B[V]);for(let V of f.sliceMatchers)W.addMatcher(V.matcher,V.reducer);for(let V of F)W.addMatcher(V.matcher,V.reducer);z&&W.addDefaultCase(z)})}const E=I=>I,b=new Map,T=new WeakMap;let w;function C(I,F){return w||(w=g()),w(I,F)}function k(){return w||(w=g()),w.getInitialState()}function S(I,F=!1){function z(W){let V=W[I];return typeof V>"u"&&F&&(V=Tu(T,z,k)),V}function B(W=E){const V=Tu(b,F,()=>new WeakMap);return Tu(V,W,()=>{const le={};for(const[ge,J]of Object.entries(i.selectors??{}))le[ge]=i2(J,W,()=>Tu(T,W,k),F);return le})}return{reducerPath:I,getSelectors:B,get selectors(){return B(z)},selectSlice:z}}const O={name:s,reducer:C,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:k,...S(a),injectInto(I,{reducerPath:F,...z}={}){const B=F??a;return I.inject({reducerPath:B,reducer:C},z),{...O,...S(B,!0)}}};return O}}function i2(e,t,n,i){function s(a,...l){let c=t(a);return typeof c>"u"&&i&&(c=n()),e(c,...l)}return s.unwrapped=e,s}var Kf=r2();function o2(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function s2({type:e,reducerName:t,createNotation:n},i,s){let a,l;if("reducer"in i){if(n&&!u2(i))throw new Error(ur(17));a=i.reducer,l=i.prepare}else a=i;s.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,l?ws(e,l):ws(e))}function a2(e){return e._reducerDefinitionType==="asyncThunk"}function u2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function l2({type:e,reducerName:t},n,i,s){if(!s)throw new Error(ur(18));const{payloadCreator:a,fulfilled:l,pending:c,rejected:f,settled:p,options:g}=n,E=s(e,a,g);i.exposeAction(t,E),l&&i.addCase(E.fulfilled,l),c&&i.addCase(E.pending,c),f&&i.addCase(E.rejected,f),p&&i.addMatcher(E.settled,p),i.exposeCaseReducer(t,{fulfilled:l||bu,pending:c||bu,rejected:f||bu,settled:p||bu})}function bu(){}function ur(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nd={exports:{}},Id={};var J0;function c2(){if(J0)return Id;J0=1;var e=ol();function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,s=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Id.useSyncExternalStoreWithSelector=function(f,p,g,E,b){var T=s(null);if(T.current===null){var w={hasValue:!1,value:null};T.current=w}else w=T.current;T=l(function(){function k(z){if(!S){if(S=!0,O=z,z=E(z),b!==void 0&&w.hasValue){var B=w.value;if(b(B,z))return I=B}return I=z}if(B=I,n(O,z))return B;var W=E(z);return b!==void 0&&b(B,W)?(O=z,B):(O=z,I=W)}var S=!1,O,I,F=g===void 0?null:g;return[function(){return k(p())},F===null?void 0:function(){return k(F())}]},[p,g,E,b]);var C=i(f,T[0],T[1]);return a(function(){w.hasValue=!0,w.value=C},[C]),c(C),C},Id}var eg;function d2(){return eg||(eg=1,Nd.exports=c2()),Nd.exports}var f2=d2();function h2(e){e()}function p2(){let e=null,t=null;return{clear(){e=null,t=null},notify(){h2(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const s=t={callback:n,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!i||e===null||(i=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var tg={notify(){},get:()=>[]};function m2(e,t){let n,i=tg,s=0,a=!1;function l(C){g();const k=i.subscribe(C);let S=!1;return()=>{S||(S=!0,k(),E())}}function c(){i.notify()}function f(){w.onStateChange&&w.onStateChange()}function p(){return a}function g(){s++,n||(n=e.subscribe(f),i=p2())}function E(){s--,n&&s===0&&(n(),n=void 0,i.clear(),i=tg)}function b(){a||(a=!0,g())}function T(){a&&(a=!1,E())}const w={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:p,trySubscribe:b,tryUnsubscribe:T,getListeners:()=>i};return w}var g2=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E2=g2(),y2=()=>typeof navigator<"u"&&navigator.product==="ReactNative",T2=y2(),b2=()=>E2||T2?_.useLayoutEffect:_.useEffect,x2=b2(),v2=Symbol.for("react-redux-context"),_2=typeof globalThis<"u"?globalThis:{};function C2(){if(!_.createContext)return{};const e=_2[v2]??=new Map;let t=e.get(_.createContext);return t||(t=_.createContext(null),e.set(_.createContext,t)),t}var Wr=C2();function S2(e){const{children:t,context:n,serverState:i,store:s}=e,a=_.useMemo(()=>{const f=m2(s);return{store:s,subscription:f,getServerState:i?()=>i:void 0}},[s,i]),l=_.useMemo(()=>s.getState(),[s]);x2(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==s.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,l]);const c=n||Wr;return _.createElement(c.Provider,{value:a},t)}var w2=S2;function Xf(e=Wr){return function(){return _.useContext(e)}}var dE=Xf();function fE(e=Wr){const t=e===Wr?dE:Xf(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}var A2=fE();function k2(e=Wr){const t=e===Wr?A2:fE(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Zf=k2(),N2=(e,t)=>e===t;function I2(e=Wr){const t=e===Wr?dE:Xf(e),n=(i,s={})=>{const{equalityFn:a=N2}=typeof s=="function"?{equalityFn:s}:s,l=t(),{store:c,subscription:f,getServerState:p}=l;_.useRef(!0);const g=_.useCallback({[i.name](b){return i(b)}}[i.name],[i]),E=f2.useSyncExternalStoreWithSelector(f.addNestedSub,c.getState,p||c.getState,g,a);return _.useDebugValue(E),E};return Object.assign(n,{withTypes:()=>n}),n}var hE=I2();const O2={Finish:"Material",Color:"Color",Look:"Look"},R2=(e,t)=>e.toLowerCase()===t.toLowerCase();class Yu{static getMaterialsValuesFromOptions(t){if(t?.length)return t.reduce((n,i)=>{const s=Array.isArray(i.values)&&i.values.length?i.values:Array.isArray(i.valuesArray)&&i.valuesArray.length?i.valuesArray:void 0;if(!s)return n;const a=i.metadata?.Name??i.metadata?.Label??i.value??i.label??"without_name",l=s.map(c=>({...c,parentName:a}));return n.push(...l),n},[]).sort((n,i)=>(n.name?.toLowerCase()??"").localeCompare(i.name?.toLowerCase()??""))}static getUniqueByAssetId(t){const n=new Set;return t.filter(i=>n.has(i.assetId)?!1:(n.add(i.assetId),!0))}static normalizeToArray(t,n=!0){return t?Array.isArray(t)?t.map(i=>i.trim()).filter(Boolean):(n?t.split(","):[t]).map(i=>i.trim()).filter(Boolean):[]}static mapFiltersFromValues(t,n){return Object.keys(n).map(i=>{const s=O2[i],l=n[i].map(c=>{let f=0;for(const p of t){const g=Array.isArray(p.values)?p.values:[];for(const E of g){const b=this.normalizeToArray(E.metadata?.[s]);f+=b.filter(T=>R2(T,c)).length}}return{filterKey:c,filterCount:f}});return{filterType:i,filters:l}})}static getPositiveSelectedFilers(t){return t.map(n=>({filterName:n.filterType,filterKeys:n.filters.filter(i=>i.filterCount!==0).map(i=>i.filterKey)})).filter(n=>n.filterKeys.length>0)}}const pE=e=>Array.from(new Set(e)),mE={GET_PRODUCT_LIST:()=>"products",GET_PRODUCT_DETAILS:e=>`products/${e}`},L2={VITE_SWATH_CART_PRODUCTION_URL:"https://hbswatchcart.vivid3d.tech"},{VITE_SWATH_CART_PRODUCTION_URL:gE}=L2,P2=async()=>{try{const e=`${gE}/${mE.GET_PRODUCT_LIST()}?pageSize=500`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`Request failed with status ${t.status}`);const n=await t.json();if(Array.isArray(n))throw new Error("API returned an array, expected IProductListResponse object");return n}catch(e){throw console.error("❌ Fetch error:",e),e}},D2=async({assetId:e})=>{try{const t=`${gE}/${mE.GET_PRODUCT_DETAILS(e)}`,n=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Request failed with status ${n.status}`);return await n.json()}catch(t){throw console.error("❌ Fetch error:",t),t}};function EE(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=EE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function lr(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=EE(e))&&(i&&(i+=" "),i+=t);return i}function M2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}M2(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
9
|
+
`);var qs=e=>typeof e=="number"&&!isNaN(e),pi=e=>typeof e=="string",dr=e=>typeof e=="function",F2=e=>pi(e)||qs(e),mf=e=>pi(e)||dr(e)?e:null,B2=(e,t)=>e===!1||qs(e)&&e>0?e:t,gf=e=>_.isValidElement(e)||pi(e)||dr(e)||qs(e);function U2(e,t,n=300){let{scrollHeight:i,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=i+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function H2({enter:e,exit:t,appendPosition:n=!1,collapse:i=!0,collapseDuration:s=300}){return function({children:a,position:l,preventExitTransition:c,done:f,nodeRef:p,isIn:g,playToast:E}){let b=n?`${e}--${l}`:e,T=n?`${t}--${l}`:t,w=_.useRef(0);return _.useLayoutEffect(()=>{let C=p.current,k=b.split(" "),S=O=>{O.target===p.current&&(E(),C.removeEventListener("animationend",S),C.removeEventListener("animationcancel",S),w.current===0&&O.type!=="animationcancel"&&C.classList.remove(...k))};C.classList.add(...k),C.addEventListener("animationend",S),C.addEventListener("animationcancel",S)},[]),_.useEffect(()=>{let C=p.current,k=()=>{C.removeEventListener("animationend",k),i?U2(C,f,s):f()};g||(c?k():(w.current=1,C.className+=` ${T}`,C.addEventListener("animationend",k)))},[g]),Je.createElement(Je.Fragment,null,a)}}function ng(e,t){return{content:yE(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function yE(e,t,n=!1){return _.isValidElement(e)&&!pi(e.type)?_.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):dr(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function j2({closeToast:e,theme:t,ariaLabel:n="close"}){return Je.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:i=>{i.stopPropagation(),e(!0)},"aria-label":n},Je.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Je.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function z2({delay:e,isRunning:t,closeToast:n,type:i="default",hide:s,className:a,controlledProgress:l,progress:c,rtl:f,isIn:p,theme:g}){let E=s||l&&c===0,b={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(b.transform=`scaleX(${c})`);let T=lr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),w=dr(a)?a({rtl:f,type:i,defaultClassName:T}):lr(T,a),C={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{p&&n()}};return Je.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},Je.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${i}`}),Je.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:w,style:b,...C}))}var W2=1,TE=()=>`${W2++}`;function V2(e,t,n){let i=1,s=0,a=[],l=[],c=t,f=new Map,p=new Set,g=O=>(p.add(O),()=>p.delete(O)),E=()=>{l=Array.from(f.values()),p.forEach(O=>O())},b=({containerId:O,toastId:I,updateId:F})=>{let z=O?O!==e:e!==1,B=f.has(I)&&F==null;return z||B},T=(O,I)=>{f.forEach(F=>{var z;(I==null||I===F.props.toastId)&&((z=F.toggle)==null||z.call(F,O))})},w=O=>{var I,F;(F=(I=O.props)==null?void 0:I.onClose)==null||F.call(I,O.removalReason),O.isActive=!1},C=O=>{if(O==null)f.forEach(w);else{let I=f.get(O);I&&w(I)}E()},k=()=>{s-=a.length,a=[]},S=O=>{var I,F;let{toastId:z,updateId:B}=O.props,W=B==null;O.staleId&&f.delete(O.staleId),O.isActive=!0,f.set(z,O),E(),n(ng(O,W?"added":"updated")),W&&((F=(I=O.props).onOpen)==null||F.call(I))};return{id:e,props:c,observe:g,toggle:T,removeToast:C,toasts:f,clearQueue:k,buildToast:(O,I)=>{if(b(I))return;let{toastId:F,updateId:z,data:B,staleId:W,delay:V}=I,le=z==null;le&&s++;let ge={...c,style:c.toastStyle,key:i++,...Object.fromEntries(Object.entries(I).filter(([ne,oe])=>oe!=null)),toastId:F,updateId:z,data:B,isIn:!1,className:mf(I.className||c.toastClassName),progressClassName:mf(I.progressClassName||c.progressClassName),autoClose:I.isLoading?!1:B2(I.autoClose,c.autoClose),closeToast(ne){f.get(F).removalReason=ne,C(F)},deleteToast(){let ne=f.get(F);if(ne!=null){if(n(ng(ne,"removed")),f.delete(F),s--,s<0&&(s=0),a.length>0){S(a.shift());return}E()}}};ge.closeButton=c.closeButton,I.closeButton===!1||gf(I.closeButton)?ge.closeButton=I.closeButton:I.closeButton===!0&&(ge.closeButton=gf(c.closeButton)?c.closeButton:!0);let J={content:O,props:ge,staleId:W};c.limit&&c.limit>0&&s>c.limit&&le?a.push(J):qs(V)?setTimeout(()=>{S(J)},V):S(J)},setProps(O){c=O},setToggle:(O,I)=>{let F=f.get(O);F&&(F.toggle=I)},isToastActive:O=>{var I;return(I=f.get(O))==null?void 0:I.isActive},getSnapshot:()=>l}}var Bt=new Map,Hs=[],Ef=new Set,Y2=e=>Ef.forEach(t=>t(e)),bE=()=>Bt.size>0;function $2(){Hs.forEach(e=>vE(e.content,e.options)),Hs=[]}var q2=(e,{containerId:t})=>{var n;return(n=Bt.get(t||1))==null?void 0:n.toasts.get(e)};function xE(e,t){var n;if(t)return!!((n=Bt.get(t))!=null&&n.isToastActive(e));let i=!1;return Bt.forEach(s=>{s.isToastActive(e)&&(i=!0)}),i}function G2(e){if(!bE()){Hs=Hs.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||F2(e))Bt.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Bt.get(e.containerId);t?t.removeToast(e.id):Bt.forEach(n=>{n.removeToast(e.id)})}}var Q2=(e={})=>{Bt.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function vE(e,t){gf(e)&&(bE()||Hs.push({content:e,options:t}),Bt.forEach(n=>{n.buildToast(e,t)}))}function K2(e){var t;(t=Bt.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function _E(e,t){Bt.forEach(n=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function X2(e){let t=e.containerId||1;return{subscribe(n){let i=V2(t,e,Y2);Bt.set(t,i);let s=i.observe(n);return $2(),()=>{s(),Bt.delete(t)}},setProps(n){var i;(i=Bt.get(t))==null||i.setProps(n)},getSnapshot(){var n;return(n=Bt.get(t))==null?void 0:n.getSnapshot()}}}function Z2(e){return Ef.add(e),()=>{Ef.delete(e)}}function J2(e){return e&&(pi(e.toastId)||qs(e.toastId))?e.toastId:TE()}function Gs(e,t){return vE(e,t),t.toastId}function cl(e,t){return{...t,type:t&&t.type||e,toastId:J2(t)}}function dl(e){return(t,n)=>Gs(t,cl(e,n))}function qe(e,t){return Gs(e,cl("default",t))}qe.loading=(e,t)=>Gs(e,cl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function eC(e,{pending:t,error:n,success:i},s){let a;t&&(a=pi(t)?qe.loading(t,s):qe.loading(t.render,{...s,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(p,g,E)=>{if(g==null){qe.dismiss(a);return}let b={type:p,...l,...s,data:E},T=pi(g)?{render:g}:g;return a?qe.update(a,{...b,...T}):qe(T.render,{...b,...T}),E},f=dr(e)?e():e;return f.then(p=>c("success",i,p)).catch(p=>c("error",n,p)),f}qe.promise=eC;qe.success=dl("success");qe.info=dl("info");qe.error=dl("error");qe.warning=dl("warning");qe.warn=qe.warning;qe.dark=(e,t)=>Gs(e,cl("default",{theme:"dark",...t}));function tC(e){G2(e)}qe.dismiss=tC;qe.clearWaitingQueue=Q2;qe.isActive=xE;qe.update=(e,t={})=>{let n=q2(e,t);if(n){let{props:i,content:s}=n,a={delay:100,...i,...t,toastId:t.toastId||e,updateId:TE()};a.toastId!==e&&(a.staleId=e);let l=a.render||s;delete a.render,Gs(l,a)}};qe.done=e=>{qe.update(e,{progress:1})};qe.onChange=Z2;qe.play=e=>_E(!0,e);qe.pause=e=>_E(!1,e);function nC(e){var t;let{subscribe:n,getSnapshot:i,setProps:s}=_.useRef(X2(e)).current;s(e);let a=(t=_.useSyncExternalStore(n,i,i))==null?void 0:t.slice();function l(c){if(!a)return[];let f=new Map;return e.newestOnTop&&a.reverse(),a.forEach(p=>{let{position:g}=p.props;f.has(g)||f.set(g,[]),f.get(g).push(p)}),Array.from(f,p=>c(p[0],p[1]))}return{getToastToRender:l,isToastActive:xE,count:a?.length}}function rC(e){let[t,n]=_.useState(!1),[i,s]=_.useState(!1),a=_.useRef(null),l=_.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:g,closeOnClick:E}=e;K2({id:e.toastId,containerId:e.containerId,fn:n}),_.useEffect(()=>{if(e.pauseOnFocusLoss)return b(),()=>{T()}},[e.pauseOnFocusLoss]);function b(){document.hasFocus()||S(),window.addEventListener("focus",k),window.addEventListener("blur",S)}function T(){window.removeEventListener("focus",k),window.removeEventListener("blur",S)}function w(W){if(e.draggable===!0||e.draggable===W.pointerType){O();let V=a.current;l.canCloseOnClick=!0,l.canDrag=!0,V.style.transition="none",e.draggableDirection==="x"?(l.start=W.clientX,l.removalDistance=V.offsetWidth*(e.draggablePercent/100)):(l.start=W.clientY,l.removalDistance=V.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function C(W){let{top:V,bottom:le,left:ge,right:J}=a.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=ge&&W.clientX<=J&&W.clientY>=V&&W.clientY<=le?S():k()}function k(){n(!0)}function S(){n(!1)}function O(){l.didMove=!1,document.addEventListener("pointermove",F),document.addEventListener("pointerup",z)}function I(){document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",z)}function F(W){let V=a.current;if(l.canDrag&&V){l.didMove=!0,t&&S(),e.draggableDirection==="x"?l.delta=W.clientX-l.start:l.delta=W.clientY-l.start,l.start!==W.clientX&&(l.canCloseOnClick=!1);let le=e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`;V.style.transform=`translate3d(${le},0)`,V.style.opacity=`${1-Math.abs(l.delta/l.removalDistance)}`}}function z(){I();let W=a.current;if(l.canDrag&&l.didMove&&W){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}W.style.transition="transform 0.2s, opacity 0.2s",W.style.removeProperty("transform"),W.style.removeProperty("opacity")}}let B={onPointerDown:w,onPointerUp:C};return c&&f&&(B.onMouseEnter=S,e.stacked||(B.onMouseLeave=k)),E&&(B.onClick=W=>{g&&g(W),l.canCloseOnClick&&p(!0)}),{playToast:k,pauseToast:S,isRunning:t,preventExitTransition:i,toastRef:a,eventHandlers:B}}var iC=typeof window<"u"?_.useLayoutEffect:_.useEffect,fl=({theme:e,type:t,isLoading:n,...i})=>Je.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...i});function oC(e){return Je.createElement(fl,{...e},Je.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function sC(e){return Je.createElement(fl,{...e},Je.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function aC(e){return Je.createElement(fl,{...e},Je.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function uC(e){return Je.createElement(fl,{...e},Je.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function lC(){return Je.createElement("div",{className:"Toastify__spinner"})}var yf={info:sC,warning:oC,success:aC,error:uC,spinner:lC},cC=e=>e in yf;function dC({theme:e,type:t,isLoading:n,icon:i}){let s=null,a={theme:e,type:t};return i===!1||(dr(i)?s=i({...a,isLoading:n}):_.isValidElement(i)?s=_.cloneElement(i,a):n?s=yf.spinner():cC(t)&&(s=yf[t](a))),s}var fC=e=>{let{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:s,playToast:a}=rC(e),{closeButton:l,children:c,autoClose:f,onClick:p,type:g,hideProgressBar:E,closeToast:b,transition:T,position:w,className:C,style:k,progressClassName:S,updateId:O,role:I,progress:F,rtl:z,toastId:B,deleteToast:W,isIn:V,isLoading:le,closeOnClick:ge,theme:J,ariaLabel:ne}=e,oe=lr("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":z},{"Toastify__toast--close-on-click":ge}),ee=dr(C)?C({rtl:z,position:w,type:g,defaultClassName:oe}):lr(oe,C),X=dC(e),ue=!!F||!f,fe={closeToast:b,type:g,theme:J},j=null;return l===!1||(dr(l)?j=l(fe):_.isValidElement(l)?j=_.cloneElement(l,fe):j=j2(fe)),Je.createElement(T,{isIn:V,done:W,position:w,preventExitTransition:n,nodeRef:i,playToast:a},Je.createElement("div",{id:B,tabIndex:0,onClick:p,"data-in":V,className:ee,...s,style:k,ref:i,...V&&{role:I,"aria-label":ne}},X!=null&&Je.createElement("div",{className:lr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!le})},X),yE(c,e,!t),j,!e.customProgressBar&&Je.createElement(z2,{...O&&!ue?{key:`p-${O}`}:{},rtl:z,theme:J,delay:f,isRunning:t,isIn:V,closeToast:b,hide:E,type:g,className:S,controlledProgress:ue,progress:F||0})))},hC=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),CE=H2(hC("bounce",!0)),pC={position:"top-right",transition:CE,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function mC(e){let t={...pC,...e},n=e.stacked,[i,s]=_.useState(!0),a=_.useRef(null),{getToastToRender:l,isToastActive:c,count:f}=nC(t),{className:p,style:g,rtl:E,containerId:b,hotKeys:T}=t;function w(k){let S=lr("Toastify__toast-container",`Toastify__toast-container--${k}`,{"Toastify__toast-container--rtl":E});return dr(p)?p({position:k,rtl:E,defaultClassName:S}):lr(S,mf(p))}function C(){n&&(s(!0),qe.play())}return iC(()=>{var k;if(n){let S=a.current.querySelectorAll('[data-in="true"]'),O=12,I=(k=t.position)==null?void 0:k.includes("top"),F=0,z=0;Array.from(S).reverse().forEach((B,W)=>{let V=B;V.classList.add("Toastify__toast--stacked"),W>0&&(V.dataset.collapsed=`${i}`),V.dataset.pos||(V.dataset.pos=I?"top":"bot");let le=F*(i?.2:1)+(i?0:O*W);V.style.setProperty("--y",`${I?le:le*-1}px`),V.style.setProperty("--g",`${O}`),V.style.setProperty("--s",`${1-(i?z:0)}`),F+=V.offsetHeight,z+=.025})}},[i,f,n]),_.useEffect(()=>{function k(S){var O;let I=a.current;T(S)&&((O=I.querySelector('[tabIndex="0"]'))==null||O.focus(),s(!1),qe.pause()),S.key==="Escape"&&(document.activeElement===I||I!=null&&I.contains(document.activeElement))&&(s(!0),qe.play())}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[T]),Je.createElement("section",{ref:a,className:"Toastify",id:b,onMouseEnter:()=>{n&&(s(!1),qe.pause())},onMouseLeave:C,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},l((k,S)=>{let O=S.length?{...g}:{...g,pointerEvents:"none"};return Je.createElement("div",{tabIndex:-1,className:w(k),"data-stacked":n,style:O,key:`c-${k}`},S.map(({content:I,props:F})=>Je.createElement(fC,{...F,stacked:n,collapseAll:C,isIn:c(F.toastId,F.containerId),key:`t-${F.key}`},I)))}))}const As=cE("swatches/getSelectedProductThunk",async({assetId:e},{rejectWithValue:t})=>{try{return await D2({assetId:e})}catch(n){return console.error(n.message),qe("Failed to load product"),t(n.message)}}),Ut=5,gC={listAttributes:[],productElementOptions:[],materialSelectState:{Finish:[],Color:[],Look:[]},allMaterialsValues:[],selectedMaterials:[],selectedProduct:null,isLoadingSelectedProduct:!1,isOpenMultiProductCart:!1},EC=e=>e.reduce((t,n)=>t+n.count,0),SE=Kf({name:"swatches",initialState:gC,reducers:{setMaterialSelect(e,t){const{filterName:n,values:i}=t.payload;if(i.length===0){e.materialSelectState[n]=[];return}e.materialSelectState[n]=pE(i)},setPanelFilter(e,t){const n=t.payload.attributes;if(n.length){const i=Yu.getMaterialsValuesFromOptions(n);i?.length&&(e.allMaterialsValues=i)}},clearMaterialFilter:(e,t)=>{e.materialSelectState[t.payload]=[]},clearAllMaterialFilters:e=>{e.materialSelectState={Finish:[],Color:[],Look:[]}},setAllMaterialsOptions:(e,t)=>{const{allMaterialValues:n,productElementOptions:i}=t.payload;n?.length&&(e.allMaterialsValues=n),i?.length&&(e.productElementOptions=i)},setSelectedMaterial(e,t){const{materialCount:n,selectedMaterial:i,selectedMaterials:s,limitCb:a}=t.payload;if(!i)return;const l=f=>f.metadata?.label===i.metadata?.label&&f.parentName===i.parentName,c=s?.some(l);!c&&n>=5&&a&&a(),c?e.selectedMaterials=s.filter(f=>!l(f)):n<5&&(e.selectedMaterials=[...s,i])},resetSelectedMaterials(e){e.selectedMaterials=[]},setSelectedProduct(e,t){e.selectedProduct=t.payload},deleteSelectedProduct(e){e.selectedProduct=null},setIsOpenMultiProductCart(e,t){e.isOpenMultiProductCart=t.payload},removeItem(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial;e.selectedMaterials=e.selectedMaterials.filter(s=>!(s.metadata?.label===n?.label&&s.parentName===i))},increment(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial,s=e.selectedMaterials.find(a=>a.metadata?.label===n?.label&&a.parentName===i);s&&EC(e.selectedMaterials)<Ut&&(s.count+=1)},decrement(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial,s=e.selectedMaterials.find(a=>a.metadata?.label===n?.label&&a.parentName===i);s&&s.count>1&&(s.count-=1)},setCount(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial,{next:s}=t.payload,a=e.selectedMaterials.find(p=>p.metadata?.label===n?.label&&p.parentName===i);if(!a)return;const l=Math.max(1,Math.floor(s)),c=e.selectedMaterials.filter(p=>!(p.metadata?.label===n?.label&&p.parentName===i)).reduce((p,g)=>p+g.count,0),f=Math.max(1,Ut-c);a.count=Math.min(l,f)}},extraReducers:e=>{e.addCase(As.pending,t=>{t.isLoadingSelectedProduct=!0}).addCase(As.fulfilled,t=>{t.isLoadingSelectedProduct=!1}).addCase(As.rejected,t=>{t.isLoadingSelectedProduct=!1})}}),wE=SE.reducer,{setMaterialSelect:hl,setAllMaterialsOptions:Tf,setPanelFilter:Od,setSelectedMaterial:pl,clearMaterialFilter:sD,clearAllMaterialFilters:yC,setSelectedProduct:TC,deleteSelectedProduct:bC,setIsOpenMultiProductCart:AE,resetSelectedMaterials:aD,removeItem:xC,increment:vC,decrement:_C,setCount:uD}=SE.actions,CC={items:[]},kE=Kf({name:"cart",initialState:CC,reducers:{setCartItems(e,t){e.items=t.payload},clear(e){e.items=[]}}}),{setCartItems:SC,clear:lD}=kE.actions,NE=kE.reducer,ks=cE("multiProducts/getProductListThunk",async(e,{rejectWithValue:t})=>{try{return await P2()}catch(n){return console.error(n?.message??n),t(n?.message??"Unknown error")}}),wC={items:[],productList:[],isLoadingProductList:!1,selectedProduct:null,activeMultiCartProduct:null,totalCount:0};function AC(e,t,n){let i=e.items.find(s=>s.assetId===t);return i?n&&!i.name&&(i.name=n):(i={assetId:t,name:n??"",items:[]},e.items.push(i)),i}const Rd=(e,t)=>e.items.findIndex(n=>n.assetId===t),rg=(e,t,n,i)=>t===-1?-1:e.items[t].items.findIndex(s=>s.metadata?.label===n&&s.parentName===i),IE=Kf({name:"multiProduct",initialState:wC,reducers:{setCartForProduct(e,t){const{assetId:n}=t.payload,i=e.items.findIndex(s=>s.assetId===n);i>=0?e.items[i]=t.payload:e.items.push(t.payload)},setActiveMultiCartProduct(e,t){e.activeMultiCartProduct=t.payload},setMultiCartItems(e,t){const{assetId:n,items:i,name:s}=t.payload;if(!i||i.length===0){const l=e.items.findIndex(c=>c.assetId===n);l!==-1&&e.items.splice(l,1);return}const a=AC(e,n,s);a.items=i},incrementMultiProductItem(e,t){const{assetId:n,label:i,parentName:s}=t.payload,a=Rd(e,n),l=rg(e,a,i,s);l!==-1&&(e.items[a].items[l].count+=1)},decrementMultiProductItem(e,t){const{assetId:n,label:i,parentName:s}=t.payload,a=Rd(e,n),l=rg(e,a,i,s);if(l!==-1){const c=e.items[a].items[l];c.count>1&&(c.count-=1)}},removeMultiProductItem(e,t){const{assetId:n,label:i,parentName:s}=t.payload,a=Rd(e,n);if(a===-1)return;const l=e.items[a].items.filter(c=>!(c.metadata?.label===i&&c.parentName===s));e.items[a].items=l},clear(e){e.items=[]}},extraReducers:e=>{e.addCase(ks.pending,t=>{t.isLoadingProductList=!0}).addCase(ks.fulfilled,(t,n)=>{t.productList=n.payload.rows,t.isLoadingProductList=!1}).addCase(ks.rejected,t=>{t.isLoadingProductList=!1})}}),{setCartForProduct:cD,setMultiCartItems:bf,incrementMultiProductItem:kC,decrementMultiProductItem:NC,removeMultiProductItem:IC,clear:dD,setActiveMultiCartProduct:xf}=IE.actions,OE=IE.reducer,OC=qf({swatches:wE,cart:NE,multiProductCart:OE}),RC={},{NODE_ENV:LC}=RC;uE({reducer:OC,middleware:e=>e({thunk:!0,serializableCheck:{ignoredActionPaths:["meta.limitCb","payload.limitCb"],ignoredPaths:[]}}),devTools:LC!=="production"});const jt=Zf.withTypes(),je=hE.withTypes(),Qs=e=>e.swatches.allMaterialsValues,po=e=>e.swatches.materialSelectState,PC=e=>e.swatches.productElementOptions,yi=e=>e.swatches.selectedMaterials,RE=e=>e.swatches.isLoadingSelectedProduct,DC=e=>e.swatches.isOpenMultiProductCart,ml=e=>e.swatches.selectedProduct,LE=6.5,PE=({materials:e,containerStyles:t="flex flex-col gap-[8px] text-xs/snug p-[var(--sm-padding)] border-t border-solid border-[var(--border)] sm:gap-[12px] shadow-[0_-2px_10px_rgba(40,40,40,0.10)]"})=>{const n="flex flex-row justify-between items-center",i=_.useMemo(()=>e.reduce((s,a)=>s+(a.count??0),0)*LE,[e]);return x.jsxs("div",{className:t,children:[x.jsxs("div",{className:n,children:[x.jsx("span",{children:"Subtotal"}),x.jsxs("span",{children:["$",i]})]}),x.jsxs("div",{className:`${n} text-[var(--main-accent-color)]`,children:[x.jsx("span",{children:"Savings"}),x.jsxs("span",{children:["-$",i]})]}),x.jsxs("div",{className:`${n} text-sm font-medium`,children:[x.jsx("span",{children:"Total"}),x.jsx("span",{children:"$0"})]})]})},DE=({children:e,disabled:t,...n})=>x.jsx("button",{className:`w-full bg-[var(--main-accent-color)] text-white py-3 rounded-full font-bold transition-colors duration-300 ${t?"bg-gray-400 text-gray-200 cursor-not-allowed opacity-70":"cursor-pointer hover:opacity-90"}`,...n,children:e}),mo=e=>e.multiProductCart.items,MC=e=>e.multiProductCart.productList,FC=e=>e.multiProductCart.isLoadingProductList;class mi{static getImage(t){const n=t?.metadata?.Image||t?.metadata?.image;return n?`https://preview.threekit.com${n}`:void 0}static getValueLabel(t){return t?.metadata?.label||t?.metadata?.Label||t?.name||"Unnamed"}static getZoomIconColor(t){return t?.metadata?.zoomIconColor||t?.metadata?.zoomIconColor||null}static getHexColor(t){return t?.metadata?.hex||t?.metadata?.Hex||null}static getAttributeLabel(t){return t?.metadata?.label||t?.metadata?.Label||t?.name||"Unnamed"}}function Ht(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e?.(s),n===!1||!s.defaultPrevented)return t?.(s)}}function ig(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gl(...e){return t=>{let n=!1;const i=e.map(s=>{const a=ig(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():ig(e[s],null)}}}}function cn(...e){return _.useCallback(gl(...e),e)}function BC(e,t){const n=_.createContext(t),i=a=>{const{children:l,...c}=a,f=_.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:f,children:l})};i.displayName=e+"Provider";function s(a){const l=_.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,s]}function El(e,t=[]){let n=[];function i(a,l){const c=_.createContext(l),f=n.length;n=[...n,l];const p=E=>{const{scope:b,children:T,...w}=E,C=b?.[e]?.[f]||c,k=_.useMemo(()=>w,Object.values(w));return x.jsx(C.Provider,{value:k,children:T})};p.displayName=a+"Provider";function g(E,b){const T=b?.[e]?.[f]||c,w=_.useContext(T);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${a}\``)}return[p,g]}const s=()=>{const a=n.map(l=>_.createContext(l));return function(c){const f=c?.[e]||a;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return s.scopeName=e,[i,UC(s,...t)]}function UC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const l=i.reduce((c,{useScope:f,scopeName:p})=>{const E=f(a)[`__scope${p}`];return{...c,...E}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Vr=globalThis?.document?_.useLayoutEffect:()=>{},HC=Q1[" useId ".trim().toString()]||(()=>{}),jC=0;function Lu(e){const[t,n]=_.useState(HC());return Vr(()=>{n(i=>i??String(jC++))},[e]),e||(t?`radix-${t}`:"")}var zC=Q1[" useInsertionEffect ".trim().toString()]||Vr;function Jf({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,a,l]=WC({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:s;{const g=_.useRef(e!==void 0);_.useEffect(()=>{const E=g.current;E!==c&&console.warn(`${i} is changing from ${E?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=c},[c,i])}const p=_.useCallback(g=>{if(c){const E=VC(g)?g(e):g;E!==e&&l.current?.(E)}else a(g)},[c,e,a,l]);return[f,p]}function WC({defaultProp:e,onChange:t}){const[n,i]=_.useState(e),s=_.useRef(n),a=_.useRef(t);return zC(()=>{a.current=t},[t]),_.useEffect(()=>{s.current!==n&&(a.current?.(n),s.current=n)},[n,s]),[n,i,a]}function VC(e){return typeof e=="function"}var go=K1();const ME=il(go);function YC(e){const t=$C(e),n=_.forwardRef((i,s)=>{const{children:a,...l}=i,c=_.Children.toArray(a),f=c.find(GC);if(f){const p=f.props.children,g=c.map(E=>E===f?_.Children.count(p)>1?_.Children.only(null):_.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:_.isValidElement(p)?_.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function $C(e){const t=_.forwardRef((n,i)=>{const{children:s,...a}=n;if(_.isValidElement(s)){const l=KC(s),c=QC(a,s.props);return s.type!==_.Fragment&&(c.ref=i?gl(i,l):l),_.cloneElement(s,c)}return _.Children.count(s)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qC=Symbol("radix.slottable");function GC(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qC}function QC(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function KC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],At=XC.reduce((e,t)=>{const n=YC(`Primitive.${t}`),i=_.forwardRef((s,a)=>{const{asChild:l,...c}=s,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(f,{...c,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function ZC(e,t){e&&go.flushSync(()=>e.dispatchEvent(t))}function uo(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>t.current?.(...n),[])}function JC(e,t=globalThis?.document){const n=uo(e);_.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var eS="DismissableLayer",vf="dismissableLayer.update",tS="dismissableLayer.pointerDownOutside",nS="dismissableLayer.focusOutside",og,FE=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eh=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,p=_.useContext(FE),[g,E]=_.useState(null),b=g?.ownerDocument??globalThis?.document,[,T]=_.useState({}),w=cn(t,W=>E(W)),C=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=C.indexOf(k),O=g?C.indexOf(g):-1,I=p.layersWithOutsidePointerEventsDisabled.size>0,F=O>=S,z=oS(W=>{const V=W.target,le=[...p.branches].some(ge=>ge.contains(V));!F||le||(s?.(W),l?.(W),W.defaultPrevented||c?.())},b),B=sS(W=>{const V=W.target;[...p.branches].some(ge=>ge.contains(V))||(a?.(W),l?.(W),W.defaultPrevented||c?.())},b);return JC(W=>{O===p.layers.size-1&&(i?.(W),!W.defaultPrevented&&c&&(W.preventDefault(),c()))},b),_.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(og=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),sg(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=og)}},[g,b,n,p]),_.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),sg())},[g,p]),_.useEffect(()=>{const W=()=>T({});return document.addEventListener(vf,W),()=>document.removeEventListener(vf,W)},[]),x.jsx(At.div,{...f,ref:w,style:{pointerEvents:I?F?"auto":"none":void 0,...e.style},onFocusCapture:Ht(e.onFocusCapture,B.onFocusCapture),onBlurCapture:Ht(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Ht(e.onPointerDownCapture,z.onPointerDownCapture)})});eh.displayName=eS;var rS="DismissableLayerBranch",iS=_.forwardRef((e,t)=>{const n=_.useContext(FE),i=_.useRef(null),s=cn(t,i);return _.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),x.jsx(At.div,{...e,ref:s})});iS.displayName=rS;function oS(e,t=globalThis?.document){const n=uo(e),i=_.useRef(!1),s=_.useRef(()=>{});return _.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let f=function(){BE(tS,n,p,{discrete:!0})};const p={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=f,t.addEventListener("click",s.current,{once:!0})):f()}else t.removeEventListener("click",s.current);i.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function sS(e,t=globalThis?.document){const n=uo(e),i=_.useRef(!1);return _.useEffect(()=>{const s=a=>{a.target&&!i.current&&BE(nS,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function sg(){const e=new CustomEvent(vf);document.dispatchEvent(e)}function BE(e,t,n,{discrete:i}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?ZC(s,a):s.dispatchEvent(a)}var Ld="focusScope.autoFocusOnMount",Pd="focusScope.autoFocusOnUnmount",ag={bubbles:!1,cancelable:!0},aS="FocusScope",th=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=_.useState(null),p=uo(s),g=uo(a),E=_.useRef(null),b=cn(t,C=>f(C)),T=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(i){let C=function(I){if(T.paused||!c)return;const F=I.target;c.contains(F)?E.current=F:Br(E.current,{select:!0})},k=function(I){if(T.paused||!c)return;const F=I.relatedTarget;F!==null&&(c.contains(F)||Br(E.current,{select:!0}))},S=function(I){if(document.activeElement===document.body)for(const z of I)z.removedNodes.length>0&&Br(c)};document.addEventListener("focusin",C),document.addEventListener("focusout",k);const O=new MutationObserver(S);return c&&O.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",k),O.disconnect()}}},[i,c,T.paused]),_.useEffect(()=>{if(c){lg.add(T);const C=document.activeElement;if(!c.contains(C)){const S=new CustomEvent(Ld,ag);c.addEventListener(Ld,p),c.dispatchEvent(S),S.defaultPrevented||(uS(hS(UE(c)),{select:!0}),document.activeElement===C&&Br(c))}return()=>{c.removeEventListener(Ld,p),setTimeout(()=>{const S=new CustomEvent(Pd,ag);c.addEventListener(Pd,g),c.dispatchEvent(S),S.defaultPrevented||Br(C??document.body,{select:!0}),c.removeEventListener(Pd,g),lg.remove(T)},0)}}},[c,p,g,T]);const w=_.useCallback(C=>{if(!n&&!i||T.paused)return;const k=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,S=document.activeElement;if(k&&S){const O=C.currentTarget,[I,F]=lS(O);I&&F?!C.shiftKey&&S===F?(C.preventDefault(),n&&Br(I,{select:!0})):C.shiftKey&&S===I&&(C.preventDefault(),n&&Br(F,{select:!0})):S===O&&C.preventDefault()}},[n,i,T.paused]);return x.jsx(At.div,{tabIndex:-1,...l,ref:b,onKeyDown:w})});th.displayName=aS;function uS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Br(i,{select:t}),document.activeElement!==n)return}function lS(e){const t=UE(e),n=ug(t,e),i=ug(t.reverse(),e);return[n,i]}function UE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ug(e,t){for(const n of e)if(!cS(n,{upTo:t}))return n}function cS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dS(e){return e instanceof HTMLInputElement&&"select"in e}function Br(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dS(e)&&t&&e.select()}}var lg=fS();function fS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=cg(e,t),e.unshift(t)},remove(t){e=cg(e,t),e[0]?.resume()}}}function cg(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function hS(e){return e.filter(t=>t.tagName!=="A")}var pS="Portal",HE=_.forwardRef((e,t)=>{const{container:n,...i}=e,[s,a]=_.useState(!1);Vr(()=>a(!0),[]);const l=n||s&&globalThis?.document?.body;return l?ME.createPortal(x.jsx(At.div,{...i,ref:t}),l):null});HE.displayName=pS;function mS(e,t){return _.useReducer((n,i)=>t[n][i]??n,e)}var Eo=e=>{const{present:t,children:n}=e,i=gS(t),s=typeof n=="function"?n({present:i.isPresent}):_.Children.only(n),a=cn(i.ref,ES(s));return typeof n=="function"||i.isPresent?_.cloneElement(s,{ref:a}):null};Eo.displayName="Presence";function gS(e){const[t,n]=_.useState(),i=_.useRef(null),s=_.useRef(e),a=_.useRef("none"),l=e?"mounted":"unmounted",[c,f]=mS(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const p=xu(i.current);a.current=c==="mounted"?p:"none"},[c]),Vr(()=>{const p=i.current,g=s.current;if(g!==e){const b=a.current,T=xu(p);e?f("MOUNT"):T==="none"||p?.display==="none"?f("UNMOUNT"):f(g&&b!==T?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),Vr(()=>{if(t){let p;const g=t.ownerDocument.defaultView??window,E=T=>{const C=xu(i.current).includes(CSS.escape(T.animationName));if(T.target===t&&C&&(f("ANIMATION_END"),!s.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",p=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},b=T=>{T.target===t&&(a.current=xu(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{g.clearTimeout(p),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:_.useCallback(p=>{i.current=p?getComputedStyle(p):null,n(p)},[])}}function xu(e){return e?.animationName||"none"}function ES(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dd=0;function jE(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dg()),document.body.insertAdjacentElement("beforeend",e[1]??dg()),Dd++,()=>{Dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dd--}},[])}function dg(){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 Wn=function(){return Wn=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Wn.apply(this,arguments)};function zE(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function yS(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var Pu="right-scroll-bar-position",Du="width-before-scroll-bar",TS="with-scroll-bars-hidden",bS="--removed-body-scroll-bar-size";function Md(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xS(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var vS=typeof window<"u"?_.useLayoutEffect:_.useEffect,fg=new WeakMap;function _S(e,t){var n=xS(null,function(i){return e.forEach(function(s){return Md(s,i)})});return vS(function(){var i=fg.get(n);if(i){var s=new Set(i),a=new Set(e),l=n.current;s.forEach(function(c){a.has(c)||Md(c,null)}),a.forEach(function(c){s.has(c)||Md(c,l)})}fg.set(n,e)},[e]),n}function CS(e){return e}function SS(e,t){t===void 0&&(t=CS);var n=[],i=!1,s={read:function(){if(i)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(a){var l=t(a,i);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){i=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(a),l=n}var f=function(){var g=l;l=[],g.forEach(a)},p=function(){return Promise.resolve().then(f)};p(),n={push:function(g){l.push(g),p()},filter:function(g){return l=l.filter(g),n}}}};return s}function wS(e){e===void 0&&(e={});var t=SS(null);return t.options=Wn({async:!0,ssr:!1},e),t}var WE=function(e){var t=e.sideCar,n=zE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return _.createElement(i,Wn({},n))};WE.isSideCarExport=!0;function AS(e,t){return e.useMedium(t),WE}var VE=wS(),Fd=function(){},yl=_.forwardRef(function(e,t){var n=_.useRef(null),i=_.useState({onScrollCapture:Fd,onWheelCapture:Fd,onTouchMoveCapture:Fd}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,p=e.removeScrollBar,g=e.enabled,E=e.shards,b=e.sideCar,T=e.noRelative,w=e.noIsolation,C=e.inert,k=e.allowPinchZoom,S=e.as,O=S===void 0?"div":S,I=e.gapMode,F=zE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=b,B=_S([n,t]),W=Wn(Wn({},F),s);return _.createElement(_.Fragment,null,g&&_.createElement(z,{sideCar:VE,removeScrollBar:p,shards:E,noRelative:T,noIsolation:w,inert:C,setCallbacks:a,allowPinchZoom:!!k,lockRef:n,gapMode:I}),l?_.cloneElement(_.Children.only(c),Wn(Wn({},W),{ref:B})):_.createElement(O,Wn({},W,{className:f,ref:B}),c))});yl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yl.classNames={fullWidth:Du,zeroRight:Pu};var kS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kS();return t&&e.setAttribute("nonce",t),e}function IS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var RS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=NS())&&(IS(t,n),OS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LS=function(){var e=RS();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},YE=function(){var e=LS(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},PS={left:0,top:0,right:0,gap:0},Bd=function(e){return parseInt(e||"",10)||0},DS=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Bd(n),Bd(i),Bd(s)]},MS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PS;var t=DS(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},FS=YE(),ro="data-scroll-locked",BS=function(e,t,n,i){var s=e.left,a=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
+
.`.concat(TS,` {
|
|
11
|
+
overflow: hidden `).concat(i,`;
|
|
12
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(ro,`] {
|
|
15
|
+
overflow: hidden `).concat(i,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
18
|
+
padding-left: `.concat(s,`px;
|
|
19
|
+
padding-top: `).concat(a,`px;
|
|
20
|
+
padding-right: `).concat(l,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
24
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(Pu,` {
|
|
28
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(Du,` {
|
|
32
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(Pu," .").concat(Pu,` {
|
|
36
|
+
right: 0 `).concat(i,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(Du," .").concat(Du,` {
|
|
40
|
+
margin-right: 0 `).concat(i,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(ro,`] {
|
|
44
|
+
`).concat(bS,": ").concat(c,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},hg=function(){var e=parseInt(document.body.getAttribute(ro)||"0",10);return isFinite(e)?e:0},US=function(){_.useEffect(function(){return document.body.setAttribute(ro,(hg()+1).toString()),function(){var e=hg()-1;e<=0?document.body.removeAttribute(ro):document.body.setAttribute(ro,e.toString())}},[])},HS=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;US();var a=_.useMemo(function(){return MS(s)},[s]);return _.createElement(FS,{styles:BS(a,!t,s,n?"":"!important")})},_f=!1;if(typeof window<"u")try{var vu=Object.defineProperty({},"passive",{get:function(){return _f=!0,!0}});window.addEventListener("test",vu,vu),window.removeEventListener("test",vu,vu)}catch{_f=!1}var Qi=_f?{passive:!1}:!1,jS=function(e){return e.tagName==="TEXTAREA"},$E=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jS(e)&&n[t]==="visible")},zS=function(e){return $E(e,"overflowY")},WS=function(e){return $E(e,"overflowX")},pg=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=qE(e,i);if(s){var a=GE(e,i),l=a[1],c=a[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},VS=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},YS=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},qE=function(e,t){return e==="v"?zS(t):WS(t)},GE=function(e,t){return e==="v"?VS(t):YS(t)},$S=function(e,t){return e==="h"&&t==="rtl"?-1:1},qS=function(e,t,n,i,s){var a=$S(e,window.getComputedStyle(t).direction),l=a*i,c=n.target,f=t.contains(c),p=!1,g=l>0,E=0,b=0;do{if(!c)break;var T=GE(e,c),w=T[0],C=T[1],k=T[2],S=C-k-a*w;(w||S)&&qE(e,c)&&(E+=S,b+=w);var O=c.parentNode;c=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(g&&Math.abs(E)<1||!g&&Math.abs(b)<1)&&(p=!0),p},_u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mg=function(e){return[e.deltaX,e.deltaY]},gg=function(e){return e&&"current"in e?e.current:e},GS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},QS=function(e){return`
|
|
47
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
+
`)},KS=0,Ki=[];function XS(e){var t=_.useRef([]),n=_.useRef([0,0]),i=_.useRef(),s=_.useState(KS++)[0],a=_.useState(YE)[0],l=_.useRef(e);_.useEffect(function(){l.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var C=yS([e.lockRef.current],(e.shards||[]).map(gg),!0).filter(Boolean);return C.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=_.useCallback(function(C,k){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!l.current.allowPinchZoom;var S=_u(C),O=n.current,I="deltaX"in C?C.deltaX:O[0]-S[0],F="deltaY"in C?C.deltaY:O[1]-S[1],z,B=C.target,W=Math.abs(I)>Math.abs(F)?"h":"v";if("touches"in C&&W==="h"&&B.type==="range")return!1;var V=pg(W,B);if(!V)return!0;if(V?z=W:(z=W==="v"?"h":"v",V=pg(W,B)),!V)return!1;if(!i.current&&"changedTouches"in C&&(I||F)&&(i.current=z),!z)return!0;var le=i.current||z;return qS(le,k,C,le==="h"?I:F)},[]),f=_.useCallback(function(C){var k=C;if(!(!Ki.length||Ki[Ki.length-1]!==a)){var S="deltaY"in k?mg(k):_u(k),O=t.current.filter(function(z){return z.name===k.type&&(z.target===k.target||k.target===z.shadowParent)&&GS(z.delta,S)})[0];if(O&&O.should){k.cancelable&&k.preventDefault();return}if(!O){var I=(l.current.shards||[]).map(gg).filter(Boolean).filter(function(z){return z.contains(k.target)}),F=I.length>0?c(k,I[0]):!l.current.noIsolation;F&&k.cancelable&&k.preventDefault()}}},[]),p=_.useCallback(function(C,k,S,O){var I={name:C,delta:k,target:S,should:O,shadowParent:ZS(S)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(F){return F!==I})},1)},[]),g=_.useCallback(function(C){n.current=_u(C),i.current=void 0},[]),E=_.useCallback(function(C){p(C.type,mg(C),C.target,c(C,e.lockRef.current))},[]),b=_.useCallback(function(C){p(C.type,_u(C),C.target,c(C,e.lockRef.current))},[]);_.useEffect(function(){return Ki.push(a),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:b}),document.addEventListener("wheel",f,Qi),document.addEventListener("touchmove",f,Qi),document.addEventListener("touchstart",g,Qi),function(){Ki=Ki.filter(function(C){return C!==a}),document.removeEventListener("wheel",f,Qi),document.removeEventListener("touchmove",f,Qi),document.removeEventListener("touchstart",g,Qi)}},[]);var T=e.removeScrollBar,w=e.inert;return _.createElement(_.Fragment,null,w?_.createElement(a,{styles:QS(s)}):null,T?_.createElement(HS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const JS=AS(VE,XS);var nh=_.forwardRef(function(e,t){return _.createElement(yl,Wn({},e,{ref:t,sideCar:JS}))});nh.classNames=yl.classNames;var ew=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xi=new WeakMap,Cu=new WeakMap,Su={},Ud=0,QE=function(e){return e&&(e.host||QE(e.parentNode))},tw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=QE(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},nw=function(e,t,n,i){var s=tw(t,Array.isArray(e)?e:[e]);Su[n]||(Su[n]=new WeakMap);var a=Su[n],l=[],c=new Set,f=new Set(s),p=function(E){!E||c.has(E)||(c.add(E),p(E.parentNode))};s.forEach(p);var g=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(b){if(c.has(b))g(b);else try{var T=b.getAttribute(i),w=T!==null&&T!=="false",C=(Xi.get(b)||0)+1,k=(a.get(b)||0)+1;Xi.set(b,C),a.set(b,k),l.push(b),C===1&&w&&Cu.set(b,!0),k===1&&b.setAttribute(n,"true"),w||b.setAttribute(i,"true")}catch(S){console.error("aria-hidden: cannot operate on ",b,S)}})};return g(t),c.clear(),Ud++,function(){l.forEach(function(E){var b=Xi.get(E)-1,T=a.get(E)-1;Xi.set(E,b),a.set(E,T),b||(Cu.has(E)||E.removeAttribute(i),Cu.delete(E)),T||E.removeAttribute(n)}),Ud--,Ud||(Xi=new WeakMap,Xi=new WeakMap,Cu=new WeakMap,Su={})}},KE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=ew(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),nw(i,s,n,"aria-hidden")):function(){return null}};function rw(e){const t=iw(e),n=_.forwardRef((i,s)=>{const{children:a,...l}=i,c=_.Children.toArray(a),f=c.find(sw);if(f){const p=f.props.children,g=c.map(E=>E===f?_.Children.count(p)>1?_.Children.only(null):_.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:_.isValidElement(p)?_.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function iw(e){const t=_.forwardRef((n,i)=>{const{children:s,...a}=n;if(_.isValidElement(s)){const l=uw(s),c=aw(a,s.props);return s.type!==_.Fragment&&(c.ref=i?gl(i,l):l),_.cloneElement(s,c)}return _.Children.count(s)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ow=Symbol("radix.slottable");function sw(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ow}function aw(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function uw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tl="Dialog",[XE]=El(Tl),[lw,Ln]=XE(Tl),ZE=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,c=_.useRef(null),f=_.useRef(null),[p,g]=Jf({prop:i,defaultProp:s??!1,onChange:a,caller:Tl});return x.jsx(lw,{scope:t,triggerRef:c,contentRef:f,contentId:Lu(),titleId:Lu(),descriptionId:Lu(),open:p,onOpenChange:g,onOpenToggle:_.useCallback(()=>g(E=>!E),[g]),modal:l,children:n})};ZE.displayName=Tl;var JE="DialogTrigger",cw=_.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(JE,n),a=cn(t,s.triggerRef);return x.jsx(At.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":oh(s.open),...i,ref:a,onClick:Ht(e.onClick,s.onOpenToggle)})});cw.displayName=JE;var rh="DialogPortal",[dw,ey]=XE(rh,{forceMount:void 0}),ty=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,a=Ln(rh,t);return x.jsx(dw,{scope:t,forceMount:n,children:_.Children.map(i,l=>x.jsx(Eo,{present:n||a.open,children:x.jsx(HE,{asChild:!0,container:s,children:l})}))})};ty.displayName=rh;var $u="DialogOverlay",ny=_.forwardRef((e,t)=>{const n=ey($u,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Ln($u,e.__scopeDialog);return a.modal?x.jsx(Eo,{present:i||a.open,children:x.jsx(hw,{...s,ref:t})}):null});ny.displayName=$u;var fw=rw("DialogOverlay.RemoveScroll"),hw=_.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln($u,n);return x.jsx(nh,{as:fw,allowPinchZoom:!0,shards:[s.contentRef],children:x.jsx(At.div,{"data-state":oh(s.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),gi="DialogContent",ry=_.forwardRef((e,t)=>{const n=ey(gi,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Ln(gi,e.__scopeDialog);return x.jsx(Eo,{present:i||a.open,children:a.modal?x.jsx(pw,{...s,ref:t}):x.jsx(mw,{...s,ref:t})})});ry.displayName=gi;var pw=_.forwardRef((e,t)=>{const n=Ln(gi,e.__scopeDialog),i=_.useRef(null),s=cn(t,n.contentRef,i);return _.useEffect(()=>{const a=i.current;if(a)return KE(a)},[]),x.jsx(iy,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ht(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ht(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&a.preventDefault()}),onFocusOutside:Ht(e.onFocusOutside,a=>a.preventDefault())})}),mw=_.forwardRef((e,t)=>{const n=Ln(gi,e.__scopeDialog),i=_.useRef(!1),s=_.useRef(!1);return x.jsx(iy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||n.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=a.target;n.triggerRef.current?.contains(l)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),iy=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,c=Ln(gi,n),f=_.useRef(null),p=cn(t,f);return jE(),x.jsxs(x.Fragment,{children:[x.jsx(th,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:x.jsx(eh,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":oh(c.open),...l,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(gw,{titleId:c.titleId}),x.jsx(yw,{contentRef:f,descriptionId:c.descriptionId})]})]})}),ih="DialogTitle",oy=_.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(ih,n);return x.jsx(At.h2,{id:s.titleId,...i,ref:t})});oy.displayName=ih;var sy="DialogDescription",ay=_.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(sy,n);return x.jsx(At.p,{id:s.descriptionId,...i,ref:t})});ay.displayName=sy;var uy="DialogClose",ly=_.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(uy,n);return x.jsx(At.button,{type:"button",...i,ref:t,onClick:Ht(e.onClick,()=>s.onOpenChange(!1))})});ly.displayName=uy;function oh(e){return e?"open":"closed"}var cy="DialogTitleWarning",[fD,dy]=BC(cy,{contentName:gi,titleName:ih,docsSlug:"dialog"}),gw=({titleId:e})=>{const t=dy(cy),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
|
|
51
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
52
|
+
|
|
53
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ew="DialogDescriptionWarning",yw=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dy(Ew).contentName}}.`;return _.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Tw=ZE,bw=ty,fy=ny,hy=ry,py=oy,my=ay,xw=ly;const vw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_w=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),Eg=e=>{const t=_w(e);return t.charAt(0).toUpperCase()+t.slice(1)},gy=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var Cw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Sw=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:l,...c},f)=>_.createElement("svg",{ref:f,...Cw,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:gy("lucide",s),...c},[...l.map(([p,g])=>_.createElement(p,g)),...Array.isArray(a)?a:[a]]));const sh=(e,t)=>{const n=_.forwardRef(({className:i,...s},a)=>_.createElement(Sw,{ref:a,iconNode:t,className:gy(`lucide-${vw(Eg(e))}`,`lucide-${e}`,i),...s}));return n.displayName=Eg(e),n};const ww=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ey=sh("check",ww);const Aw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yy=sh("chevron-down",Aw);const kw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ah=sh("x",kw),Nw=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},Iw=(e,t)=>({classGroupId:e,validator:t}),Ty=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qu="-",yg=[],Ow="arbitrary..",Rw=e=>{const t=Pw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Lw(l);const c=l.split(qu),f=c[0]===""&&c.length>1?1:0;return by(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=i[l],p=n[l];return f?p?Nw(p,f):f:p||yg}return n[l]||yg}}},by=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const p=by(e,t+1,a);if(p)return p}const l=n.validators;if(l===null)return;const c=t===0?e.join(qu):e.slice(t).join(qu),f=l.length;for(let p=0;p<f;p++){const g=l[p];if(g.validator(c))return g.classGroupId}},Lw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?Ow+i:void 0})(),Pw=e=>{const{theme:t,classGroups:n}=e;return Dw(n,t)},Dw=(e,t)=>{const n=Ty();for(const i in e){const s=e[i];uh(s,n,i,t)}return n},uh=(e,t,n,i)=>{const s=e.length;for(let a=0;a<s;a++){const l=e[a];Mw(l,t,n,i)}},Mw=(e,t,n,i)=>{if(typeof e=="string"){Fw(e,t,n);return}if(typeof e=="function"){Bw(e,t,n,i);return}Uw(e,t,n,i)},Fw=(e,t,n)=>{const i=e===""?t:xy(t,e);i.classGroupId=n},Bw=(e,t,n,i)=>{if(Hw(e)){uh(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Iw(n,e))},Uw=(e,t,n,i)=>{const s=Object.entries(e),a=s.length;for(let l=0;l<a;l++){const[c,f]=s[l];uh(f,xy(t,c),n,i)}},xy=(e,t)=>{let n=e;const i=t.split(qu),s=i.length;for(let a=0;a<s;a++){const l=i[a];let c=n.nextPart.get(l);c||(c=Ty(),n.nextPart.set(l,c)),n=c}return n},Hw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(a,l)=>{n[a]=l,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=i[a])!==void 0)return s(a,l),l},set(a,l){a in n?n[a]=l:s(a,l)}}},Cf="!",Tg=":",zw=[],bg=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),Ww=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const a=[];let l=0,c=0,f=0,p;const g=s.length;for(let C=0;C<g;C++){const k=s[C];if(l===0&&c===0){if(k===Tg){a.push(s.slice(f,C)),f=C+1;continue}if(k==="/"){p=C;continue}}k==="["?l++:k==="]"?l--:k==="("?c++:k===")"&&c--}const E=a.length===0?s:s.slice(f);let b=E,T=!1;E.endsWith(Cf)?(b=E.slice(0,-1),T=!0):E.startsWith(Cf)&&(b=E.slice(1),T=!0);const w=p&&p>f?p-f:void 0;return bg(a,T,b,w)};if(t){const s=t+Tg,a=i;i=l=>l.startsWith(s)?a(l.slice(s.length)):bg(zw,!1,l,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},Vw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let a=0;a<n.length;a++){const l=n[a],c=l[0]==="[",f=t.has(l);c||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(l)):s.push(l)}return s.length>0&&(s.sort(),i.push(...s)),i}},Yw=e=>({cache:jw(e.cacheSize),parseClassName:Ww(e),sortModifiers:Vw(e),...Rw(e)}),$w=/\s+/,qw=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,l=[],c=e.trim().split($w);let f="";for(let p=c.length-1;p>=0;p-=1){const g=c[p],{isExternal:E,modifiers:b,hasImportantModifier:T,baseClassName:w,maybePostfixModifierPosition:C}=n(g);if(E){f=g+(f.length>0?" "+f:f);continue}let k=!!C,S=i(k?w.substring(0,C):w);if(!S){if(!k){f=g+(f.length>0?" "+f:f);continue}if(S=i(w),!S){f=g+(f.length>0?" "+f:f);continue}k=!1}const O=b.length===0?"":b.length===1?b[0]:a(b).join(":"),I=T?O+Cf:O,F=I+S;if(l.indexOf(F)>-1)continue;l.push(F);const z=s(S,k);for(let B=0;B<z.length;++B){const W=z[B];l.push(I+W)}f=g+(f.length>0?" "+f:f)}return f},Gw=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=vy(n))&&(s&&(s+=" "),s+=i);return s},vy=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=vy(e[i]))&&(n&&(n+=" "),n+=t);return n},Qw=(e,...t)=>{let n,i,s,a;const l=f=>{const p=t.reduce((g,E)=>E(g),e());return n=Yw(p),i=n.cache.get,s=n.cache.set,a=c,c(f)},c=f=>{const p=i(f);if(p)return p;const g=qw(f,n);return s(f,g),g};return a=l,(...f)=>a(Gw(...f))},Kw=[],mt=e=>{const t=n=>n[e]||Kw;return t.isThemeGetter=!0,t},_y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xw=/^\d+\/\d+$/,Zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zi=e=>Xw.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>!!e&&Number.isInteger(Number(e)),Hd=e=>e.endsWith("%")&&Me(e.slice(0,-1)),sr=e=>Zw.test(e),rA=()=>!0,iA=e=>Jw.test(e)&&!eA.test(e),Sy=()=>!1,oA=e=>tA.test(e),sA=e=>nA.test(e),aA=e=>!xe(e)&&!ve(e),uA=e=>yo(e,ky,Sy),xe=e=>_y.test(e),ui=e=>yo(e,Ny,iA),jd=e=>yo(e,hA,Me),xg=e=>yo(e,wy,Sy),lA=e=>yo(e,Ay,sA),wu=e=>yo(e,Iy,oA),ve=e=>Cy.test(e),gs=e=>To(e,Ny),cA=e=>To(e,pA),vg=e=>To(e,wy),dA=e=>To(e,ky),fA=e=>To(e,Ay),Au=e=>To(e,Iy,!0),yo=(e,t,n)=>{const i=_y.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},To=(e,t,n=!1)=>{const i=Cy.exec(e);return i?i[1]?t(i[1]):n:!1},wy=e=>e==="position"||e==="percentage",Ay=e=>e==="image"||e==="url",ky=e=>e==="length"||e==="size"||e==="bg-size",Ny=e=>e==="length",hA=e=>e==="number",pA=e=>e==="family-name",Iy=e=>e==="shadow",mA=()=>{const e=mt("color"),t=mt("font"),n=mt("text"),i=mt("font-weight"),s=mt("tracking"),a=mt("leading"),l=mt("breakpoint"),c=mt("container"),f=mt("spacing"),p=mt("radius"),g=mt("shadow"),E=mt("inset-shadow"),b=mt("text-shadow"),T=mt("drop-shadow"),w=mt("blur"),C=mt("perspective"),k=mt("aspect"),S=mt("ease"),O=mt("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...F(),ve,xe],B=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],V=()=>[ve,xe,f],le=()=>[Zi,"full","auto",...V()],ge=()=>[Mr,"none","subgrid",ve,xe],J=()=>["auto",{span:["full",Mr,ve,xe]},Mr,ve,xe],ne=()=>[Mr,"auto",ve,xe],oe=()=>["auto","min","max","fr",ve,xe],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...V()],fe=()=>[Zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],j=()=>[e,ve,xe],pe=()=>[...F(),vg,xg,{position:[ve,xe]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",dA,uA,{size:[ve,xe]}],Z=()=>[Hd,gs,ui],L=()=>["","none","full",p,ve,xe],Te=()=>["",Me,gs,ui],Ie=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Me,Hd,vg,xg],Le=()=>["","none",w,ve,xe],Fe=()=>["none",Me,ve,xe],Ge=()=>["none",Me,ve,xe],Pt=()=>[Me,ve,xe],xn=()=>[Zi,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sr],breakpoint:[sr],color:[rA],container:[sr],"drop-shadow":[sr],ease:["in","out","in-out"],font:[aA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sr],shadow:[sr],spacing:["px",Me],text:[sr],"text-shadow":[sr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zi,xe,ve,k]}],container:["container"],columns:[{columns:[Me,xe,ve,c]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{start:le()}],end:[{end:le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",ve,xe]}],basis:[{basis:[Zi,"full","auto",c,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Zi,"auto","initial","none",xe]}],grow:[{grow:["",Me,ve,xe]}],shrink:[{shrink:["",Me,ve,xe]}],order:[{order:[Mr,"first","last","none",ve,xe]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],w:[{w:[c,"screen",...fe()]}],"min-w":[{"min-w":[c,"screen","none",...fe()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",n,gs,ui]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,jd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hd,xe]}],"font-family":[{font:[cA,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ve,xe]}],"line-clamp":[{"line-clamp":[Me,"none",ve,jd]}],leading:[{leading:[a,...V()]}],"list-image":[{"list-image":["none",ve,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",ve,ui]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Me,"auto",ve,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,ve,xe],radial:["",ve,xe],conic:[Mr,ve,xe]},fA,lA]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:Te()}],"border-w-x":[{"border-x":Te()}],"border-w-y":[{"border-y":Te()}],"border-w-s":[{"border-s":Te()}],"border-w-e":[{"border-e":Te()}],"border-w-t":[{"border-t":Te()}],"border-w-r":[{"border-r":Te()}],"border-w-b":[{"border-b":Te()}],"border-w-l":[{"border-l":Te()}],"divide-x":[{"divide-x":Te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ie(),"hidden","none"]}],"divide-style":[{divide:[...Ie(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,ve,xe]}],"outline-w":[{outline:["",Me,gs,ui]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",g,Au,wu]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",E,Au,wu]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Me,ui]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":Te()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",b,Au,wu]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Me,ve,xe]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[ve,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,xe]}],filter:[{filter:["","none",ve,xe]}],blur:[{blur:Le()}],brightness:[{brightness:[Me,ve,xe]}],contrast:[{contrast:[Me,ve,xe]}],"drop-shadow":[{"drop-shadow":["","none",T,Au,wu]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Me,ve,xe]}],"hue-rotate":[{"hue-rotate":[Me,ve,xe]}],invert:[{invert:["",Me,ve,xe]}],saturate:[{saturate:[Me,ve,xe]}],sepia:[{sepia:["",Me,ve,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,xe]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[Me,ve,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,ve,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,ve,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,ve,xe]}],"backdrop-invert":[{"backdrop-invert":["",Me,ve,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,ve,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,ve,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,ve,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",ve,xe]}],ease:[{ease:["linear","initial",S,ve,xe]}],delay:[{delay:[Me,ve,xe]}],animate:[{animate:["none",O,ve,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ve,xe]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:Pt()}],"skew-x":[{"skew-x":Pt()}],"skew-y":[{"skew-y":Pt()}],transform:[{transform:[ve,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xn()}],"translate-x":[{"translate-x":xn()}],"translate-y":[{"translate-y":xn()}],"translate-z":[{"translate-z":xn()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,xe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Me,gs,ui,jd]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gA=Qw(mA);function Ft(...e){return gA(lr(e))}const Oy=Tw,EA=bw,Ry=_.forwardRef(({className:e,...t},n)=>x.jsx(fy,{ref:n,className:Ft("fixed inset-0 z-10000 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,onClick:i=>i.stopPropagation()}));Ry.displayName=fy.displayName;const lh=_.forwardRef(({className:e,children:t,...n},i)=>x.jsxs(EA,{container:document.querySelector(".root-app"),children:[x.jsx(Ry,{}),x.jsxs(hy,{ref:i,className:Ft("z-10001 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] w-full max-w-[calc(100%-2rem)] max-h-[80vh] translate-x-[-50%] translate-y-[-50%] duration-200 overflow-y-auto",e),...n,children:[t,x.jsxs(xw,{className:"absolute right-4 top-4 cursor-pointer rounded-full bg-gray-200 transition-background hover:bg-gray-300 disabled:pointer-events-none duration-200 p-2",children:[x.jsx(ah,{className:"h-8 w-8"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));lh.displayName=hy.displayName;const ch=({className:e,...t})=>x.jsx("div",{className:Ft("flex flex-col space-y-1.5 text-left",e),...t});ch.displayName="DialogHeader";const dh=_.forwardRef(({className:e,...t},n)=>x.jsx(py,{ref:n,className:Ft("text-3xl font-semibold leading-none tracking-tight",e),...t}));dh.displayName=py.displayName;const yA=_.forwardRef(({className:e,...t},n)=>x.jsx(my,{ref:n,className:Ft("text-muted-foreground",e),...t}));yA.displayName=my.displayName;const fh=({item:e})=>{const[t,n]=_.useState(""),[i,s]=_.useState(!1),a=mi.getImage(e),l=mi.getValueLabel(e);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"group relative w-full h-full! aspect-video overflow-hidden shadow-sm group cursor-pointer rounded-sm",children:a&&x.jsx("img",{src:a,alt:l,className:"w-full h-full! object-cover",loading:"lazy"})}),x.jsx(Oy,{open:!!i,onOpenChange:()=>{s(!1)},children:x.jsxs(lh,{className:"sm:max-w-5xl",onClick:c=>c.stopPropagation(),children:[x.jsx(ch,{children:x.jsx(dh,{className:"sr-only",children:"Image Zoom"})}),x.jsx("img",{src:t,alt:"Zoomed",className:"w-full h-auto"}),x.jsxs("span",{className:"text-white mt-2 block",children:[(e?.metadata?.Finish||e?.metadata?.Material)&&`${e.metadata?.Finish||e.metadata?.Material} | `,l]})]})})]})},Ks=e=>x.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M11 1L1 11M1 1L11 11",stroke:"current",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),hh=({item:e})=>{const[t,n]=_.useState(null),[i,s]=_.useState(!1),a="#f2f1f1",l=mi.getHexColor(e);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"group relative w-full h-full! aspect-video overflow-hidden shadow-sm group cursor-pointer rounded-sm",style:{backgroundColor:l||a}}),x.jsx(Oy,{open:!!i,onOpenChange:()=>{s(!1)},children:x.jsxs(lh,{className:"sm:max-w-5xl",onClick:c=>c.stopPropagation(),children:[x.jsx(ch,{children:x.jsx(dh,{className:"sr-only",children:"Hex Color"})}),x.jsx("div",{className:"w-full aspect-video rounded",style:{backgroundColor:t||"transparent"}}),l&&x.jsxs("span",{className:"text-white mt-2 block",children:[" ",(e?.metadata?.Material||e?.metadata?.Material)&&`${e.metadata?.Material} | `,mi.getAttributeLabel(e)]})]})})]})},TA="w-[64px] h-[64px] bg-[var(--sidebar-b)] border border-solid border-[var(--border)] rounded-sm aspect-square overflow-hidden transition",bA=({val:e,className:t,isShowDeleteIcon:n=!1,handleSelect:i})=>x.jsxs("button",{onClick:()=>{i&&i(e)},className:`relative ${t||TA}`,"aria-label":`Selected swatch ${e.name??e.assetId}`,title:"Click to remove",children:[mi.getImage(e)?x.jsx(fh,{item:e}):x.jsx(hh,{item:e}),n?x.jsx("div",{className:`absolute top-0 right-0 m-2 w-[16px] h-[16px] flex flex-row justify-center items-center
|
|
54
|
+
bg-[var(--background-grey)] rounded-2xl border-none pointer-events-none`,children:x.jsx(Ks,{className:"w-[8px] h-2 stroke-[var(--svg-dark)]"})}):null]},e.assetId),xA=e=>x.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M2.5 6H9.5",stroke:"current",strokeLinecap:"round",strokeLinejoin:"round"})}),vA=e=>x.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M2.5 6H9.5M6 2.5V9.5",stroke:"current",strokeLinecap:"round",strokeLinejoin:"round"})}),_A=e=>x.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M5 5.5V8.5M7 5.5V8.5M9.5 3V10C9.5 10.2652 9.39464 10.5196 9.20711 10.7071C9.01957 10.8946 8.76522 11 8.5 11H3.5C3.23478 11 2.98043 10.8946 2.79289 10.7071C2.60536 10.5196 2.5 10.2652 2.5 10V3M1.5 3H10.5M4 3V2C4 1.73478 4.10536 1.48043 4.29289 1.29289C4.48043 1.10536 4.73478 1 5 1H7C7.26522 1 7.51957 1.10536 7.70711 1.29289C7.89464 1.48043 8 1.73478 8 2V3",stroke:"current",strokeLinecap:"round",strokeLinejoin:"round"})}),CA=({value:e,canIncrement:t,onIncrement:n,onDecrement:i,onDelete:s})=>{const a=e<=1;return x.jsxs("div",{className:"flex flex-row items-center gap-[8px] text-sm",children:[a?x.jsx("button",{"aria-label":"Remove item",onClick:s,className:"[&_svg_path]:stroke-[var(--main-accent-color)]",children:x.jsx(_A,{})}):x.jsx("button",{"aria-label":"Decrease",onClick:i,className:"[&_svg_path]:stroke-[var(--svg-dark)]",children:x.jsx(xA,{})}),x.jsx("span",{className:"min-w-[16px] text-center select-none",children:e}),x.jsx("button",{"aria-label":"Increase",onClick:n,disabled:!t,className:"[&_svg_path]:stroke-[var(--svg-dark)] disabled:opacity-40",children:x.jsx(vA,{})})]})},Ly=({item:e,canInc:t,onDelete:n,onIncrement:i,onDecrement:s})=>x.jsx("li",{className:`
|
|
55
|
+
border-b border-[var(--border)]
|
|
56
|
+
px-[var(--sm-padding)] p-[var(--sm-padding)]
|
|
57
|
+
last:border-b-0`,children:x.jsxs("div",{className:"relative flex flex-row gap-[16px]",children:[x.jsx("div",{children:x.jsx(bA,{val:e})}),x.jsxs("div",{className:"flex flex-col justify-between",children:[x.jsxs("div",{className:"flex flex-col",children:[x.jsx("span",{className:"mb-[4px] font-semibold text-xs",children:e.metadata?.label}),x.jsx("span",{className:"mb-[4px] font-bold text-[1rem]",children:e.parentName})]}),x.jsx(CA,{value:e.count,canIncrement:t,onIncrement:i,onDecrement:s,onDelete:n})]}),x.jsxs("div",{className:" absolute text-xs top-0 right-0 font-bold",children:["$",e.count*LE]})]})},e.assetId),ph=e=>x.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M9.99984 15.8333L4.1665 9.99996M4.1665 9.99996L9.99984 4.16663M4.1665 9.99996H15.8332",stroke:"current",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),SA=({totalCount:e})=>{const t=jt(),n=()=>{t(AE(!1))};return x.jsx("header",{className:"flex flex-row p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]",children:x.jsxs("div",{className:"flex items-center flex-row gap-[4px]",children:[x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("button",{className:"[&_svg_path]:stroke-[var(--main-accent-color)] cursor-pointer",onClick:n,children:x.jsx(ph,{})}),x.jsx("h2",{className:"m-0! text-base leading-[1.6] font-medium ",children:"Your cart"})]}),e>=Ut?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-[var(--main-accent-color)] hidden text-xs sm:block",children:["(",Ut,") You reached maximum amount of swatches"]}),x.jsxs("span",{className:"text-[var(--main-accent-color)] block sm:hidden",children:["(",Ut,") Max"]})]}):null]})})},wA=({onSendData:e})=>{const t=jt(),n=je(mo),i=je(yi),s=_.useMemo(()=>n.flatMap(p=>p.items),[n]),a=({item:p,assetId:g})=>{const{parentName:E,metadata:b}=p,T=b?.label;g&&T&&E&&(t(IC({assetId:g,label:T,parentName:E})),t(pl({selectedMaterial:p,materialCount:1,selectedMaterials:i})))},l=({item:p,assetId:g})=>{const{parentName:E,metadata:b}=p,T=b?.label;g&&T&&E&&t(kC({assetId:g,label:T,parentName:E}))},c=({item:p,assetId:g})=>{const{parentName:E,metadata:b}=p,T=b?.label;g&&T&&E&&t(NC({assetId:g,label:T,parentName:E}))},f=_.useMemo(()=>s.reduce((p,g)=>p+(g.count??0),0),[s]);return x.jsxs("div",{className:"flex flex-col h-full",children:[x.jsx(SA,{totalCount:f}),x.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[x.jsx("ul",{className:"flex flex-col flex-1 min-h-0 overflow-y-auto",children:n.map(p=>{const{items:g,name:E,assetId:b}=p;return g.length?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:` p-[var(--sm-padding)] border-b border-[var(--border)]
|
|
58
|
+
sm:px-[var(--sm-padding)]`,children:E},p.value),x.jsx("ul",{children:g?.map(T=>x.jsx(Ly,{item:T,canInc:f<Ut,onDelete:()=>{b&&a({item:T,assetId:b})},onIncrement:()=>{b&&l({item:T,assetId:b})},onDecrement:()=>{b&&c({item:T,assetId:b})}},`${T.value}/${T.parentName}`))})]}):null})}),x.jsxs("div",{className:`flex flex-col
|
|
59
|
+
sm:flex-row sm:w-full sm:justify-between sm:items-center
|
|
60
|
+
sm:border-t sm:border-[var(--border)] shadow-[0_-2px_10px_rgba(40,40,40,0.10)]
|
|
61
|
+
`,children:[x.jsx("div",{className:"sm:w-[50%] sm:border-r sm:border-solid sm:border-[var(--border)]",children:x.jsx(PE,{materials:s,containerStyles:"flex flex-col gap-[8px] text-xs/snug p-[var(--sm-padding)] border-t border-solid border-[var(--border)] sm:gap-[12px] sm:border-none s"})}),x.jsx("div",{className:"p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0 sm:w-[50%] sm:border-none sm:flex flex-row sm:justify-end sm:items-end sm:h-full",children:x.jsx("div",{className:"sm:w-[50%]",children:x.jsx(DE,{onClick:()=>e&&e(n),disabled:s.length>Ut+1,children:"GO TO SHIPPING"})})})]})]})]})},AA=e=>x.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[x.jsx("path",{d:"M17.5 17.5L13.8833 13.8834",stroke:"current",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:"M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z",stroke:"current",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),_g={MATERIAL:"material"},kA="UIGrouping";class Sf{static getTransformedData({dataType:t,data:n}){switch(t){case wt.UI:return this.getMapUIData(n);case wt.FETCH_DATA_PRODUCT:return this.getTransformedFetchProductData(n);default:throw new Error("Unsupported format")}}static getGroupingValue(t){if(t)return t.find(n=>n.name===kA)}static getAllMaterialValuesKeys(t){if(t)return t.flatMap(n=>n.groups.flatMap(i=>i.options.filter(s=>s.typeComponent===_g.MATERIAL)).map(i=>i.optionName))}static getAllMaterialOptions(t){const n=JSON.parse(this.getGroupingValue(t).value);if(n){const i=this.getAllMaterialValuesKeys(n);if(i?.length){const s=t.filter(a=>i.includes(a.name));if(s?.length){const a=Yu.getMaterialsValuesFromOptions(s);if(a?.length)return{allMaterialValues:a,productElementOptions:s}}}}}static getMapUIData(t){return this.getAllMaterialOptions(t)}static getTransformedFetchProductData(t){const{materials:n=[],structure:i=[]}=t,s=new Map;for(const g of i)for(const E of g.groups??[])for(const b of E.options??[])b?.typeComponent===_g.MATERIAL&&b?.optionName&&s.set(b.optionName,E.groupName);const l=n.filter(g=>g.optionName&&s.has(g.optionName)).map(g=>({...g,groupName:g.optionName?s.get(g.optionName):void 0})),c=l.flatMap(g=>{const{label:E,groupName:b}=g,T=(E.toLocaleLowerCase()==="color"?b:E)||"without_name";return(g.valuesArray??[]).map(w=>({...w,parentName:T}))}),f=new Set,p=l.map(({label:g,groupName:E,valuesArray:b})=>{const T=g?.toLowerCase()==="color"?E??g:g;return{id:T,value:T,label:T,valuesArray:b}}).filter(g=>g.label&&(f.has(g.label)?!1:(f.add(g.label),!0))).sort((g,E)=>g.label.localeCompare(E.label));return{allMaterialValues:c,productElementOptions:p}}}const NA=({productListItem:e})=>{const t=jt(),{name:n,img:i}=e,s=i?`https://admin-fts.threekit.com${i}`:"https://clownfish-app-cvxrz.ondigitalocean.app/assets/product_thumb-Bn1S8z9K.png",a=async()=>{const{assetId:l,name:c}=e;if(l&&c){const f=await t(As({assetId:l})).unwrap();if(f){t(TC(e));const p=Sf.getTransformedData({dataType:wt.FETCH_DATA_PRODUCT,data:f});t(Tf(p))}}};return x.jsxs("li",{className:"min-w-0 cursor-pointer",tabIndex:0,onClick:a,children:[x.jsx("div",{className:"mb-[12px] w-full aspect-square relative overflow-hidden rounded-sm",children:x.jsx("img",{src:s,alt:"product-list-item",className:"absolute inset-0 w-full h-full! object-cover"})}),n]})},Py={name:"All",value:"",productId:0,items:[]};class IA{static getCartTotalCount({cartItems:t}){return t.reduce((n,i)=>n+i.count,0)}static getUniqueCategories(t){const n=["All","Vanities","Storage & Shelving","Countertops","Basins","Vessels","Pedestals & Consoles","Tubs","Mirrors","Toilets","Bathroom Accessories"],s=Array.from(new Set(t.map(c=>c.collection).filter(Boolean))).map(c=>({name:c,value:c,productId:0,items:[]}));return[Py,...s].sort((c,f)=>{const p=n.indexOf(c.name),g=n.indexOf(f.name),E=p===-1?Number.MAX_SAFE_INTEGER:p,b=g===-1?Number.MAX_SAFE_INTEGER:g;return E!==b?E-b:c.name.localeCompare(f.name)}).map((c,f)=>({...c,productId:f}))}static getCartPreparedOption(t,n){if(!t?.length)return[];const i=n.flatMap(s=>s.items||[]);return t.map(s=>{const a=i.find(l=>l.parentName===s.parentName&&l.metadata?.label===s.metadata?.label);return{...s,count:a?a.count:1}})}}const OA=({text:e,isActive:t=!1,onClick:n})=>{const i=()=>{n&&n()},s=a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())};return x.jsx("div",{role:"button",tabIndex:0,onClick:i,onKeyDown:s,className:`
|
|
62
|
+
flex flex-row justify-center items-center max-w-max px-4 py-2 capitalize rounded-full
|
|
63
|
+
font-medium text-sm cursor-pointer transition-all duration-[400ms] ease-in-out
|
|
64
|
+
outline-none focus:ring-2 focus:ring-[var(--main-accent-color)] focus:ring-offset-2
|
|
65
|
+
${t?"bg-[var(--main-accent-color)] text-white hover:brightness-90":"bg-[var(--label-bg)] hover:brightness-95"}
|
|
66
|
+
`,children:e})},Cg=e=>x.jsx("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...e,children:x.jsx("path",{d:"M5.75 0.75L0.75 5.75L5.75 10.75",stroke:"current",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Sg=({items:e,activeId:t,onSelect:n,className:i="",stepRatio:s=.8})=>{const a=_.useRef(null),l=_.useRef(null),c=_.useRef(null),[f,p]=_.useState(!1),[g,E]=_.useState(!1),b=_.useCallback(()=>{const w=a.current;if(!w)return;const C=w.scrollWidth-w.clientWidth-w.scrollLeft,k=.5;p(w.scrollLeft>k),E(C>k)},[]);_.useLayoutEffect(()=>(c.current=requestAnimationFrame(b),()=>{c.current&&cancelAnimationFrame(c.current)}),[e.length,b]),_.useEffect(()=>{const w=a.current,C=l.current;if(!w||!C)return;b();const k=new ResizeObserver(()=>b()),S=new ResizeObserver(()=>b());k.observe(w),S.observe(C);const O=()=>b();return w.addEventListener("scroll",O,{passive:!0}),"fonts"in document&&document.fonts?.ready?.then(()=>b()),()=>{k.disconnect(),S.disconnect(),w.removeEventListener("scroll",O)}},[b]);const T=w=>{const C=a.current;if(!C)return;const k=C.clientWidth*s*(w==="left"?-1:1);C.scrollBy({left:k,behavior:"smooth"})};return x.jsxs("div",{className:`flex flex-row items-center gap-[8px] lg:w-[50%] xl:max-w-[68%] xl:w-full ${i}`,role:"region","aria-label":"Category slider",children:[x.jsxs("button",{type:"button","aria-label":"Scroll left",disabled:!f,onClick:()=>T("left"),className:`flex-shrink-0 h-8 w-8 rounded-full flex flex-row items-center justify-center shadow
|
|
67
|
+
${f?"bg-black text-white hover:brightness-110":"bg-gray-200 text-gray-500 opacity-60 cursor-not-allowed"}`,children:[x.jsx(Cg,{className:"w-[16px] h-4 rotate-360"})," "]}),x.jsx("div",{ref:a,className:"no-scrollbar flex-1 overflow-hidden scroll-smooth",style:{WebkitOverflowScrolling:"touch"},children:x.jsx("div",{ref:l,className:"flex flex-row gap-[12px] sm:gap-[16px] py-2",children:e.map(w=>{const C=w.productId,k=t===C;return x.jsx("div",{className:"shrink-0",children:x.jsx(OA,{text:w.name,isActive:k,onClick:()=>n(w)})},C)})})}),x.jsxs("button",{type:"button","aria-label":"Scroll right",disabled:!g,onClick:()=>T("right"),className:`flex-shrink-0 h-8 w-8 rounded-full flex flex-row items-center justify-center shadow
|
|
68
|
+
${g?"bg-black text-white hover:brightness-110":"bg-gray-200 text-gray-400 opacity-60 cursor-not-allowed"}`,children:[x.jsx(Cg,{className:"w-[16px] h-4 rotate-180"})," "]})]})},RA=["top","right","bottom","left"],Yr=Math.min,sn=Math.max,Gu=Math.round,ku=Math.floor,$n=e=>({x:e,y:e}),LA={left:"right",right:"left",bottom:"top",top:"bottom"},PA={start:"end",end:"start"};function wf(e,t,n){return sn(e,Yr(t,n))}function fr(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function mh(e){return e==="x"?"y":"x"}function gh(e){return e==="y"?"height":"width"}const DA=new Set(["top","bottom"]);function Yn(e){return DA.has(hr(e))?"y":"x"}function Eh(e){return mh(Yn(e))}function MA(e,t,n){n===void 0&&(n=!1);const i=bo(e),s=Eh(e),a=gh(s);let l=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Qu(l)),[l,Qu(l)]}function FA(e){const t=Qu(e);return[Af(e),t,Af(t)]}function Af(e){return e.replace(/start|end/g,t=>PA[t])}const wg=["left","right"],Ag=["right","left"],BA=["top","bottom"],UA=["bottom","top"];function HA(e,t,n){switch(e){case"top":case"bottom":return n?t?Ag:wg:t?wg:Ag;case"left":case"right":return t?BA:UA;default:return[]}}function jA(e,t,n,i){const s=bo(e);let a=HA(hr(e),n==="start",i);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(Af)))),a}function Qu(e){return e.replace(/left|right|bottom|top/g,t=>LA[t])}function zA(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dy(e){return typeof e!="number"?zA(e):{top:e,right:e,bottom:e,left:e}}function Ku(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function kg(e,t,n){let{reference:i,floating:s}=e;const a=Yn(t),l=Eh(t),c=gh(l),f=hr(t),p=a==="y",g=i.x+i.width/2-s.width/2,E=i.y+i.height/2-s.height/2,b=i[c]/2-s[c]/2;let T;switch(f){case"top":T={x:g,y:i.y-s.height};break;case"bottom":T={x:g,y:i.y+i.height};break;case"right":T={x:i.x+i.width,y:E};break;case"left":T={x:i.x-s.width,y:E};break;default:T={x:i.x,y:i.y}}switch(bo(t)){case"start":T[l]-=b*(n&&p?-1:1);break;case"end":T[l]+=b*(n&&p?-1:1);break}return T}const WA=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,c=a.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:E}=kg(p,i,f),b=i,T={},w=0;for(let C=0;C<c.length;C++){const{name:k,fn:S}=c[C],{x:O,y:I,data:F,reset:z}=await S({x:g,y:E,initialPlacement:i,placement:b,strategy:s,middlewareData:T,rects:p,platform:l,elements:{reference:e,floating:t}});g=O??g,E=I??E,T={...T,[k]:{...T[k],...F}},z&&w<=50&&(w++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:g,y:E}=kg(p,b,f)),C=-1)}return{x:g,y:E,placement:b,strategy:s,middlewareData:T}};async function js(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:a,rects:l,elements:c,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:E="floating",altBoundary:b=!1,padding:T=0}=fr(t,e),w=Dy(T),k=c[b?E==="floating"?"reference":"floating":E],S=Ku(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(k)))==null||n?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:g,strategy:f})),O=E==="floating"?{x:i,y:s,width:l.floating.width,height:l.floating.height}:l.reference,I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),F=await(a.isElement==null?void 0:a.isElement(I))?await(a.getScale==null?void 0:a.getScale(I))||{x:1,y:1}:{x:1,y:1},z=Ku(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:O,offsetParent:I,strategy:f}):O);return{top:(S.top-z.top+w.top)/F.y,bottom:(z.bottom-S.bottom+w.bottom)/F.y,left:(S.left-z.left+w.left)/F.x,right:(z.right-S.right+w.right)/F.x}}const VA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:a,platform:l,elements:c,middlewareData:f}=t,{element:p,padding:g=0}=fr(e,t)||{};if(p==null)return{};const E=Dy(g),b={x:n,y:i},T=Eh(s),w=gh(T),C=await l.getDimensions(p),k=T==="y",S=k?"top":"left",O=k?"bottom":"right",I=k?"clientHeight":"clientWidth",F=a.reference[w]+a.reference[T]-b[T]-a.floating[w],z=b[T]-a.reference[T],B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p));let W=B?B[I]:0;(!W||!await(l.isElement==null?void 0:l.isElement(B)))&&(W=c.floating[I]||a.floating[w]);const V=F/2-z/2,le=W/2-C[w]/2-1,ge=Yr(E[S],le),J=Yr(E[O],le),ne=ge,oe=W-C[w]-J,ee=W/2-C[w]/2+V,X=wf(ne,ee,oe),ue=!f.arrow&&bo(s)!=null&&ee!==X&&a.reference[w]/2-(ee<ne?ge:J)-C[w]/2<0,fe=ue?ee<ne?ee-ne:ee-oe:0;return{[T]:b[T]+fe,data:{[T]:X,centerOffset:ee-X-fe,...ue&&{alignmentOffset:fe}},reset:ue}}}),YA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:p}=t,{mainAxis:g=!0,crossAxis:E=!0,fallbackPlacements:b,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:C=!0,...k}=fr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=hr(s),O=Yn(c),I=hr(c)===c,F=await(f.isRTL==null?void 0:f.isRTL(p.floating)),z=b||(I||!C?[Qu(c)]:FA(c)),B=w!=="none";!b&&B&&z.push(...jA(c,C,w,F));const W=[c,...z],V=await js(t,k),le=[];let ge=((i=a.flip)==null?void 0:i.overflows)||[];if(g&&le.push(V[S]),E){const ee=MA(s,l,F);le.push(V[ee[0]],V[ee[1]])}if(ge=[...ge,{placement:s,overflows:le}],!le.every(ee=>ee<=0)){var J,ne;const ee=(((J=a.flip)==null?void 0:J.index)||0)+1,X=W[ee];if(X&&(!(E==="alignment"?O!==Yn(X):!1)||ge.every(j=>Yn(j.placement)===O?j.overflows[0]>0:!0)))return{data:{index:ee,overflows:ge},reset:{placement:X}};let ue=(ne=ge.filter(fe=>fe.overflows[0]<=0).sort((fe,j)=>fe.overflows[1]-j.overflows[1])[0])==null?void 0:ne.placement;if(!ue)switch(T){case"bestFit":{var oe;const fe=(oe=ge.filter(j=>{if(B){const pe=Yn(j.placement);return pe===O||pe==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(pe=>pe>0).reduce((pe,N)=>pe+N,0)]).sort((j,pe)=>j[1]-pe[1])[0])==null?void 0:oe[0];fe&&(ue=fe);break}case"initialPlacement":ue=c;break}if(s!==ue)return{reset:{placement:ue}}}return{}}}};function Ng(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ig(e){return RA.some(t=>e[t]>=0)}const $A=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=fr(e,t);switch(i){case"referenceHidden":{const a=await js(t,{...s,elementContext:"reference"}),l=Ng(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ig(l)}}}case"escaped":{const a=await js(t,{...s,altBoundary:!0}),l=Ng(a,n.floating);return{data:{escapedOffsets:l,escaped:Ig(l)}}}default:return{}}}}},My=new Set(["left","top"]);async function qA(e,t){const{placement:n,platform:i,elements:s}=e,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),l=hr(n),c=bo(n),f=Yn(n)==="y",p=My.has(l)?-1:1,g=a&&f?-1:1,E=fr(t,e);let{mainAxis:b,crossAxis:T,alignmentAxis:w}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return c&&typeof w=="number"&&(T=c==="end"?w*-1:w),f?{x:T*g,y:b*p}:{x:b*p,y:T*g}}const GA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:a,placement:l,middlewareData:c}=t,f=await qA(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+f.x,y:a+f.y,data:{...f,placement:l}}}}},QA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:k=>{let{x:S,y:O}=k;return{x:S,y:O}}},...f}=fr(e,t),p={x:n,y:i},g=await js(t,f),E=Yn(hr(s)),b=mh(E);let T=p[b],w=p[E];if(a){const k=b==="y"?"top":"left",S=b==="y"?"bottom":"right",O=T+g[k],I=T-g[S];T=wf(O,T,I)}if(l){const k=E==="y"?"top":"left",S=E==="y"?"bottom":"right",O=w+g[k],I=w-g[S];w=wf(O,w,I)}const C=c.fn({...t,[b]:T,[E]:w});return{...C,data:{x:C.x-n,y:C.y-i,enabled:{[b]:a,[E]:l}}}}}},KA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:p=!0}=fr(e,t),g={x:n,y:i},E=Yn(s),b=mh(E);let T=g[b],w=g[E];const C=fr(c,t),k=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(f){const I=b==="y"?"height":"width",F=a.reference[b]-a.floating[I]+k.mainAxis,z=a.reference[b]+a.reference[I]-k.mainAxis;T<F?T=F:T>z&&(T=z)}if(p){var S,O;const I=b==="y"?"width":"height",F=My.has(hr(s)),z=a.reference[E]-a.floating[I]+(F&&((S=l.offset)==null?void 0:S[E])||0)+(F?0:k.crossAxis),B=a.reference[E]+a.reference[I]+(F?0:((O=l.offset)==null?void 0:O[E])||0)-(F?k.crossAxis:0);w<z?w=z:w>B&&(w=B)}return{[b]:T,[E]:w}}}},XA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:a,platform:l,elements:c}=t,{apply:f=()=>{},...p}=fr(e,t),g=await js(t,p),E=hr(s),b=bo(s),T=Yn(s)==="y",{width:w,height:C}=a.floating;let k,S;E==="top"||E==="bottom"?(k=E,S=b===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(S=E,k=b==="end"?"top":"bottom");const O=C-g.top-g.bottom,I=w-g.left-g.right,F=Yr(C-g[k],O),z=Yr(w-g[S],I),B=!t.middlewareData.shift;let W=F,V=z;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(V=I),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(W=O),B&&!b){const ge=sn(g.left,0),J=sn(g.right,0),ne=sn(g.top,0),oe=sn(g.bottom,0);T?V=w-2*(ge!==0||J!==0?ge+J:sn(g.left,g.right)):W=C-2*(ne!==0||oe!==0?ne+oe:sn(g.top,g.bottom))}await f({...t,availableWidth:V,availableHeight:W});const le=await l.getDimensions(c.floating);return w!==le.width||C!==le.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function xo(e){return Fy(e)?(e.nodeName||"").toLowerCase():"#document"}function un(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(Fy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fy(e){return bl()?e instanceof Node||e instanceof un(e).Node:!1}function On(e){return bl()?e instanceof Element||e instanceof un(e).Element:!1}function qn(e){return bl()?e instanceof HTMLElement||e instanceof un(e).HTMLElement:!1}function Og(e){return!bl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof un(e).ShadowRoot}const ZA=new Set(["inline","contents"]);function Xs(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!ZA.has(s)}const JA=new Set(["table","td","th"]);function e3(e){return JA.has(xo(e))}const t3=[":popover-open",":modal"];function xl(e){return t3.some(t=>{try{return e.matches(t)}catch{return!1}})}const n3=["transform","translate","scale","rotate","perspective"],r3=["transform","translate","scale","rotate","perspective","filter"],i3=["paint","layout","strict","content"];function yh(e){const t=Th(),n=On(e)?Rn(e):e;return n3.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||r3.some(i=>(n.willChange||"").includes(i))||i3.some(i=>(n.contain||"").includes(i))}function o3(e){let t=$r(e);for(;qn(t)&&!lo(t);){if(yh(t))return t;if(xl(t))return null;t=$r(t)}return null}function Th(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const s3=new Set(["html","body","#document"]);function lo(e){return s3.has(xo(e))}function Rn(e){return un(e).getComputedStyle(e)}function vl(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Og(e)&&e.host||Qn(e);return Og(t)?t.host:t}function By(e){const t=$r(e);return lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&Xs(t)?t:By(t)}function zs(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=By(e),a=s===((i=e.ownerDocument)==null?void 0:i.body),l=un(s);if(a){const c=kf(l);return t.concat(l,l.visualViewport||[],Xs(s)?s:[],c&&n?zs(c):[])}return t.concat(s,zs(s,[],n))}function kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uy(e){const t=Rn(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=qn(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:i,c=Gu(n)!==a||Gu(i)!==l;return c&&(n=a,i=l),{width:n,height:i,$:c}}function bh(e){return On(e)?e:e.contextElement}function io(e){const t=bh(e);if(!qn(t))return $n(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:a}=Uy(t);let l=(a?Gu(n.width):n.width)/i,c=(a?Gu(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const a3=$n(0);function Hy(e){const t=un(e);return!Th()||!t.visualViewport?a3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==un(e)?!1:t}function Ei(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=bh(e);let l=$n(1);t&&(i?On(i)&&(l=io(i)):l=io(e));const c=u3(a,n,i)?Hy(a):$n(0);let f=(s.left+c.x)/l.x,p=(s.top+c.y)/l.y,g=s.width/l.x,E=s.height/l.y;if(a){const b=un(a),T=i&&On(i)?un(i):i;let w=b,C=kf(w);for(;C&&i&&T!==w;){const k=io(C),S=C.getBoundingClientRect(),O=Rn(C),I=S.left+(C.clientLeft+parseFloat(O.paddingLeft))*k.x,F=S.top+(C.clientTop+parseFloat(O.paddingTop))*k.y;f*=k.x,p*=k.y,g*=k.x,E*=k.y,f+=I,p+=F,w=un(C),C=kf(w)}}return Ku({width:g,height:E,x:f,y:p})}function _l(e,t){const n=vl(e).scrollLeft;return t?t.left+n:Ei(Qn(e)).left+n}function jy(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-_l(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function l3(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const a=s==="fixed",l=Qn(i),c=t?xl(t.floating):!1;if(i===l||c&&a)return n;let f={scrollLeft:0,scrollTop:0},p=$n(1);const g=$n(0),E=qn(i);if((E||!E&&!a)&&((xo(i)!=="body"||Xs(l))&&(f=vl(i)),qn(i))){const T=Ei(i);p=io(i),g.x=T.x+i.clientLeft,g.y=T.y+i.clientTop}const b=l&&!E&&!a?jy(l,f):$n(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+g.x+b.x,y:n.y*p.y-f.scrollTop*p.y+g.y+b.y}}function c3(e){return Array.from(e.getClientRects())}function d3(e){const t=Qn(e),n=vl(e),i=e.ownerDocument.body,s=sn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=sn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+_l(e);const c=-n.scrollTop;return Rn(i).direction==="rtl"&&(l+=sn(t.clientWidth,i.clientWidth)-s),{width:s,height:a,x:l,y:c}}const Rg=25;function f3(e,t){const n=un(e),i=Qn(e),s=n.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;const g=Th();(!g||g&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}const p=_l(i);if(p<=0){const g=i.ownerDocument,E=g.body,b=getComputedStyle(E),T=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(i.clientWidth-E.clientWidth-T);w<=Rg&&(a-=w)}else p<=Rg&&(a+=p);return{width:a,height:l,x:c,y:f}}const h3=new Set(["absolute","fixed"]);function p3(e,t){const n=Ei(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,a=qn(e)?io(e):$n(1),l=e.clientWidth*a.x,c=e.clientHeight*a.y,f=s*a.x,p=i*a.y;return{width:l,height:c,x:f,y:p}}function Lg(e,t,n){let i;if(t==="viewport")i=f3(e,n);else if(t==="document")i=d3(Qn(e));else if(On(t))i=p3(t,n);else{const s=Hy(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ku(i)}function zy(e,t){const n=$r(e);return n===t||!On(n)||lo(n)?!1:Rn(n).position==="fixed"||zy(n,t)}function m3(e,t){const n=t.get(e);if(n)return n;let i=zs(e,[],!1).filter(c=>On(c)&&xo(c)!=="body"),s=null;const a=Rn(e).position==="fixed";let l=a?$r(e):e;for(;On(l)&&!lo(l);){const c=Rn(l),f=yh(l);!f&&c.position==="fixed"&&(s=null),(a?!f&&!s:!f&&c.position==="static"&&!!s&&h3.has(s.position)||Xs(l)&&!f&&zy(e,l))?i=i.filter(g=>g!==l):s=c,l=$r(l)}return t.set(e,i),i}function g3(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=[...n==="clippingAncestors"?xl(t)?[]:m3(t,this._c):[].concat(n),i],c=l[0],f=l.reduce((p,g)=>{const E=Lg(t,g,s);return p.top=sn(E.top,p.top),p.right=Yr(E.right,p.right),p.bottom=Yr(E.bottom,p.bottom),p.left=sn(E.left,p.left),p},Lg(t,c,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function E3(e){const{width:t,height:n}=Uy(e);return{width:t,height:n}}function y3(e,t,n){const i=qn(t),s=Qn(t),a=n==="fixed",l=Ei(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const f=$n(0);function p(){f.x=_l(s)}if(i||!i&&!a)if((xo(t)!=="body"||Xs(s))&&(c=vl(t)),i){const T=Ei(t,!0,a,t);f.x=T.x+t.clientLeft,f.y=T.y+t.clientTop}else s&&p();a&&!i&&s&&p();const g=s&&!i&&!a?jy(s,c):$n(0),E=l.left+c.scrollLeft-f.x-g.x,b=l.top+c.scrollTop-f.y-g.y;return{x:E,y:b,width:l.width,height:l.height}}function zd(e){return Rn(e).position==="static"}function Pg(e,t){if(!qn(e)||Rn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function Wy(e,t){const n=un(e);if(xl(e))return n;if(!qn(e)){let s=$r(e);for(;s&&!lo(s);){if(On(s)&&!zd(s))return s;s=$r(s)}return n}let i=Pg(e,t);for(;i&&e3(i)&&zd(i);)i=Pg(i,t);return i&&lo(i)&&zd(i)&&!yh(i)?n:i||o3(e)||n}const T3=async function(e){const t=this.getOffsetParent||Wy,n=this.getDimensions,i=await n(e.floating);return{reference:y3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function b3(e){return Rn(e).direction==="rtl"}const x3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:Qn,getClippingRect:g3,getOffsetParent:Wy,getElementRects:T3,getClientRects:c3,getDimensions:E3,getScale:io,isElement:On,isRTL:b3};function Vy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function v3(e,t){let n=null,i;const s=Qn(e);function a(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:g,top:E,width:b,height:T}=p;if(c||t(),!b||!T)return;const w=ku(E),C=ku(s.clientWidth-(g+b)),k=ku(s.clientHeight-(E+T)),S=ku(g),I={rootMargin:-w+"px "+-C+"px "+-k+"px "+-S+"px",threshold:sn(0,Yr(1,f))||1};let F=!0;function z(B){const W=B[0].intersectionRatio;if(W!==f){if(!F)return l();W?l(!1,W):i=setTimeout(()=>{l(!1,1e-7)},1e3)}W===1&&!Vy(p,e.getBoundingClientRect())&&l(),F=!1}try{n=new IntersectionObserver(z,{...I,root:s.ownerDocument})}catch{n=new IntersectionObserver(z,I)}n.observe(e)}return l(!0),a}function _3(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,p=bh(e),g=s||a?[...p?zs(p):[],...zs(t)]:[];g.forEach(S=>{s&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const E=p&&c?v3(p,n):null;let b=-1,T=null;l&&(T=new ResizeObserver(S=>{let[O]=S;O&&O.target===p&&T&&(T.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var I;(I=T)==null||I.observe(t)})),n()}),p&&!f&&T.observe(p),T.observe(t));let w,C=f?Ei(e):null;f&&k();function k(){const S=Ei(e);C&&!Vy(C,S)&&n(),C=S,w=requestAnimationFrame(k)}return n(),()=>{var S;g.forEach(O=>{s&&O.removeEventListener("scroll",n),a&&O.removeEventListener("resize",n)}),E?.(),(S=T)==null||S.disconnect(),T=null,f&&cancelAnimationFrame(w)}}const C3=GA,S3=QA,w3=YA,A3=XA,k3=$A,Dg=VA,N3=KA,I3=(e,t,n)=>{const i=new Map,s={platform:x3,...n},a={...s.platform,_c:i};return WA(e,t,{...s,platform:a})};var O3=typeof document<"u",R3=function(){},Mu=O3?_.useLayoutEffect:R3;function Xu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Xu(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const a=s[i];if(!(a==="_owner"&&e.$$typeof)&&!Xu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mg(e,t){const n=Yy(e);return Math.round(t*n)/n}function Wd(e){const t=_.useRef(e);return Mu(()=>{t.current=e}),t}function L3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:f,open:p}=e,[g,E]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,T]=_.useState(i);Xu(b,i)||T(i);const[w,C]=_.useState(null),[k,S]=_.useState(null),O=_.useCallback(j=>{j!==B.current&&(B.current=j,C(j))},[]),I=_.useCallback(j=>{j!==W.current&&(W.current=j,S(j))},[]),F=a||w,z=l||k,B=_.useRef(null),W=_.useRef(null),V=_.useRef(g),le=f!=null,ge=Wd(f),J=Wd(s),ne=Wd(p),oe=_.useCallback(()=>{if(!B.current||!W.current)return;const j={placement:t,strategy:n,middleware:b};J.current&&(j.platform=J.current),I3(B.current,W.current,j).then(pe=>{const N={...pe,isPositioned:ne.current!==!1};ee.current&&!Xu(V.current,N)&&(V.current=N,go.flushSync(()=>{E(N)}))})},[b,t,n,J,ne]);Mu(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,E(j=>({...j,isPositioned:!1})))},[p]);const ee=_.useRef(!1);Mu(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Mu(()=>{if(F&&(B.current=F),z&&(W.current=z),F&&z){if(ge.current)return ge.current(F,z,oe);oe()}},[F,z,oe,ge,le]);const X=_.useMemo(()=>({reference:B,floating:W,setReference:O,setFloating:I}),[O,I]),ue=_.useMemo(()=>({reference:F,floating:z}),[F,z]),fe=_.useMemo(()=>{const j={position:n,left:0,top:0};if(!ue.floating)return j;const pe=Mg(ue.floating,g.x),N=Mg(ue.floating,g.y);return c?{...j,transform:"translate("+pe+"px, "+N+"px)",...Yy(ue.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:N}},[n,c,ue.floating,g.x,g.y]);return _.useMemo(()=>({...g,update:oe,refs:X,elements:ue,floatingStyles:fe}),[g,oe,X,ue,fe])}const P3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Dg({element:i.current,padding:s}).fn(n):{}:i?Dg({element:i,padding:s}).fn(n):{}}}},D3=(e,t)=>({...C3(e),options:[e,t]}),M3=(e,t)=>({...S3(e),options:[e,t]}),F3=(e,t)=>({...N3(e),options:[e,t]}),B3=(e,t)=>({...w3(e),options:[e,t]}),U3=(e,t)=>({...A3(e),options:[e,t]}),H3=(e,t)=>({...k3(e),options:[e,t]}),j3=(e,t)=>({...P3(e),options:[e,t]});var z3="Arrow",$y=_.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...a}=e;return x.jsx(At.svg,{...a,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});$y.displayName=z3;var W3=$y;function qy(e){const[t,n]=_.useState(void 0);return Vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,p=Array.isArray(f)?f[0]:f;l=p.inlineSize,c=p.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var xh="Popper",[Gy,Qy]=El(xh),[V3,Ky]=Gy(xh),Xy=e=>{const{__scopePopper:t,children:n}=e,[i,s]=_.useState(null);return x.jsx(V3,{scope:t,anchor:i,onAnchorChange:s,children:n})};Xy.displayName=xh;var Zy="PopperAnchor",Jy=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,a=Ky(Zy,n),l=_.useRef(null),c=cn(t,l),f=_.useRef(null);return _.useEffect(()=>{const p=f.current;f.current=i?.current||l.current,p!==f.current&&a.onAnchorChange(f.current)}),i?null:x.jsx(At.div,{...s,ref:c})});Jy.displayName=Zy;var vh="PopperContent",[Y3,$3]=Gy(vh),eT=_.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:E="partial",hideWhenDetached:b=!1,updatePositionStrategy:T="optimized",onPlaced:w,...C}=e,k=Ky(vh,n),[S,O]=_.useState(null),I=cn(t,Se=>O(Se)),[F,z]=_.useState(null),B=qy(F),W=B?.width??0,V=B?.height??0,le=i+(a!=="center"?"-"+a:""),ge=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},J=Array.isArray(p)?p:[p],ne=J.length>0,oe={padding:ge,boundary:J.filter(G3),altBoundary:ne},{refs:ee,floatingStyles:X,placement:ue,isPositioned:fe,middlewareData:j}=L3({strategy:"fixed",placement:le,whileElementsMounted:(...Se)=>_3(...Se,{animationFrame:T==="always"}),elements:{reference:k.anchor},middleware:[D3({mainAxis:s+V,alignmentAxis:l}),f&&M3({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?F3():void 0,...oe}),f&&B3({...oe}),U3({...oe,apply:({elements:Se,rects:Le,availableWidth:Fe,availableHeight:Ge})=>{const{width:Pt,height:xn}=Le.reference,vn=Se.floating.style;vn.setProperty("--radix-popper-available-width",`${Fe}px`),vn.setProperty("--radix-popper-available-height",`${Ge}px`),vn.setProperty("--radix-popper-anchor-width",`${Pt}px`),vn.setProperty("--radix-popper-anchor-height",`${xn}px`)}}),F&&j3({element:F,padding:c}),Q3({arrowWidth:W,arrowHeight:V}),b&&H3({strategy:"referenceHidden",...oe})]}),[pe,N]=rT(ue),H=uo(w);Vr(()=>{fe&&H?.()},[fe,H]);const Z=j.arrow?.x,L=j.arrow?.y,Te=j.arrow?.centerOffset!==0,[Ie,we]=_.useState();return Vr(()=>{S&&we(window.getComputedStyle(S).zIndex)},[S]),x.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:fe?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(Y3,{scope:n,placedSide:pe,onArrowChange:z,arrowX:Z,arrowY:L,shouldHideArrow:Te,children:x.jsx(At.div,{"data-side":pe,"data-align":N,...C,ref:I,style:{...C.style,animation:fe?void 0:"none"}})})})});eT.displayName=vh;var tT="PopperArrow",q3={top:"bottom",right:"left",bottom:"top",left:"right"},nT=_.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,a=$3(tT,i),l=q3[a.placedSide];return x.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]: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:x.jsx(W3,{...s,ref:n,style:{...s.style,display:"block"}})})});nT.displayName=tT;function G3(e){return e!==null}var Q3=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,l=s.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[p,g]=rT(n),E={start:"0%",center:"50%",end:"100%"}[g],b=(s.arrow?.x??0)+c/2,T=(s.arrow?.y??0)+f/2;let w="",C="";return p==="bottom"?(w=l?E:`${b}px`,C=`${-f}px`):p==="top"?(w=l?E:`${b}px`,C=`${i.floating.height+f}px`):p==="right"?(w=`${-f}px`,C=l?E:`${T}px`):p==="left"&&(w=`${i.floating.width+f}px`,C=l?E:`${T}px`),{data:{x:w,y:C}}}});function rT(e){const[t,n="center"]=e.split("-");return[t,n]}var K3=Xy,iT=Jy,X3=eT,Z3=nT;function J3(e){const t=ek(e),n=_.forwardRef((i,s)=>{const{children:a,...l}=i,c=_.Children.toArray(a),f=c.find(nk);if(f){const p=f.props.children,g=c.map(E=>E===f?_.Children.count(p)>1?_.Children.only(null):_.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:_.isValidElement(p)?_.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function ek(e){const t=_.forwardRef((n,i)=>{const{children:s,...a}=n;if(_.isValidElement(s)){const l=ik(s),c=rk(a,s.props);return s.type!==_.Fragment&&(c.ref=i?gl(i,l):l),_.cloneElement(s,c)}return _.Children.count(s)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tk=Symbol("radix.slottable");function nk(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tk}function rk(e,t){const n={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?s&&a?n[i]=(...c)=>{const f=a(...c);return s(...c),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...a}:i==="className"&&(n[i]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function ik(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cl="Popover",[oT]=El(Cl,[Qy]),Zs=Qy(),[ok,Ti]=oT(Cl),_h=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=Zs(t),f=_.useRef(null),[p,g]=_.useState(!1),[E,b]=Jf({prop:i,defaultProp:s??!1,onChange:a,caller:Cl});return x.jsx(K3,{...c,children:x.jsx(ok,{scope:t,contentId:Lu(),triggerRef:f,open:E,onOpenChange:b,onOpenToggle:_.useCallback(()=>b(T=>!T),[b]),hasCustomAnchor:p,onCustomAnchorAdd:_.useCallback(()=>g(!0),[]),onCustomAnchorRemove:_.useCallback(()=>g(!1),[]),modal:l,children:n})})};_h.displayName=Cl;var sT="PopoverAnchor",sk=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ti(sT,n),a=Zs(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=s;return _.useEffect(()=>(l(),()=>c()),[l,c]),x.jsx(iT,{...a,...i,ref:t})});sk.displayName=sT;var aT="PopoverTrigger",Ch=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ti(aT,n),a=Zs(n),l=cn(t,s.triggerRef),c=x.jsx(At.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":cT(s.open),...i,ref:l,onClick:Ht(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?c:x.jsx(iT,{asChild:!0,...a,children:c})});Ch.displayName=aT;var ak="PopoverPortal",[hD,uk]=oT(ak,{forceMount:void 0}),co="PopoverContent",Sh=_.forwardRef((e,t)=>{const n=uk(co,e.__scopePopover),{forceMount:i=n.forceMount,...s}=e,a=Ti(co,e.__scopePopover);return x.jsx(Eo,{present:i||a.open,children:a.modal?x.jsx(ck,{...s,ref:t}):x.jsx(dk,{...s,ref:t})})});Sh.displayName=co;var lk=J3("PopoverContent.RemoveScroll"),ck=_.forwardRef((e,t)=>{const n=Ti(co,e.__scopePopover),i=_.useRef(null),s=cn(t,i),a=_.useRef(!1);return _.useEffect(()=>{const l=i.current;if(l)return KE(l)},[]),x.jsx(nh,{as:lk,allowPinchZoom:!0,children:x.jsx(uT,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ht(e.onCloseAutoFocus,l=>{l.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ht(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,p=c.button===2||f;a.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:Ht(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),dk=_.forwardRef((e,t)=>{const n=Ti(co,e.__scopePopover),i=_.useRef(!1),s=_.useRef(!1);return x.jsx(uT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(i.current||n.triggerRef.current?.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=a.target;n.triggerRef.current?.contains(l)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),uT=_.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,...E}=e,b=Ti(co,n),T=Zs(n);return jE(),x.jsx(th,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:x.jsx(eh,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>b.onOpenChange(!1),children:x.jsx(X3,{"data-state":cT(b.open),role:"dialog",id:b.contentId,...T,...E,ref:t,style:{...E.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)"}})})})}),lT="PopoverClose",fk=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Ti(lT,n);return x.jsx(At.button,{type:"button",...i,ref:t,onClick:Ht(e.onClick,()=>s.onOpenChange(!1))})});fk.displayName=lT;var hk="PopoverArrow",pk=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Zs(n);return x.jsx(Z3,{...s,...i,ref:t})});pk.displayName=hk;function cT(e){return e?"open":"closed"}var dT=_h,fT=Ch,hT=Sh;function Fg(e){const t=[],n=String(e||"");let i=n.indexOf(","),s=0,a=!1;for(;!a;){i===-1&&(i=n.length,a=!0);const l=n.slice(s,i).trim();(l||!a)&&t.push(l),s=i+1,i=n.indexOf(",",s)}return t}function pT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ek={};function Bg(e,t){return(Ek.jsx?gk:mk).test(e)}const yk=/[ \t\n\f\r]/g;function Tk(e){return typeof e=="object"?e.type==="text"?Ug(e.value):!1:Ug(e)}function Ug(e){return e.replace(yk,"")===""}let Js=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};Js.prototype.normal={};Js.prototype.property={};Js.prototype.space=void 0;function mT(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Js(n,i,t)}function Ws(e){return e.toLowerCase()}let Xt=class{constructor(t,n){this.attribute=n,this.property=t}};Xt.prototype.attribute="";Xt.prototype.booleanish=!1;Xt.prototype.boolean=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.defined=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.number=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.property="";Xt.prototype.spaceSeparated=!1;Xt.prototype.space=void 0;let bk=0;const De=bi(),dt=bi(),Nf=bi(),ce=bi(),Ke=bi(),oo=bi(),rn=bi();function bi(){return 2**++bk}const If=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:dt,commaOrSpaceSeparated:rn,commaSeparated:oo,number:ce,overloadedBoolean:Nf,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Vd=Object.keys(If);let wh=class extends Xt{constructor(t,n,i,s){let a=-1;if(super(t,n),Hg(this,"space",s),typeof i=="number")for(;++a<Vd.length;){const l=Vd[a];Hg(this,Vd[a],(i&If[l])===If[l])}}};wh.prototype.defined=!0;function Hg(e,t,n){n&&(e[t]=n)}function vo(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const a=new wh(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Ws(i)]=i,n[Ws(a.attribute)]=i}return new Js(t,n,e.space)}const gT=vo({properties:{ariaActiveDescendant:null,ariaAtomic:dt,ariaAutoComplete:null,ariaBusy:dt,ariaChecked:dt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:dt,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:dt,ariaFlowTo:Ke,ariaGrabbed:dt,ariaHasPopup:null,ariaHidden:dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ce,ariaLive:null,ariaModal:dt,ariaMultiLine:dt,ariaMultiSelectable:dt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:dt,ariaReadOnly:dt,ariaRelevant:null,ariaRequired:dt,ariaRoleDescription:Ke,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:dt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ET(e,t){return t in e?e[t]:t}function yT(e,t){return ET(e,t.toLowerCase())}const xk=vo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oo,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:Ke,autoFocus:De,autoPlay:De,blocking:Ke,capture:null,charSet:null,checked:De,cite:null,className:Ke,cols:ce,colSpan:null,content:null,contentEditable:dt,controls:De,controlsList:Ke,coords:ce|oo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Nf,draggable:dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:Ke,height:ce,hidden:Nf,high:ce,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:De,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:ce,pattern:null,ping:Ke,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:Ke,required:De,reversed:De,rows:ce,rowSpan:ce,sandbox:Ke,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:dt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:dt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:yT}),vk=vo({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:rn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Ke,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:oo,g2:oo,glyphName:oo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,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:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rn,rev:rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rn,requiredFeatures:rn,requiredFonts:rn,requiredFormats:rn,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ET}),TT=vo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bT=vo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yT}),xT=vo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_k={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"},Ck=/[A-Z]/g,jg=/-[a-z]/g,Sk=/^data[-\w.:]+$/i;function Ah(e,t){const n=Ws(t);let i=t,s=Xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Sk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(jg,Ak);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!jg.test(a)){let l=a.replace(Ck,wk);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}s=wh}return new s(i,t)}function wk(e){return"-"+e.toLowerCase()}function Ak(e){return e.charAt(1).toUpperCase()}const Sl=mT([gT,xk,TT,bT,xT],"html"),_o=mT([gT,vk,TT,bT,xT],"svg");function zg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vT(e){return e.join(" ").trim()}var Ji={},Yd,Wg;function kk(){if(Wg)return Yd;Wg=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,f=`
|
|
69
|
+
`,p="/",g="*",E="",b="comment",T="declaration";function w(k,S){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];S=S||{};var O=1,I=1;function F(ee){var X=ee.match(t);X&&(O+=X.length);var ue=ee.lastIndexOf(f);I=~ue?ee.length-ue:I+ee.length}function z(){var ee={line:O,column:I};return function(X){return X.position=new B(ee),le(),X}}function B(ee){this.start=ee,this.end={line:O,column:I},this.source=S.source}B.prototype.content=k;function W(ee){var X=new Error(S.source+":"+O+":"+I+": "+ee);if(X.reason=ee,X.filename=S.source,X.line=O,X.column=I,X.source=k,!S.silent)throw X}function V(ee){var X=ee.exec(k);if(X){var ue=X[0];return F(ue),k=k.slice(ue.length),X}}function le(){V(n)}function ge(ee){var X;for(ee=ee||[];X=J();)X!==!1&&ee.push(X);return ee}function J(){var ee=z();if(!(p!=k.charAt(0)||g!=k.charAt(1))){for(var X=2;E!=k.charAt(X)&&(g!=k.charAt(X)||p!=k.charAt(X+1));)++X;if(X+=2,E===k.charAt(X-1))return W("End of comment missing");var ue=k.slice(2,X-2);return I+=2,F(ue),k=k.slice(X),I+=2,ee({type:b,comment:ue})}}function ne(){var ee=z(),X=V(i);if(X){if(J(),!V(s))return W("property missing ':'");var ue=V(a),fe=ee({type:T,property:C(X[0].replace(e,E)),value:ue?C(ue[0].replace(e,E)):E});return V(l),fe}}function oe(){var ee=[];ge(ee);for(var X;X=ne();)X!==!1&&(ee.push(X),ge(ee));return ee}return le(),oe()}function C(k){return k?k.replace(c,E):E}return Yd=w,Yd}var Vg;function Nk(){if(Vg)return Ji;Vg=1;var e=Ji&&Ji.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=n;const t=e(kk());function n(i,s){let a=null;if(!i||typeof i!="string")return a;const l=(0,t.default)(i),c=typeof s=="function";return l.forEach(f=>{if(f.type!=="declaration")return;const{property:p,value:g}=f;c?s(p,g,f):g&&(a=a||{},a[p]=g)}),a}return Ji}var Es={},Yg;function Ik(){if(Yg)return Es;Yg=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(p){return!p||n.test(p)||e.test(p)},l=function(p,g){return g.toUpperCase()},c=function(p,g){return"".concat(g,"-")},f=function(p,g){return g===void 0&&(g={}),a(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(s,c):p=p.replace(i,c),p.replace(t,l))};return Es.camelCase=f,Es}var ys,$g;function Ok(){if($g)return ys;$g=1;var e=ys&&ys.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Nk()),n=Ik();function i(s,a){var l={};return!s||typeof s!="string"||(0,t.default)(s,function(c,f){c&&f&&(l[(0,n.camelCase)(c,a)]=f)}),l}return i.default=i,ys=i,ys}var Rk=Ok();const Lk=il(Rk),wl=_T("end"),Kn=_T("start");function _T(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Pk(e){const t=Kn(e),n=wl(e);if(t&&n)return{start:t,end:n}}function Ns(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qg(e.position):"start"in e||"end"in e?qg(e):"line"in e||"column"in e?Of(e):""}function Of(e){return Gg(e&&e.line)+":"+Gg(e&&e.column)}function qg(e){return Of(e&&e.start)+"-"+Of(e&&e.end)}function Gg(e){return e&&typeof e=="number"?e:1}class Rt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",a={},l=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?s=t:!a.cause&&t&&(l=!0,s=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?a.ruleId=i:(a.source=i.slice(0,f),a.ruleId=i.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const c=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=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Ns(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=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rt.prototype.file="";Rt.prototype.name="";Rt.prototype.reason="";Rt.prototype.message="";Rt.prototype.stack="";Rt.prototype.column=void 0;Rt.prototype.line=void 0;Rt.prototype.ancestors=void 0;Rt.prototype.cause=void 0;Rt.prototype.fatal=void 0;Rt.prototype.place=void 0;Rt.prototype.ruleId=void 0;Rt.prototype.source=void 0;const kh={}.hasOwnProperty,Dk=new Map,Mk=/[A-Z]/g,Fk=new Set(["table","tbody","thead","tfoot","tr"]),Bk=new Set(["td","th"]),CT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Uk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=qk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=$k(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_o:Sl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ST(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function ST(e,t,n){if(t.type==="element")return Hk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return jk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Wk(e,t,n);if(t.type==="mdxjsEsm")return zk(e,t);if(t.type==="root")return Vk(e,t,n);if(t.type==="text")return Yk(e,t)}function Hk(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=_o,e.schema=s),e.ancestors.push(t);const a=AT(e,t.tagName,!1),l=Gk(e,t);let c=Ih(e,t);return Fk.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!Tk(f):!0})),wT(e,l,a,t),Nh(l,c),e.ancestors.pop(),e.schema=i,e.create(t,a,l,n)}function jk(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Vs(e,t.position)}function zk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vs(e,t.position)}function Wk(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=_o,e.schema=s),e.ancestors.push(t);const a=t.name===null?e.Fragment:AT(e,t.name,!0),l=Qk(e,t),c=Ih(e,t);return wT(e,l,a,t),Nh(l,c),e.ancestors.pop(),e.schema=i,e.create(t,a,l,n)}function Vk(e,t,n){const i={};return Nh(i,Ih(e,t)),e.create(t,e.Fragment,i,n)}function Yk(e,t){return t.value}function wT(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Nh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $k(e,t,n){return i;function i(s,a,l,c){const p=Array.isArray(l.children)?n:t;return c?p(a,l,c):p(a,l)}}function qk(e,t){return n;function n(i,s,a,l){const c=Array.isArray(a.children),f=Kn(i);return t(s,a,l,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function Gk(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&kh.call(t.properties,s)){const a=Kk(e,s,t.properties[s]);if(a){const[l,c]=a;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&Bk.has(t.tagName)?i=c:n[l]=c}}if(i){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Qk(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const l=a.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Vs(e,t.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else Vs(e,t.position);else a=i.value===null?!0:i.value;n[s]=a}return n}function Ih(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Dk;for(;++i<t.children.length;){const a=t.children[i];let l;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=s.get(f)||0;l=f+"-"+p,s.set(f,p+1)}}const c=ST(e,a,l);c!==void 0&&n.push(c)}return n}function Kk(e,t,n){const i=Ah(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?pT(n):vT(n)),i.property==="style"){let s=typeof n=="object"?n:Xk(e,String(n));return e.stylePropertyNameCase==="css"&&(s=Zk(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?_k[i.property]||i.property:i.attribute,n]}}function Xk(e,t){try{return Lk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Rt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=CT+"#cannot-parse-style-attribute",s}}function AT(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let a=-1,l;for(;++a<s.length;){const c=Bg(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=l}else i=Bg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return kh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);Vs(e)}function Vs(e,t){const n=new Rt("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=CT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Zk(e){const t={};let n;for(n in e)kh.call(e,n)&&(t[Jk(n)]=e[n]);return t}function Jk(e){let t=e.replace(Mk,eN);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eN(e){return"-"+e.toLowerCase()}const $d={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"]},tN={};function nN(e,t){const n=tN,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return kT(e,i,s)}function kT(e,t,n){if(rN(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qg(e.children,t,n)}return Array.isArray(e)?Qg(e,t,n):""}function Qg(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=kT(e[s],t,n);return i.join("")}function rN(e){return!!(e&&typeof e=="object")}const Kg=document.createElement("i");function Oh(e){const t="&"+e+";";Kg.innerHTML=t;const n=Kg.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Gn(e,t,n,i){const s=e.length;let a=0,l;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);a<i.length;)l=i.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(Gn(e,e.length,0,t),e):t}const Xg={}.hasOwnProperty;function iN(e){const t={};let n=-1;for(;++n<e.length;)oN(t,e[n]);return t}function oN(e,t){let n;for(n in t){const s=(Xg.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let l;if(a)for(l in a){Xg.call(s,l)||(s[l]=[]);const c=a[l];sN(s[l],Array.isArray(c)?c:c?[c]:[])}}}function sN(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Gn(e,0,0,i)}function NT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function so(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vn=qr(/[A-Za-z]/),an=qr(/[\dA-Za-z]/),aN=qr(/[#-'*+\--9=?A-Z^-~]/);function Rf(e){return e!==null&&(e<32||e===127)}const Lf=qr(/\d/),uN=qr(/[\dA-Fa-f]/),lN=qr(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function Kt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}const cN=qr(new RegExp("\\p{P}|\\p{S}","u")),dN=qr(/\s/);function qr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Co(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const a=e.charCodeAt(n);let l="";if(a===37&&an(e.charCodeAt(n+1))&&an(e.charCodeAt(n+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(l=String.fromCharCode(a,c),s=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+s+1,l=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Ze(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(f){return Ye(f)?(e.enter(n),c(f)):t(f)}function c(f){return Ye(f)&&a++<s?(e.consume(f),c):(e.exit(n),t(f))}}const fN={tokenize:hN};function hN(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ze(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),a(c)}function a(c){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Re(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),l)}}const pN={tokenize:mN},Zg={tokenize:gN};function mN(e){const t=this,n=[];let i=0,s,a,l;return c;function c(I){if(i<n.length){const F=n[i];return t.containerState=F[1],e.attempt(F[0].continuation,f,p)(I)}return p(I)}function f(I){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&O();const F=t.events.length;let z=F,B;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){B=t.events[z][1].end;break}S(i);let W=F;for(;W<t.events.length;)t.events[W][1].end={...B},W++;return Gn(t.events,z+1,0,t.events.slice(F)),t.events.length=W,p(I)}return c(I)}function p(I){if(i===n.length){if(!s)return b(I);if(s.currentConstruct&&s.currentConstruct.concrete)return w(I);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zg,g,E)(I)}function g(I){return s&&O(),S(i),b(I)}function E(I){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,w(I)}function b(I){return t.containerState={},e.attempt(Zg,T,w)(I)}function T(I){return i++,n.push([t.currentConstruct,t.containerState]),b(I)}function w(I){if(I===null){s&&O(),S(0),e.consume(I);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),C(I)}function C(I){if(I===null){k(e.exit("chunkFlow"),!0),S(0),e.consume(I);return}return Re(I)?(e.consume(I),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(I),C)}function k(I,F){const z=t.sliceStream(I);if(F&&z.push(null),I.previous=a,a&&(a.next=I),a=I,s.defineSkip(I.start),s.write(z),t.parser.lazy[I.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<l&&(!s.events[B][1].end||s.events[B][1].end.offset>l))return;const W=t.events.length;let V=W,le,ge;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(le){ge=t.events[V][1].end;break}le=!0}for(S(i),B=W;B<t.events.length;)t.events[B][1].end={...ge},B++;Gn(t.events,V+1,0,t.events.slice(W)),t.events.length=B}}function S(I){let F=n.length;for(;F-- >I;){const z=n[F];t.containerState=z[1],z[0].exit.call(t,e)}n.length=I}function O(){s.write([null]),a=void 0,s=void 0,t.containerState._closeFlow=void 0}}function gN(e,t,n){return Ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jg(e){if(e===null||Kt(e)||dN(e))return 1;if(cN(e))return 2}function Rh(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const a=e[s].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const Pf={name:"attention",resolveAll:EN,tokenize:yN};function EN(e,t){let n=-1,i,s,a,l,c,f,p,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const E={...e[i][1].end},b={...e[n][1].start};e1(E,-f),e1(b,f),l={type:f>1?"strongSequence":"emphasisSequence",start:E,end:{...e[i][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},a={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[i][1].end={...l.start},e[n][1].start={...c.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=yn(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=yn(p,[["enter",s,t],["enter",l,t],["exit",l,t],["enter",a,t]]),p=yn(p,Rh(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),p=yn(p,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,p=yn(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,Gn(e,i-1,n-i+3,p),n=i+p.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function yN(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Jg(i);let a;return l;function l(f){return a=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===a)return e.consume(f),c;const p=e.exit("attentionSequence"),g=Jg(f),E=!g||g===2&&s||n.includes(f),b=!s||s===2&&g||n.includes(i);return p._open=!!(a===42?E:E&&(s||!b)),p._close=!!(a===42?b:b&&(g||!E)),t(f)}}function e1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const TN={name:"autolink",tokenize:bN};function bN(e,t,n){let i=0;return s;function s(T){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(T){return Vn(T)?(e.consume(T),l):T===64?n(T):p(T)}function l(T){return T===43||T===45||T===46||an(T)?(i=1,c(T)):p(T)}function c(T){return T===58?(e.consume(T),i=0,f):(T===43||T===45||T===46||an(T))&&i++<32?(e.consume(T),c):(i=0,p(T))}function f(T){return T===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):T===null||T===32||T===60||Rf(T)?n(T):(e.consume(T),f)}function p(T){return T===64?(e.consume(T),g):aN(T)?(e.consume(T),p):n(T)}function g(T){return an(T)?E(T):n(T)}function E(T){return T===46?(e.consume(T),i=0,g):T===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):b(T)}function b(T){if((T===45||an(T))&&i++<63){const w=T===45?b:E;return e.consume(T),w}return n(T)}}const Al={partial:!0,tokenize:xN};function xN(e,t,n){return i;function i(a){return Ye(a)?Ze(e,s,"linePrefix")(a):s(a)}function s(a){return a===null||Re(a)?t(a):n(a)}}const IT={continuation:{tokenize:_N},exit:CN,name:"blockQuote",tokenize:vN};function vN(e,t,n){const i=this;return s;function s(l){if(l===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return n(l)}function a(l){return Ye(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function _N(e,t,n){const i=this;return s;function s(l){return Ye(l)?Ze(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(IT,t,n)(l)}}function CN(e){e.exit("blockQuote")}const OT={name:"characterEscape",tokenize:SN};function SN(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),s}function s(a){return lN(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const RT={name:"characterReference",tokenize:wN};function wN(e,t,n){const i=this;let s=0,a,l;return c;function c(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),f}function f(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,l=an,g(E))}function p(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=uN,g):(e.enter("characterReferenceValue"),a=7,l=Lf,g(E))}function g(E){if(E===59&&s){const b=e.exit("characterReferenceValue");return l===an&&!Oh(i.sliceSerialize(b))?n(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(E)&&s++<a?(e.consume(E),g):n(E)}}const t1={partial:!0,tokenize:kN},n1={concrete:!0,name:"codeFenced",tokenize:AN};function AN(e,t,n){const i=this,s={partial:!0,tokenize:z};let a=0,l=0,c;return f;function f(B){return p(B)}function p(B){const W=i.events[i.events.length-1];return a=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,c=B,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(B)}function g(B){return B===c?(l++,e.consume(B),g):l<3?n(B):(e.exit("codeFencedFenceSequence"),Ye(B)?Ze(e,E,"whitespace")(B):E(B))}function E(B){return B===null||Re(B)?(e.exit("codeFencedFence"),i.interrupt?t(B):e.check(t1,C,F)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===null||Re(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(B)):Ye(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ze(e,T,"whitespace")(B)):B===96&&B===c?n(B):(e.consume(B),b)}function T(B){return B===null||Re(B)?E(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(B))}function w(B){return B===null||Re(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(B)):B===96&&B===c?n(B):(e.consume(B),w)}function C(B){return e.attempt(s,F,k)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),S}function S(B){return a>0&&Ye(B)?Ze(e,O,"linePrefix",a+1)(B):O(B)}function O(B){return B===null||Re(B)?e.check(t1,C,F)(B):(e.enter("codeFlowValue"),I(B))}function I(B){return B===null||Re(B)?(e.exit("codeFlowValue"),O(B)):(e.consume(B),I)}function F(B){return e.exit("codeFenced"),t(B)}function z(B,W,V){let le=0;return ge;function ge(X){return B.enter("lineEnding"),B.consume(X),B.exit("lineEnding"),J}function J(X){return B.enter("codeFencedFence"),Ye(X)?Ze(B,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):ne(X)}function ne(X){return X===c?(B.enter("codeFencedFenceSequence"),oe(X)):V(X)}function oe(X){return X===c?(le++,B.consume(X),oe):le>=l?(B.exit("codeFencedFenceSequence"),Ye(X)?Ze(B,ee,"whitespace")(X):ee(X)):V(X)}function ee(X){return X===null||Re(X)?(B.exit("codeFencedFence"),W(X)):V(X)}}}function kN(e,t,n){const i=this;return s;function s(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const qd={name:"codeIndented",tokenize:IN},NN={partial:!0,tokenize:ON};function IN(e,t,n){const i=this;return s;function s(p){return e.enter("codeIndented"),Ze(e,a,"linePrefix",5)(p)}function a(p){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?l(p):n(p)}function l(p){return p===null?f(p):Re(p)?e.attempt(NN,l,f)(p):(e.enter("codeFlowValue"),c(p))}function c(p){return p===null||Re(p)?(e.exit("codeFlowValue"),l(p)):(e.consume(p),c)}function f(p){return e.exit("codeIndented"),t(p)}}function ON(e,t,n){const i=this;return s;function s(l){return i.parser.lazy[i.now().line]?n(l):Re(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):Ze(e,a,"linePrefix",5)(l)}function a(l){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Re(l)?s(l):n(l)}}const RN={name:"codeText",previous:PN,resolve:LN,tokenize:DN};function LN(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function PN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DN(e,t,n){let i=0,s,a;return l;function l(E){return e.enter("codeText"),e.enter("codeTextSequence"),c(E)}function c(E){return E===96?(e.consume(E),i++,c):(e.exit("codeTextSequence"),f(E))}function f(E){return E===null?n(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),f):E===96?(a=e.enter("codeTextSequence"),s=0,g(E)):Re(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(E))}function p(E){return E===null||E===32||E===96||Re(E)?(e.exit("codeTextData"),f(E)):(e.consume(E),p)}function g(E){return E===96?(e.consume(E),s++,g):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(a.type="codeTextData",p(E))}}class MN{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Ts(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ts(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ts(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ts(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ts(this.left,n.reverse())}}}function Ts(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 LT(e){const t={};let n=-1,i,s,a,l,c,f,p;const g=new MN(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(i=g.get(n),n&&i[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,FN(g,n)),n=t[n],p=!0);else if(i[1]._container){for(a=n,s=void 0;a--;)if(l=g.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),l[1].type="lineEnding",s=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;s&&(i[1].end={...g.get(s)[1].start},c=g.slice(s,n),c.unshift(i),g.splice(s,n-s+1,c))}}return Gn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function FN(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const a=[];let l=n._tokenizer;l||(l=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,f=[],p={};let g,E,b=-1,T=n,w=0,C=0;const k=[C];for(;T;){for(;e.get(++s)[1]!==T;);a.push(s),T._tokenizer||(g=i.sliceStream(T),T.next||g.push(null),E&&l.defineSkip(T.start),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(g),T._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),E=T,T=T.next}for(T=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(C=b+1,k.push(C),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(l.events=[],T?(T._tokenizer=void 0,T.previous=void 0):k.pop(),b=k.length;b--;){const S=c.slice(k[b],k[b+1]),O=a.pop();f.push([O,O+S.length-1]),e.splice(O,2,S)}for(f.reverse(),b=-1;++b<f.length;)p[w+f[b][0]]=w+f[b][1],w+=f[b][1]-f[b][0]-1;return p}const BN={resolve:HN,tokenize:jN},UN={partial:!0,tokenize:zN};function HN(e){return LT(e),e}function jN(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Re(c)?e.check(UN,l,a)(c):(e.consume(c),s)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function zN(e,t,n){const i=this;return s;function s(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ze(e,a,"linePrefix")}function a(l){if(l===null||Re(l))return n(l);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function PT(e,t,n,i,s,a,l,c,f){const p=f||Number.POSITIVE_INFINITY;let g=0;return E;function E(S){return S===60?(e.enter(i),e.enter(s),e.enter(a),e.consume(S),e.exit(a),b):S===null||S===32||S===41||Rf(S)?n(S):(e.enter(i),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),C(S))}function b(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),T(S))}function T(S){return S===62?(e.exit("chunkString"),e.exit(c),b(S)):S===null||S===60||Re(S)?n(S):(e.consume(S),S===92?w:T)}function w(S){return S===60||S===62||S===92?(e.consume(S),T):T(S)}function C(S){return!g&&(S===null||S===41||Kt(S))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(i),t(S)):g<p&&S===40?(e.consume(S),g++,C):S===41?(e.consume(S),g--,C):S===null||S===32||S===40||Rf(S)?n(S):(e.consume(S),S===92?k:C)}function k(S){return S===40||S===41||S===92?(e.consume(S),C):C(S)}}function DT(e,t,n,i,s,a){const l=this;let c=0,f;return p;function p(T){return e.enter(i),e.enter(s),e.consume(T),e.exit(s),e.enter(a),g}function g(T){return c>999||T===null||T===91||T===93&&!f||T===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(T):T===93?(e.exit(a),e.enter(s),e.consume(T),e.exit(s),e.exit(i),t):Re(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),E(T))}function E(T){return T===null||T===91||T===93||Re(T)||c++>999?(e.exit("chunkString"),g(T)):(e.consume(T),f||(f=!Ye(T)),T===92?b:E)}function b(T){return T===91||T===92||T===93?(e.consume(T),c++,E):E(T)}}function MT(e,t,n,i,s,a){let l;return c;function c(b){return b===34||b===39||b===40?(e.enter(i),e.enter(s),e.consume(b),e.exit(s),l=b===40?41:b,f):n(b)}function f(b){return b===l?(e.enter(s),e.consume(b),e.exit(s),e.exit(i),t):(e.enter(a),p(b))}function p(b){return b===l?(e.exit(a),f(l)):b===null?n(b):Re(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===l||b===null||Re(b)?(e.exit("chunkString"),p(b)):(e.consume(b),b===92?E:g)}function E(b){return b===l||b===92?(e.consume(b),g):g(b)}}function Is(e,t){let n;return i;function i(s){return Re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ye(s)?Ze(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const WN={name:"definition",tokenize:YN},VN={partial:!0,tokenize:$N};function YN(e,t,n){const i=this;let s;return a;function a(T){return e.enter("definition"),l(T)}function l(T){return DT.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function c(T){return s=so(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),f):n(T)}function f(T){return Kt(T)?Is(e,p)(T):p(T)}function p(T){return PT(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function g(T){return e.attempt(VN,E,E)(T)}function E(T){return Ye(T)?Ze(e,b,"whitespace")(T):b(T)}function b(T){return T===null||Re(T)?(e.exit("definition"),i.parser.defined.push(s),t(T)):n(T)}}function $N(e,t,n){return i;function i(c){return Kt(c)?Is(e,s)(c):n(c)}function s(c){return MT(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Ye(c)?Ze(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Re(c)?t(c):n(c)}}const qN={name:"hardBreakEscape",tokenize:GN};function GN(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),s}function s(a){return Re(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const QN={name:"headingAtx",resolve:KN,tokenize:XN};function KN(e,t){let n=e.length-2,i=3,s,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Gn(e,i,n-i+1,[["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t]])),e}function XN(e,t,n){let i=0;return s;function s(g){return e.enter("atxHeading"),a(g)}function a(g){return e.enter("atxHeadingSequence"),l(g)}function l(g){return g===35&&i++<6?(e.consume(g),l):g===null||Kt(g)?(e.exit("atxHeadingSequence"),c(g)):n(g)}function c(g){return g===35?(e.enter("atxHeadingSequence"),f(g)):g===null||Re(g)?(e.exit("atxHeading"),t(g)):Ye(g)?Ze(e,c,"whitespace")(g):(e.enter("atxHeadingText"),p(g))}function f(g){return g===35?(e.consume(g),f):(e.exit("atxHeadingSequence"),c(g))}function p(g){return g===null||g===35||Kt(g)?(e.exit("atxHeadingText"),c(g)):(e.consume(g),p)}}const ZN=["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"],r1=["pre","script","style","textarea"],JN={concrete:!0,name:"htmlFlow",resolveTo:nI,tokenize:rI},eI={partial:!0,tokenize:oI},tI={partial:!0,tokenize:iI};function nI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rI(e,t,n){const i=this;let s,a,l,c,f;return p;function p(L){return g(L)}function g(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),E}function E(L){return L===33?(e.consume(L),b):L===47?(e.consume(L),a=!0,C):L===63?(e.consume(L),s=3,i.interrupt?t:N):Vn(L)?(e.consume(L),l=String.fromCharCode(L),k):n(L)}function b(L){return L===45?(e.consume(L),s=2,T):L===91?(e.consume(L),s=5,c=0,w):Vn(L)?(e.consume(L),s=4,i.interrupt?t:N):n(L)}function T(L){return L===45?(e.consume(L),i.interrupt?t:N):n(L)}function w(L){const Te="CDATA[";return L===Te.charCodeAt(c++)?(e.consume(L),c===Te.length?i.interrupt?t:ne:w):n(L)}function C(L){return Vn(L)?(e.consume(L),l=String.fromCharCode(L),k):n(L)}function k(L){if(L===null||L===47||L===62||Kt(L)){const Te=L===47,Ie=l.toLowerCase();return!Te&&!a&&r1.includes(Ie)?(s=1,i.interrupt?t(L):ne(L)):ZN.includes(l.toLowerCase())?(s=6,Te?(e.consume(L),S):i.interrupt?t(L):ne(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(L):a?O(L):I(L))}return L===45||an(L)?(e.consume(L),l+=String.fromCharCode(L),k):n(L)}function S(L){return L===62?(e.consume(L),i.interrupt?t:ne):n(L)}function O(L){return Ye(L)?(e.consume(L),O):ge(L)}function I(L){return L===47?(e.consume(L),ge):L===58||L===95||Vn(L)?(e.consume(L),F):Ye(L)?(e.consume(L),I):ge(L)}function F(L){return L===45||L===46||L===58||L===95||an(L)?(e.consume(L),F):z(L)}function z(L){return L===61?(e.consume(L),B):Ye(L)?(e.consume(L),z):I(L)}function B(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),f=L,W):Ye(L)?(e.consume(L),B):V(L)}function W(L){return L===f?(e.consume(L),f=null,le):L===null||Re(L)?n(L):(e.consume(L),W)}function V(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Kt(L)?z(L):(e.consume(L),V)}function le(L){return L===47||L===62||Ye(L)?I(L):n(L)}function ge(L){return L===62?(e.consume(L),J):n(L)}function J(L){return L===null||Re(L)?ne(L):Ye(L)?(e.consume(L),J):n(L)}function ne(L){return L===45&&s===2?(e.consume(L),ue):L===60&&s===1?(e.consume(L),fe):L===62&&s===4?(e.consume(L),H):L===63&&s===3?(e.consume(L),N):L===93&&s===5?(e.consume(L),pe):Re(L)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(eI,Z,oe)(L)):L===null||Re(L)?(e.exit("htmlFlowData"),oe(L)):(e.consume(L),ne)}function oe(L){return e.check(tI,ee,Z)(L)}function ee(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),X}function X(L){return L===null||Re(L)?oe(L):(e.enter("htmlFlowData"),ne(L))}function ue(L){return L===45?(e.consume(L),N):ne(L)}function fe(L){return L===47?(e.consume(L),l="",j):ne(L)}function j(L){if(L===62){const Te=l.toLowerCase();return r1.includes(Te)?(e.consume(L),H):ne(L)}return Vn(L)&&l.length<8?(e.consume(L),l+=String.fromCharCode(L),j):ne(L)}function pe(L){return L===93?(e.consume(L),N):ne(L)}function N(L){return L===62?(e.consume(L),H):L===45&&s===2?(e.consume(L),N):ne(L)}function H(L){return L===null||Re(L)?(e.exit("htmlFlowData"),Z(L)):(e.consume(L),H)}function Z(L){return e.exit("htmlFlow"),t(L)}}function iI(e,t,n){const i=this;return s;function s(l){return Re(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):n(l)}function a(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function oI(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Al,t,n)}}const sI={name:"htmlText",tokenize:aI};function aI(e,t,n){const i=this;let s,a,l;return c;function c(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),p):N===47?(e.consume(N),z):N===63?(e.consume(N),I):Vn(N)?(e.consume(N),V):n(N)}function p(N){return N===45?(e.consume(N),g):N===91?(e.consume(N),a=0,w):Vn(N)?(e.consume(N),O):n(N)}function g(N){return N===45?(e.consume(N),T):n(N)}function E(N){return N===null?n(N):N===45?(e.consume(N),b):Re(N)?(l=E,fe(N)):(e.consume(N),E)}function b(N){return N===45?(e.consume(N),T):E(N)}function T(N){return N===62?ue(N):N===45?b(N):E(N)}function w(N){const H="CDATA[";return N===H.charCodeAt(a++)?(e.consume(N),a===H.length?C:w):n(N)}function C(N){return N===null?n(N):N===93?(e.consume(N),k):Re(N)?(l=C,fe(N)):(e.consume(N),C)}function k(N){return N===93?(e.consume(N),S):C(N)}function S(N){return N===62?ue(N):N===93?(e.consume(N),S):C(N)}function O(N){return N===null||N===62?ue(N):Re(N)?(l=O,fe(N)):(e.consume(N),O)}function I(N){return N===null?n(N):N===63?(e.consume(N),F):Re(N)?(l=I,fe(N)):(e.consume(N),I)}function F(N){return N===62?ue(N):I(N)}function z(N){return Vn(N)?(e.consume(N),B):n(N)}function B(N){return N===45||an(N)?(e.consume(N),B):W(N)}function W(N){return Re(N)?(l=W,fe(N)):Ye(N)?(e.consume(N),W):ue(N)}function V(N){return N===45||an(N)?(e.consume(N),V):N===47||N===62||Kt(N)?le(N):n(N)}function le(N){return N===47?(e.consume(N),ue):N===58||N===95||Vn(N)?(e.consume(N),ge):Re(N)?(l=le,fe(N)):Ye(N)?(e.consume(N),le):ue(N)}function ge(N){return N===45||N===46||N===58||N===95||an(N)?(e.consume(N),ge):J(N)}function J(N){return N===61?(e.consume(N),ne):Re(N)?(l=J,fe(N)):Ye(N)?(e.consume(N),J):le(N)}function ne(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),s=N,oe):Re(N)?(l=ne,fe(N)):Ye(N)?(e.consume(N),ne):(e.consume(N),ee)}function oe(N){return N===s?(e.consume(N),s=void 0,X):N===null?n(N):Re(N)?(l=oe,fe(N)):(e.consume(N),oe)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Kt(N)?le(N):(e.consume(N),ee)}function X(N){return N===47||N===62||Kt(N)?le(N):n(N)}function ue(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function fe(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),j}function j(N){return Ye(N)?Ze(e,pe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):pe(N)}function pe(N){return e.enter("htmlTextData"),l(N)}}const Lh={name:"labelEnd",resolveAll:dI,resolveTo:fI,tokenize:hI},uI={tokenize:pI},lI={tokenize:mI},cI={tokenize:gI};function dI(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&Gn(e,0,e.length,n),e}function fI(e,t){let n=e.length,i=0,s,a,l,c;for(;n--;)if(s=e[n][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(l=n);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},g={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",f,t],["enter",p,t]],c=yn(c,e.slice(a+1,a+i+3)),c=yn(c,[["enter",g,t]]),c=yn(c,Rh(t.parser.constructs.insideSpan.null,e.slice(a+i+4,l-3),t)),c=yn(c,[["exit",g,t],e[l-2],e[l-1],["exit",p,t]]),c=yn(c,e.slice(l+1)),c=yn(c,[["exit",f,t]]),Gn(e,a,e.length,c),e}function hI(e,t,n){const i=this;let s=i.events.length,a,l;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){a=i.events[s][1];break}return c;function c(b){return a?a._inactive?E(b):(l=i.parser.defined.includes(so(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),f):n(b)}function f(b){return b===40?e.attempt(uI,g,l?g:E)(b):b===91?e.attempt(lI,g,l?p:E)(b):l?g(b):E(b)}function p(b){return e.attempt(cI,g,E)(b)}function g(b){return t(b)}function E(b){return a._balanced=!0,n(b)}}function pI(e,t,n){return i;function i(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),s}function s(E){return Kt(E)?Is(e,a)(E):a(E)}function a(E){return E===41?g(E):PT(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function l(E){return Kt(E)?Is(e,f)(E):g(E)}function c(E){return n(E)}function f(E){return E===34||E===39||E===40?MT(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):g(E)}function p(E){return Kt(E)?Is(e,g)(E):g(E)}function g(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):n(E)}}function mI(e,t,n){const i=this;return s;function s(c){return DT.call(i,e,a,l,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(so(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function gI(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),s}function s(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const EI={name:"labelStartImage",resolveAll:Lh.resolveAll,tokenize:yI};function yI(e,t,n){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const TI={name:"labelStartLink",resolveAll:Lh.resolveAll,tokenize:bI};function bI(e,t,n){const i=this;return s;function s(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Gd={name:"lineEnding",tokenize:xI};function xI(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ze(e,t,"linePrefix")}}const Fu={name:"thematicBreak",tokenize:vI};function vI(e,t,n){let i=0,s;return a;function a(p){return e.enter("thematicBreak"),l(p)}function l(p){return s=p,c(p)}function c(p){return p===s?(e.enter("thematicBreakSequence"),f(p)):i>=3&&(p===null||Re(p))?(e.exit("thematicBreak"),t(p)):n(p)}function f(p){return p===s?(e.consume(p),i++,f):(e.exit("thematicBreakSequence"),Ye(p)?Ze(e,c,"whitespace")(p):c(p))}}const Qt={continuation:{tokenize:wI},exit:kI,name:"list",tokenize:SI},_I={partial:!0,tokenize:NI},CI={partial:!0,tokenize:AI};function SI(e,t,n){const i=this,s=i.events[i.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return c;function c(T){const w=i.containerState.type||(T===42||T===43||T===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||T===i.containerState.marker:Lf(T)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),T===42||T===45?e.check(Fu,n,p)(T):p(T);if(!i.interrupt||T===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(T)}return n(T)}function f(T){return Lf(T)&&++l<10?(e.consume(T),f):(!i.interrupt||l<2)&&(i.containerState.marker?T===i.containerState.marker:T===41||T===46)?(e.exit("listItemValue"),p(T)):n(T)}function p(T){return e.enter("listItemMarker"),e.consume(T),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||T,e.check(Al,i.interrupt?n:g,e.attempt(_I,b,E))}function g(T){return i.containerState.initialBlankLine=!0,a++,b(T)}function E(T){return Ye(T)?(e.enter("listItemPrefixWhitespace"),e.consume(T),e.exit("listItemPrefixWhitespace"),b):n(T)}function b(T){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(T)}}function wI(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Al,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ze(e,t,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!Ye(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(CI,t,l)(c))}function l(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ze(e,e.attempt(Qt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function AI(e,t,n){const i=this;return Ze(e,s,"listItemIndent",i.containerState.size+1);function s(a){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(a):n(a)}}function kI(e){e.exit(this.containerState.type)}function NI(e,t,n){const i=this;return Ze(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const l=i.events[i.events.length-1];return!Ye(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const i1={name:"setextUnderline",resolveTo:II,tokenize:OI};function II(e,t){let n=e.length,i,s,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",a?(e.splice(s,0,["enter",l,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function OI(e,t,n){const i=this;let s;return a;function a(p){let g=i.events.length,E;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){E=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),s=p,l(p)):n(p)}function l(p){return e.enter("setextHeadingLineSequence"),c(p)}function c(p){return p===s?(e.consume(p),c):(e.exit("setextHeadingLineSequence"),Ye(p)?Ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||Re(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const RI={tokenize:LI};function LI(e){const t=this,n=e.attempt(Al,i,e.attempt(this.parser.constructs.flowInitial,s,Ze(e,e.attempt(this.parser.constructs.flow,s,e.attempt(BN,s)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const PI={resolveAll:BT()},DI=FT("string"),MI=FT("text");function FT(e){return{resolveAll:BT(e==="text"?FI:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],a=n.attempt(s,l,c);return l;function l(g){return p(g)?a(g):c(g)}function c(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),f}function f(g){return p(g)?(n.exit("data"),a(g)):(n.consume(g),f)}function p(g){if(g===null)return!0;const E=s[g];let b=-1;if(E)for(;++b<E.length;){const T=E[b];if(!T.previous||T.previous.call(i,i.previous))return!0}return!1}}}function BT(e){return t;function t(n,i){let s=-1,a;for(;++s<=n.length;)a===void 0?n[s]&&n[s][1].type==="data"&&(a=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==a+2&&(n[a][1].end=n[s-1][1].end,n.splice(a+2,s-a-2),s=a+2),a=void 0);return e?e(n,i):n}}function FI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let a=s.length,l=-1,c=0,f;for(;a--;){const p=s[a];if(typeof p=="string"){for(l=p.length;p.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(p===-2)f=!0,c++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const p={type:n===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:i.start._bufferIndex+l,_index:i.start._index+a,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const BI={42:Qt,43:Qt,45:Qt,48:Qt,49:Qt,50:Qt,51:Qt,52:Qt,53:Qt,54:Qt,55:Qt,56:Qt,57:Qt,62:IT},UI={91:WN},HI={[-2]:qd,[-1]:qd,32:qd},jI={35:QN,42:Fu,45:[i1,Fu],60:JN,61:i1,95:Fu,96:n1,126:n1},zI={38:RT,92:OT},WI={[-5]:Gd,[-4]:Gd,[-3]:Gd,33:EI,38:RT,42:Pf,60:[TN,sI],91:TI,92:[qN,OT],93:Lh,95:Pf,96:RN},VI={null:[Pf,PI]},YI={null:[42,95]},$I={null:[]},qI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:YI,contentInitial:UI,disable:$I,document:BI,flow:jI,flowInitial:HI,insideSpan:VI,string:zI,text:WI},Symbol.toStringTag,{value:"Module"}));function GI(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},a=[];let l=[],c=[];const f={attempt:W(z),check:W(B),consume:O,enter:I,exit:F,interrupt:W(B,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:b,sliceStream:T,write:E};let g=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function E(J){return l=yn(l,J),k(),l[l.length-1]!==null?[]:(V(t,0),p.events=Rh(a,p.events,p),p.events)}function b(J,ne){return KI(T(J),ne)}function T(J){return QI(l,J)}function w(){const{_bufferIndex:J,_index:ne,line:oe,column:ee,offset:X}=i;return{_bufferIndex:J,_index:ne,line:oe,column:ee,offset:X}}function C(J){s[J.line]=J.column,ge()}function k(){let J;for(;i._index<l.length;){const ne=l[i._index];if(typeof ne=="string")for(J=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===J&&i._bufferIndex<ne.length;)S(ne.charCodeAt(i._bufferIndex));else S(ne)}}function S(J){g=g(J)}function O(J){Re(J)?(i.line++,i.column=1,i.offset+=J===-3?2:1,ge()):J!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=J}function I(J,ne){const oe=ne||{};return oe.type=J,oe.start=w(),p.events.push(["enter",oe,p]),c.push(oe),oe}function F(J){const ne=c.pop();return ne.end=w(),p.events.push(["exit",ne,p]),ne}function z(J,ne){V(J,ne.from)}function B(J,ne){ne.restore()}function W(J,ne){return oe;function oe(ee,X,ue){let fe,j,pe,N;return Array.isArray(ee)?Z(ee):"tokenize"in ee?Z([ee]):H(ee);function H(we){return Se;function Se(Le){const Fe=Le!==null&&we[Le],Ge=Le!==null&&we.null,Pt=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return Z(Pt)(Le)}}function Z(we){return fe=we,j=0,we.length===0?ue:L(we[j])}function L(we){return Se;function Se(Le){return N=le(),pe=we,we.partial||(p.currentConstruct=we),we.name&&p.parser.constructs.disable.null.includes(we.name)?Ie():we.tokenize.call(ne?Object.assign(Object.create(p),ne):p,f,Te,Ie)(Le)}}function Te(we){return J(pe,N),X}function Ie(we){return N.restore(),++j<fe.length?L(fe[j]):ue}}}function V(J,ne){J.resolveAll&&!a.includes(J)&&a.push(J),J.resolve&&Gn(p.events,ne,p.events.length-ne,J.resolve(p.events.slice(ne),p)),J.resolveTo&&(p.events=J.resolveTo(p.events,p))}function le(){const J=w(),ne=p.previous,oe=p.currentConstruct,ee=p.events.length,X=Array.from(c);return{from:ee,restore:ue};function ue(){i=J,p.previous=ne,p.currentConstruct=oe,p.events.length=ee,c=X,ge()}}function ge(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function QI(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;let l;if(n===s)l=[e[n].slice(i,a)];else{if(l=e.slice(n,s),i>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(i):l.shift()}a>0&&l.push(e[s].slice(0,a))}return l}function KI(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const a=e[n];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
|
|
70
|
+
`;break}case-3:{l=`\r
|
|
71
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&s)continue;l=" ";break}default:l=String.fromCharCode(a)}s=a===-2,i.push(l)}return i.join("")}function XI(e){const i={constructs:iN([qI,...(e||{}).extensions||[]]),content:s(fN),defined:[],document:s(pN),flow:s(RI),lazy:{},string:s(DI),text:s(MI)};return i;function s(a){return l;function l(c){return GI(i,a,c)}}}function ZI(e){for(;!LT(e););return e}const o1=/[\0\t\n\r]/g;function JI(){let e=1,t="",n=!0,i;return s;function s(a,l,c){const f=[];let p,g,E,b,T;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),E=0,t="",n&&(a.charCodeAt(0)===65279&&E++,n=void 0);E<a.length;){if(o1.lastIndex=E,p=o1.exec(a),b=p&&p.index!==void 0?p.index:a.length,T=a.charCodeAt(b),!p){t=a.slice(E);break}if(T===10&&E===b&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),E<b&&(f.push(a.slice(E,b)),e+=b-E),T){case 0:{f.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,f.push(-2);e++<g;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}E=b+1}return c&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const e6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t6(e){return e.replace(e6,n6)}function n6(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),a=s===120||s===88;return NT(n.slice(a?2:1),a?16:10)}return Oh(n)||e}const UT={}.hasOwnProperty;function r6(e,t,n){return typeof t!="string"&&(n=t,t=void 0),i6(n)(ZI(XI(n).document().write(JI()(e,t,!0))))}function i6(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ci),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(Io),blockQuote:a(Ge),characterEscape:le,characterReference:le,codeFenced:a(Pt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Pt,l),codeText:a(xn,l),codeTextData:le,data:le,codeFlowValue:le,definition:a(vn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(No),hardBreakEscape:a(Oo),hardBreakTrailing:a(Oo),htmlFlow:a(_i,l),htmlFlowData:le,htmlText:a(_i,l),htmlTextData:le,image:a(oa),label:l,link:a(Ci),listItem:a(mr),listItemValue:b,listOrdered:a(pr,E),listUnordered:a(pr),paragraph:a(Ro),reference:L,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Io),strong:a(sa),thematicBreak:a(ua)},exit:{atxHeading:f(),atxHeadingSequence:z,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Le,blockQuote:f(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:we,characterReference:Se,codeFenced:f(k),codeFencedFence:C,codeFencedFenceInfo:T,codeFencedFenceMeta:w,codeFlowValue:ge,codeIndented:f(S),codeText:f(X),codeTextData:ge,data:ge,definition:f(),definitionDestinationString:F,definitionLabelString:O,definitionTitleString:I,emphasis:f(),hardBreakEscape:f(ne),hardBreakTrailing:f(ne),htmlFlow:f(oe),htmlFlowData:ge,htmlText:f(ee),htmlTextData:ge,image:f(fe),label:pe,labelText:j,lineEnding:J,link:f(ue),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Te,resourceDestinationString:N,resourceTitleString:H,resource:Z,setextHeading:f(V),setextHeadingLineSequence:W,setextHeadingText:B,strong:f(),thematicBreak:f()}};HT(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(K){let me={type:"root",children:[]};const Ne={stack:[me],tokenStack:[],config:t,enter:c,exit:p,buffer:l,resume:g,data:n},Be=[];let ze=-1;for(;++ze<K.length;)if(K[ze][1].type==="listOrdered"||K[ze][1].type==="listUnordered")if(K[ze][0]==="enter")Be.push(ze);else{const xt=Be.pop();ze=s(K,xt,ze)}for(ze=-1;++ze<K.length;){const xt=t[K[ze][0]];UT.call(xt,K[ze][1].type)&&xt[K[ze][1].type].call(Object.assign({sliceSerialize:K[ze][2].sliceSerialize},Ne),K[ze][1])}if(Ne.tokenStack.length>0){const xt=Ne.tokenStack[Ne.tokenStack.length-1];(xt[1]||s1).call(Ne,void 0,xt[0])}for(me.position={start:Fr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Fr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<t.transforms.length;)me=t.transforms[ze](me)||me;return me}function s(K,me,Ne){let Be=me-1,ze=-1,xt=!1,Xn,dn,gr,Gr;for(;++Be<=Ne;){const vt=K[Be];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?ze++:ze--,Gr=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(Xn&&!Gr&&!ze&&!gr&&(gr=Be),Gr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gr=void 0}if(!ze&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||ze===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(Xn){let Dn=Be;for(dn=void 0;Dn--;){const Zt=K[Dn];if(Zt[1].type==="lineEnding"||Zt[1].type==="lineEndingBlank"){if(Zt[0]==="exit")continue;dn&&(K[dn][1].type="lineEndingBlank",xt=!0),Zt[1].type="lineEnding",dn=Dn}else if(!(Zt[1].type==="linePrefix"||Zt[1].type==="blockQuotePrefix"||Zt[1].type==="blockQuotePrefixWhitespace"||Zt[1].type==="blockQuoteMarker"||Zt[1].type==="listItemIndent"))break}gr&&(!dn||gr<dn)&&(Xn._spread=!0),Xn.end=Object.assign({},dn?K[dn][1].start:vt[1].end),K.splice(dn||Be,0,["exit",Xn,vt[2]]),Be++,Ne++}if(vt[1].type==="listItemPrefix"){const Dn={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};Xn=Dn,K.splice(Be,0,["enter",Dn,vt[2]]),Be++,Ne++,gr=void 0,Gr=!0}}}return K[me][1]._spread=xt,Ne}function a(K,me){return Ne;function Ne(Be){c.call(this,K(Be),Be),me&&me.call(this,Be)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(K,me,Ne){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([me,Ne||void 0]),K.position={start:Fr(me.start),end:void 0}}function f(K){return me;function me(Ne){K&&K.call(this,Ne),p.call(this,Ne)}}function p(K,me){const Ne=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==K.type&&(me?me.call(this,K,Be[0]):(Be[1]||s1).call(this,K,Be[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ns({start:K.start,end:K.end})+"): it’s not open");Ne.position.end=Fr(K.end)}function g(){return nN(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function b(K){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function T(){const K=this.resume(),me=this.stack[this.stack.length-1];me.lang=K}function w(){const K=this.resume(),me=this.stack[this.stack.length-1];me.meta=K}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const K=this.resume(),me=this.stack[this.stack.length-1];me.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const K=this.resume(),me=this.stack[this.stack.length-1];me.value=K.replace(/(\r?\n|\r)$/g,"")}function O(K){const me=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=me,Ne.identifier=so(this.sliceSerialize(K)).toLowerCase()}function I(){const K=this.resume(),me=this.stack[this.stack.length-1];me.title=K}function F(){const K=this.resume(),me=this.stack[this.stack.length-1];me.url=K}function z(K){const me=this.stack[this.stack.length-1];if(!me.depth){const Ne=this.sliceSerialize(K).length;me.depth=Ne}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function W(K){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function le(K){const Ne=this.stack[this.stack.length-1].children;let Be=Ne[Ne.length-1];(!Be||Be.type!=="text")&&(Be=aa(),Be.position={start:Fr(K.start),end:void 0},Ne.push(Be)),this.stack.push(Be)}function ge(K){const me=this.stack.pop();me.value+=this.sliceSerialize(K),me.position.end=Fr(K.end)}function J(K){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=me.children[me.children.length-1];Ne.position.end=Fr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(le.call(this,K),ge.call(this,K))}function ne(){this.data.atHardBreak=!0}function oe(){const K=this.resume(),me=this.stack[this.stack.length-1];me.value=K}function ee(){const K=this.resume(),me=this.stack[this.stack.length-1];me.value=K}function X(){const K=this.resume(),me=this.stack[this.stack.length-1];me.value=K}function ue(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=me,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function fe(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=me,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function j(K){const me=this.sliceSerialize(K),Ne=this.stack[this.stack.length-2];Ne.label=t6(me),Ne.identifier=so(me).toLowerCase()}function pe(){const K=this.stack[this.stack.length-1],me=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const Be=K.children;Ne.children=Be}else Ne.alt=me}function N(){const K=this.resume(),me=this.stack[this.stack.length-1];me.url=K}function H(){const K=this.resume(),me=this.stack[this.stack.length-1];me.title=K}function Z(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function Te(K){const me=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=me,Ne.identifier=so(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function Ie(K){this.data.characterReferenceType=K.type}function we(K){const me=this.sliceSerialize(K),Ne=this.data.characterReferenceType;let Be;Ne?(Be=NT(me,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=Oh(me);const ze=this.stack[this.stack.length-1];ze.value+=Be}function Se(K){const me=this.stack.pop();me.position.end=Fr(K.end)}function Le(K){ge.call(this,K);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(K)}function Fe(K){ge.call(this,K);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(K)}function Ge(){return{type:"blockquote",children:[]}}function Pt(){return{type:"code",lang:null,meta:null,value:""}}function xn(){return{type:"inlineCode",value:""}}function vn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function No(){return{type:"emphasis",children:[]}}function Io(){return{type:"heading",depth:0,children:[]}}function Oo(){return{type:"break"}}function _i(){return{type:"html",value:""}}function oa(){return{type:"image",title:null,url:"",alt:null}}function Ci(){return{type:"link",title:null,url:"",children:[]}}function pr(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function mr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Ro(){return{type:"paragraph",children:[]}}function sa(){return{type:"strong",children:[]}}function aa(){return{type:"text",value:""}}function ua(){return{type:"thematicBreak"}}}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function HT(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?HT(e,i):o6(e,i)}}function o6(e,t){let n;for(n in t)if(UT.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function s1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ns({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ns({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ns({start:t.start,end:t.end})+") is still open")}function s6(e){const t=this;t.parser=n;function n(i){return r6(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function a6(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)}function u6(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
72
|
+
`}]}function l6(e,t){const n=t.value?t.value+`
|
|
73
|
+
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function c6(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d6(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f6(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Co(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let l,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),l=e.footnoteOrder.length):l=a+1,c+=1,e.footnoteCounts.set(i,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,p),e.applyData(t,p)}function h6(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p6(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jT(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const l=s[s.length-1];return l&&l.type==="text"?l.value+=i:s.push({type:"text",value:i}),s}function m6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return jT(e,t);const s={src:Co(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,a),e.applyData(t,a)}function g6(e,t){const n={src:Co(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function E6(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function y6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return jT(e,t);const s={href:Co(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function T6(e,t){const n={href:Co(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function b6(e,t,n){const i=e.all(t),s=n?x6(n):zT(t),a={},l=[];if(typeof t.checked=="boolean"){const g=i[0];let E;g&&g.type==="element"&&g.tagName==="p"?E=g:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const g=i[c];(s||c!==0||g.type!=="element"||g.tagName!=="p")&&l.push({type:"text",value:`
|
|
74
|
+
`}),g.type==="element"&&g.tagName==="p"&&!s?l.push(...g.children):l.push(g)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
75
|
+
`});const p={type:"element",tagName:"li",properties:a,children:l};return e.patch(t,p),e.applyData(t,p)}function x6(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=zT(n[i])}return t}function zT(e){const t=e.spread;return t??e.children.length>1}function v6(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const l=i[s];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function _6(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function C6(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function S6(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function w6(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],l),s.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Kn(t.children[1]),f=wl(t.children[t.children.length-1]);c&&f&&(l.position={start:c,end:f}),s.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)}function A6(e,t,n){const i=n?n.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let f=-1;const p=[];for(;++f<c;){const E=t.children[f],b={},T=l?l[f]:void 0;T&&(b.align=T);let w={type:"element",tagName:a,properties:b,children:[]};E&&(w.children=e.all(E),e.patch(E,w),w=e.applyData(E,w)),p.push(w)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,g),e.applyData(t,g)}function k6(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const a1=9,u1=32;function N6(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const a=[];for(;i;)a.push(l1(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return a.push(l1(t.slice(s),s>0,!1)),a.join("")}function l1(e,t,n){let i=0,s=e.length;if(t){let a=e.codePointAt(i);for(;a===a1||a===u1;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(s-1);for(;a===a1||a===u1;)s--,a=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function I6(e,t){const n={type:"text",value:N6(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function O6(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const R6={blockquote:a6,break:u6,code:l6,delete:c6,emphasis:d6,footnoteReference:f6,heading:h6,html:p6,imageReference:m6,image:g6,inlineCode:E6,linkReference:y6,link:T6,listItem:b6,list:v6,paragraph:_6,root:C6,strong:S6,table:w6,tableCell:k6,tableRow:A6,text:I6,thematicBreak:O6,toml:Nu,yaml:Nu,definition:Nu,footnoteDefinition:Nu};function Nu(){}const WT=-1,kl=0,Os=1,Zu=2,Ph=3,Dh=4,Mh=5,Fh=6,VT=7,YT=8,c1=typeof self=="object"?self:globalThis,L6=(e,t)=>{const n=(s,a)=>(e.set(a,s),s),i=s=>{if(e.has(s))return e.get(s);const[a,l]=t[s];switch(a){case kl:case WT:return n(l,s);case Os:{const c=n([],s);for(const f of l)c.push(i(f));return c}case Zu:{const c=n({},s);for(const[f,p]of l)c[i(f)]=i(p);return c}case Ph:return n(new Date(l),s);case Dh:{const{source:c,flags:f}=l;return n(new RegExp(c,f),s)}case Mh:{const c=n(new Map,s);for(const[f,p]of l)c.set(i(f),i(p));return c}case Fh:{const c=n(new Set,s);for(const f of l)c.add(i(f));return c}case VT:{const{name:c,message:f}=l;return n(new c1[c](f),s)}case YT:return n(BigInt(l),s);case"BigInt":return n(Object(BigInt(l)),s);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new c1[a](l),s)};return i},d1=e=>L6(new Map,e)(0),eo="",{toString:P6}={},{keys:D6}=Object,bs=e=>{const t=typeof e;if(t!=="object"||!e)return[kl,t];const n=P6.call(e).slice(8,-1);switch(n){case"Array":return[Os,eo];case"Object":return[Zu,eo];case"Date":return[Ph,eo];case"RegExp":return[Dh,eo];case"Map":return[Mh,eo];case"Set":return[Fh,eo];case"DataView":return[Os,n]}return n.includes("Array")?[Os,n]:n.includes("Error")?[VT,n]:[Zu,n]},Iu=([e,t])=>e===kl&&(t==="function"||t==="symbol"),M6=(e,t,n,i)=>{const s=(l,c)=>{const f=i.push(l)-1;return n.set(c,f),f},a=l=>{if(n.has(l))return n.get(l);let[c,f]=bs(l);switch(c){case kl:{let g=l;switch(f){case"bigint":c=YT,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return s([WT],l)}return s([c,g],l)}case Os:{if(f){let b=l;return f==="DataView"?b=new Uint8Array(l.buffer):f==="ArrayBuffer"&&(b=new Uint8Array(l)),s([f,[...b]],l)}const g=[],E=s([c,g],l);for(const b of l)g.push(a(b));return E}case Zu:{if(f)switch(f){case"BigInt":return s([f,l.toString()],l);case"Boolean":case"Number":case"String":return s([f,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const g=[],E=s([c,g],l);for(const b of D6(l))(e||!Iu(bs(l[b])))&&g.push([a(b),a(l[b])]);return E}case Ph:return s([c,l.toISOString()],l);case Dh:{const{source:g,flags:E}=l;return s([c,{source:g,flags:E}],l)}case Mh:{const g=[],E=s([c,g],l);for(const[b,T]of l)(e||!(Iu(bs(b))||Iu(bs(T))))&&g.push([a(b),a(T)]);return E}case Fh:{const g=[],E=s([c,g],l);for(const b of l)(e||!Iu(bs(b)))&&g.push(a(b));return E}}const{message:p}=l;return s([c,{name:f,message:p}],l)};return a},f1=(e,{json:t,lossy:n}={})=>{const i=[];return M6(!(t||n),!!t,new Map,i)(e),i},fo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?d1(f1(e,t)):structuredClone(e):(e,t)=>d1(f1(e,t));function F6(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 B6(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function U6(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||F6,i=e.options.footnoteBackLabel||B6,s=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[f]);if(!p)continue;const g=e.all(p),E=String(p.identifier).toUpperCase(),b=Co(E.toLowerCase());let T=0;const w=[],C=e.footnoteCounts.get(E);for(;C!==void 0&&++T<=C;){w.length>0&&w.push({type:"text",value:" "});let O=typeof n=="string"?n:n(f,T);typeof O=="string"&&(O={type:"text",value:O}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(T>1?"-"+T:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,T),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const k=g[g.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const O=k.children[k.children.length-1];O&&O.type==="text"?O.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...w)}else g.push(...w);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(g,!0)};e.patch(p,S),c.push(S)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...fo(l),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
76
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
77
|
+
`}]}}const $T=(function(e){if(e==null)return W6;if(typeof e=="function")return Nl(e);if(typeof e=="object")return Array.isArray(e)?H6(e):j6(e);if(typeof e=="string")return z6(e);throw new Error("Expected function, string, or object as test")});function H6(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=$T(e[n]);return Nl(i);function i(...s){let a=-1;for(;++a<t.length;)if(t[a].apply(this,s))return!0;return!1}}function j6(e){const t=e;return Nl(n);function n(i){const s=i;let a;for(a in e)if(s[a]!==t[a])return!1;return!0}}function z6(e){return Nl(t);function t(n){return n&&n.type===e}}function Nl(e){return t;function t(n,i,s){return!!(V6(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function W6(){return!0}function V6(e){return e!==null&&typeof e=="object"&&"type"in e}const qT=[],Y6=!0,h1=!1,$6="skip";function q6(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const a=$T(s),l=i?-1:1;c(e,void 0,[])();function c(f,p,g){const E=f&&typeof f=="object"?f:{};if(typeof E.type=="string"){const T=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(f.type+(T?"<"+T+">":""))+")"})}return b;function b(){let T=qT,w,C,k;if((!t||a(f,p,g[g.length-1]||void 0))&&(T=G6(n(f,g)),T[0]===h1))return T;if("children"in f&&f.children){const S=f;if(S.children&&T[0]!==$6)for(C=(i?S.children.length:-1)+l,k=g.concat(S);C>-1&&C<S.children.length;){const O=S.children[C];if(w=c(O,C,k)(),w[0]===h1)return w;C=typeof w[1]=="number"?w[1]:C+l}}return T}}}function G6(e){return Array.isArray(e)?e:typeof e=="number"?[Y6,e]:e==null?qT:[e]}function Bh(e,t,n,i){let s,a,l;typeof t=="function"&&typeof n!="function"?(a=void 0,l=t,s=n):(a=t,l=n,s=i),q6(e,a,c,s);function c(f,p){const g=p[p.length-1],E=g?g.children.indexOf(f):void 0;return l(f,E,g)}}const Df={}.hasOwnProperty,Q6={};function K6(e,t){const n=t||Q6,i=new Map,s=new Map,a=new Map,l={...R6,...n.handlers},c={all:p,applyData:Z6,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:l,one:f,options:n,patch:X6,wrap:eO};return Bh(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const E=g.type==="definition"?i:s,b=String(g.identifier).toUpperCase();E.has(b)||E.set(b,g)}}),c;function f(g,E){const b=g.type,T=c.handlers[b];if(Df.call(c.handlers,b)&&T)return T(c,g,E);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in g){const{children:C,...k}=g,S=fo(k);return S.children=c.all(g),S}return fo(g)}return(c.options.unknownHandler||J6)(c,g,E)}function p(g){const E=[];if("children"in g){const b=g.children;let T=-1;for(;++T<b.length;){const w=c.one(b[T],g);if(w){if(T&&b[T-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=p1(w.value)),!Array.isArray(w)&&w.type==="element")){const C=w.children[0];C&&C.type==="text"&&(C.value=p1(C.value))}Array.isArray(w)?E.push(...w):E.push(w)}}}return E}}function X6(e,t){e.position&&(t.position=Pk(e))}function Z6(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const l="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:l}}n.type==="element"&&a&&Object.assign(n.properties,fo(a)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function J6(e,t){const n=t.data||{},i="value"in t&&!(Df.call(n,"hProperties")||Df.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eO(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
78
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
79
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
80
|
+
`}),n}function p1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function m1(e,t){const n=K6(e,t),i=n.one(e,void 0),s=U6(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
|
|
81
|
+
`},s),a}function tO(e,t){return e&&"run"in e?async function(n,i){const s=m1(n,{file:i,...t});await e.run(s,i)}:function(n,i){return m1(n,{file:i,...e||t})}}function g1(e){if(e)throw e}var Qd,E1;function nO(){if(E1)return Qd;E1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var g=e.call(p,"constructor"),E=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!E)return!1;var b;for(b in p);return typeof b>"u"||e.call(p,b)},l=function(p,g){n&&g.name==="__proto__"?n(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},c=function(p,g){if(g==="__proto__")if(e.call(p,g)){if(i)return i(p,g).value}else return;return p[g]};return Qd=function f(){var p,g,E,b,T,w,C=arguments[0],k=1,S=arguments.length,O=!1;for(typeof C=="boolean"&&(O=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<S;++k)if(p=arguments[k],p!=null)for(g in p)E=c(C,g),b=c(p,g),C!==b&&(O&&b&&(a(b)||(T=s(b)))?(T?(T=!1,w=E&&s(E)?E:[]):w=E&&a(E)?E:{},l(C,{name:g,newValue:f(O,w,b)})):typeof b<"u"&&l(C,{name:g,newValue:b}));return C},Qd}var rO=nO();const Kd=il(rO);function Mf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function iO(){const e=[],t={run:n,use:i};return t;function n(...s){let a=-1;const l=s.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...s);function c(f,...p){const g=e[++a];let E=-1;if(f){l(f);return}for(;++E<s.length;)(p[E]===null||p[E]===void 0)&&(p[E]=s[E]);s=p,g?oO(g,c)(...p):l(null,...p)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function oO(e,t){let n;return i;function i(...l){const c=e.length>l.length;let f;c&&l.push(s);try{f=e.apply(this,l)}catch(p){const g=p;if(c&&n)throw g;return s(g)}c||(f&&f.then&&typeof f.then=="function"?f.then(a,s):f instanceof Error?s(f):a(f))}function s(l,...c){n||(n=!0,t(l,...c))}function a(l){s(null,l)}}const jn={basename:sO,dirname:aO,extname:uO,join:lO,sep:"/"};function sO(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ea(e);let n=0,i=-1,s=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(a){n=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(a){n=s+1;break}}else l<0&&(a=!0,l=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(i=s):(c=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function aO(e){if(ea(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uO(e){ea(e);let t=e.length,n=-1,i=0,s=-1,a=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?s<0?s=t:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||n<0||a===0||a===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function lO(...e){let t=-1,n;for(;++t<e.length;)ea(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cO(n)}function cO(e){ea(e);const t=e.codePointAt(0)===47;let n=dO(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dO(e,t){let n="",i=0,s=-1,a=0,l=-1,c,f;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(s===l-1||a===1))if(s!==l-1&&a===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",i=0):(n=n.slice(0,f),i=n.length-1-n.lastIndexOf("/")),s=l,a=0;continue}}else if(n.length>0){n="",i=0,s=l,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,l):n=e.slice(s+1,l),i=l-s-1;s=l,a=0}else c===46&&a>-1?a++:a=-1}return n}function ea(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fO={cwd:hO};function hO(){return"/"}function Ff(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pO(e){if(typeof e=="string")e=new URL(e);else if(!Ff(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mO(e)}function mO(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Xd=["history","path","basename","stem","extname","dirname"];class GT{constructor(t){let n;t?Ff(t)?n={path:t}:typeof t=="string"||gO(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":fO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Xd.length;){const a=Xd[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let s;for(s in n)Xd.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?jn.basename(this.path):void 0}set basename(t){Jd(t,"basename"),Zd(t,"basename"),this.path=jn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jn.dirname(this.path):void 0}set dirname(t){y1(this.basename,"dirname"),this.path=jn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jn.extname(this.path):void 0}set extname(t){if(Zd(t,"extname"),y1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=jn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ff(t)&&(t=pO(t)),Jd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jn.basename(this.path,this.extname):void 0}set stem(t){Jd(t,"stem"),Zd(t,"stem"),this.path=jn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Rt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Zd(e,t){if(e&&e.includes(jn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jn.sep+"`")}function Jd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function y1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const EO=(function(e){const i=this.constructor.prototype,s=i[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),yO={}.hasOwnProperty;class Uh extends EO{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=iO()}copy(){const t=new Uh;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Kd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(nf("data",this.frozen),this.namespace[t]=n,this):yO.call(this.namespace,t)&&this.namespace[t]||void 0:t?(nf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ou(t),i=this.parser||this.Parser;return ef("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),ef("process",this.parser||this.Parser),tf("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(a,l){const c=Ou(t),f=i.parse(c);i.run(f,c,function(g,E,b){if(g||!E||!b)return p(g);const T=E,w=i.stringify(T,b);xO(w)?b.value=w:b.result=w,p(g,b)});function p(g,E){g||!E?l(g):a?a(E):n(void 0,E)}}}processSync(t){let n=!1,i;return this.freeze(),ef("processSync",this.parser||this.Parser),tf("processSync",this.compiler||this.Compiler),this.process(t,s),b1("processSync","process",n),i;function s(a,l){n=!0,g1(a),i=l}}run(t,n,i){T1(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(l,c){const f=Ou(n);s.run(t,f,p);function p(g,E,b){const T=E||t;g?c(g):l?l(T):i(void 0,T,b)}}}runSync(t,n){let i=!1,s;return this.run(t,n,a),b1("runSync","run",i),s;function a(l,c){g1(l),s=c,i=!0}}stringify(t,n){this.freeze();const i=Ou(n),s=this.compiler||this.Compiler;return tf("stringify",s),T1(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(nf("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...E]=p;f(g,E)}else l(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function l(p){if(!("plugins"in p)&&!("settings"in p))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");c(p.plugins),p.settings&&(s.settings=Kd(!0,s.settings,p.settings))}function c(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const E=p[g];a(E)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,g){let E=-1,b=-1;for(;++E<i.length;)if(i[E][0]===p){b=E;break}if(b===-1)i.push([p,...g]);else if(g.length>0){let[T,...w]=g;const C=i[b][1];Mf(C)&&Mf(T)&&(T=Kd(!0,C,T)),i[b]=[p,T,...w]}}}}const TO=new Uh().freeze();function ef(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nf(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 T1(e){if(!Mf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function b1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ou(e){return bO(e)?e:new GT(e)}function bO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xO(e){return typeof e=="string"||vO(e)}function vO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _O="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",x1=[],v1={allowDangerousHtml:!0},CO=/^(https?|ircs?|mailto|xmpp)$/i,SO=[{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:"className",id:"remove-classname"},{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 wO(e){const t=AO(e),n=kO(e);return NO(t.runSync(t.parse(n),n),e)}function AO(e){const t=e.rehypePlugins||x1,n=e.remarkPlugins||x1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...v1}:v1;return TO().use(s6).use(n).use(tO,i).use(t)}function kO(e){const t=e.children||"",n=new GT;return typeof t=="string"&&(n.value=t),n}function NO(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,a=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||IO;for(const g of SO)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+_O+g.id,void 0);return Bh(e,p),Uk(e,{Fragment:x.Fragment,components:s,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function p(g,E,b){if(g.type==="raw"&&b&&typeof E=="number")return l?b.children.splice(E,1):b.children[E]={type:"text",value:g.value},E;if(g.type==="element"){let T;for(T in $d)if(Object.hasOwn($d,T)&&Object.hasOwn(g.properties,T)){const w=g.properties[T],C=$d[T];(C===null||C.includes(g.tagName))&&(g.properties[T]=f(String(w||""),T,g))}}if(g.type==="element"){let T=n?!n.includes(g.tagName):a?a.includes(g.tagName):!1;if(!T&&i&&typeof E=="number"&&(T=!i(g,E,b)),T&&b&&typeof E=="number")return c&&g.children?b.children.splice(E,1,...g.children):b.children.splice(E,1),E}}}function IO(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||CO.test(e.slice(0,t))?e:""}const _1=/[#.]/g;function OO(e,t){const n=e||"",i={};let s=0,a,l;for(;s<n.length;){_1.lastIndex=s;const c=_1.exec(n),f=n.slice(s,c?c.index:n.length);f&&(a?a==="#"?i.id=f:Array.isArray(i.className)?i.className.push(f):i.className=[f]:l=f,s+=f.length),c&&(a=c[0],s++)}return{type:"element",tagName:l||t||"div",properties:i,children:[]}}function QT(e,t,n){const i=n?DO(n):void 0;function s(a,l,...c){let f;if(a==null){f={type:"root",children:[]};const p=l;c.unshift(p)}else{f=OO(a,t);const p=f.tagName.toLowerCase(),g=i?i.get(p):void 0;if(f.tagName=g||p,RO(l))c.unshift(l);else for(const[E,b]of Object.entries(l))LO(e,f.properties,E,b)}for(const p of c)Bf(f.children,p);return f.type==="element"&&f.tagName==="template"&&(f.content={type:"root",children:f.children},f.children=[]),f}return s}function RO(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const s=t[i];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const a=s;for(const l of a)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function LO(e,t,n,i){const s=Ah(e,n);let a;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;a=i}else typeof i=="boolean"?a=i:typeof i=="string"?s.spaceSeparated?a=zg(i):s.commaSeparated?a=Fg(i):s.commaOrSpaceSeparated?a=zg(Fg(i).join(" ")):a=C1(s,s.property,i):Array.isArray(i)?a=[...i]:a=s.property==="style"?PO(i):String(i);if(Array.isArray(a)){const l=[];for(const c of a)l.push(C1(s,s.property,c));a=l}s.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[s.property]=a}}function Bf(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Bf(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Bf(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function C1(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ws(n)===Ws(t)))return!0}return n}function PO(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function DO(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const MO=["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"],FO=QT(Sl,"div"),BO=QT(_o,"g",MO);function UO(e){const t=String(e),n=[];return{toOffset:s,toPoint:i};function i(a){if(typeof a=="number"&&a>-1&&a<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const f=S1(t,n[l-1]);c=f===-1?t.length+1:f+1,n[l]=c}if(c>a)return{line:l+1,column:a-(l>0?n[l-1]:0)+1,offset:a};l++}}}function s(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const c=n[n.length-1],f=S1(t,c),p=f===-1?t.length+1:f+1;if(c===p)break;n.push(p)}const l=(a.line>1?n[a.line-2]:0)+a.column-1;if(l<n[a.line-1])return l}}}function S1(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
|
|
82
|
+
`,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const ci={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/"},KT={}.hasOwnProperty,HO=Object.prototype;function jO(e,t){const n=t||{};return Hh({file:n.file||void 0,location:!1,schema:n.space==="svg"?_o:Sl,verbose:n.verbose||!1},e)}function Hh(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},Bu(e,i,n),n}case"#document":case"#document-fragment":{const i=t,s="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:XT(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const a=String(e.file),l=UO(a),c=l.toPoint(0),f=l.toPoint(a.length);n.position={start:c,end:f}}return n}case"#documentType":{const i=t;return n={type:"doctype"},Bu(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},Bu(e,i,n),n}default:return n=zO(e,t),n}}function XT(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=Hh(e,t[n]);i.push(s)}return i}function zO(e,t){const n=e.schema;e.schema=t.namespaceURI===ci.svg?_o:Sl;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],f=(c.prefix?c.prefix+":":"")+c.name;KT.call(HO,f)||(s[f]=c.value)}const l=(e.schema.space==="svg"?BO:FO)(t.tagName,s,XT(e,t.childNodes));if(Bu(e,t,l),l.tagName==="template"){const c=t,f=c.sourceCodeLocation,p=f&&f.startTag&&no(f.startTag),g=f&&f.endTag&&no(f.endTag),E=Hh(e,c.content);p&&g&&e.file&&(E.position={start:p.end,end:g.start}),l.content=E}return e.schema=n,l}function Bu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=WO(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function WO(e,t,n){const i=no(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(i&&!n.endTag&&s&&s.position&&s.position.end&&(i.end=Object.assign({},s.position.end)),e.verbose){const a={};let l;if(n.attrs)for(l in n.attrs)KT.call(n.attrs,l)&&(a[Ah(e.schema,l).property]=no(n.attrs[l]));n.startTag;const c=no(n.startTag),f=n.endTag?no(n.endTag):void 0,p={opening:c};f&&(p.closing=f),p.properties=a,t.data={position:p}}}return i}function no(e){const t=w1({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=w1({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function w1(e){return e.line&&e.column?e:void 0}class ta{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}ta.prototype.property={};ta.prototype.normal={};ta.prototype.space=null;function ZT(e,t){const n={},i={};let s=-1;for(;++s<e.length;)Object.assign(n,e[s].property),Object.assign(i,e[s].normal);return new ta(n,i,t)}function Uf(e){return e.toLowerCase()}class bn{constructor(t,n){this.property=t,this.attribute=n}}bn.prototype.space=null;bn.prototype.boolean=!1;bn.prototype.booleanish=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.number=!1;bn.prototype.commaSeparated=!1;bn.prototype.spaceSeparated=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.mustUseProperty=!1;bn.prototype.defined=!1;let VO=0;const Pe=xi(),ft=xi(),JT=xi(),de=xi(),Xe=xi(),ao=xi(),on=xi();function xi(){return 2**++VO}const Hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:ft,commaOrSpaceSeparated:on,commaSeparated:ao,number:de,overloadedBoolean:JT,spaceSeparated:Xe},Symbol.toStringTag,{value:"Module"})),rf=Object.keys(Hf);class jh extends bn{constructor(t,n,i,s){let a=-1;if(super(t,n),A1(this,"space",s),typeof i=="number")for(;++a<rf.length;){const l=rf[a];A1(this,rf[a],(i&Hf[l])===Hf[l])}}}jh.prototype.defined=!0;function A1(e,t,n){n&&(e[t]=n)}const YO={}.hasOwnProperty;function So(e){const t={},n={};let i;for(i in e.properties)if(YO.call(e.properties,i)){const s=e.properties[i],a=new jh(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Uf(i)]=i,n[Uf(a.attribute)]=i}return new ta(t,n,e.space)}const eb=So({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tb=So({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nb(e,t){return t in e?e[t]:t}function rb(e,t){return nb(e,t.toLowerCase())}const ib=So({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rb,properties:{xmlns:null,xmlnsXLink:null}}),ob=So({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Xe,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:de,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Xe,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:ft,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null}}),$O=So({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ao,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Xe,autoFocus:Pe,autoPlay:Pe,blocking:Xe,capture:null,charSet:null,checked:Pe,cite:null,className:Xe,cols:de,colSpan:null,content:null,contentEditable:ft,controls:Pe,controlsList:Xe,coords:de|ao,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:JT,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Xe,height:de,hidden:Pe,high:de,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:Pe,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,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:Pe,optimum:de,pattern:null,ping:Xe,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Xe,required:Pe,reversed:Pe,rows:de,rowSpan:de,sandbox:Xe,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:ft,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:de,security:null,unselectable:null}}),qO=So({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:nb,properties:{about:on,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:Xe,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:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,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:ao,g2:ao,glyphName:ao,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:on,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,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:de,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:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:on,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:on,rev:on,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:on,requiredFeatures:on,requiredFonts:on,requiredFormats:on,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:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:on,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:on,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:on,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GO=/^data[-\w.:]+$/i,k1=/-[a-z]/g,QO=/[A-Z]/g;function KO(e,t){const n=Uf(t);let i=t,s=bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GO.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(k1,ZO);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!k1.test(a)){let l=a.replace(QO,XO);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}s=jh}return new s(i,t)}function XO(e){return"-"+e.toLowerCase()}function ZO(e){return e.charAt(1).toUpperCase()}const JO=ZT([tb,eb,ib,ob,$O],"html"),sb=ZT([tb,eb,ib,ob,qO],"svg"),N1={}.hasOwnProperty;function ab(e,t){const n=t||{};function i(s,...a){let l=i.invalid;const c=i.handlers;if(s&&N1.call(s,e)){const f=String(s[e]);l=N1.call(c,f)?c[f]:i.unknown}if(l)return l.call(this,s,...a)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const eR={},tR={}.hasOwnProperty,ub=ab("type",{handlers:{root:rR,element:uR,text:sR,comment:aR,doctype:oR}});function nR(e,t){const i=(t||eR).space;return ub(e,i==="svg"?sb:JO)}function rR(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=zh(e.children,n,t),wo(e,n),n}function iR(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=zh(e.children,n,t),wo(e,n),n}function oR(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return wo(e,t),t}function sR(e){const t={nodeName:"#text",value:e.value,parentNode:null};return wo(e,t),t}function aR(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return wo(e,t),t}function uR(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=sb);const s=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&tR.call(e.properties,a)){const f=lR(i,a,e.properties[a]);f&&s.push(f)}}const l=i.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:ci[l],childNodes:[],parentNode:null};return c.childNodes=zh(e.children,c,i),wo(e,c),e.tagName==="template"&&e.content&&(c.content=iR(e.content,i)),c}function lR(e,t,n){const i=KO(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?pT(n):vT(n));const s={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const a=s.name.indexOf(":");a<0?s.prefix="":(s.name=s.name.slice(a+1),s.prefix=i.attribute.slice(0,a)),s.namespace=ci[i.space]}return s}function zh(e,t,n){let i=-1;const s=[];if(e)for(;++i<e.length;){const a=ub(e[i],n);a.parentNode=t,s.push(a)}return s}function wo(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 cR=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],dR=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]),rt="�";var A;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(A||(A={}));const Gt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function lb(e){return e>=55296&&e<=57343}function fR(e){return e>=56320&&e<=57343}function hR(e,t){return(e-55296)*1024+9216+t}function cb(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function db(e){return e>=64976&&e<=65007||dR.has(e)}var Q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Q||(Q={}));const pR=65536;class mR{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pR,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:i,col:s,offset:a}=this,l=s+n,c=a+n;return{code:t,startLine:i,endLine:i,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(fR(n))return this.pos++,this._addGap(),hR(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(Q.surrogateInInputStream),t}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(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const i=this.html.charCodeAt(n);return i===A.CARRIAGE_RETURN?A.LINE_FEED:i}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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,lb(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){cb(t)?this._err(Q.controlCharacterInInputStream):db(t)&&this._err(Q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var He;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(He||(He={}));function fb(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}const gR=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),ER=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]]);function yR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ER.get(e))!==null&&t!==void 0?t:e}var bt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(bt||(bt={}));const TR=32;var jr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jr||(jr={}));function jf(e){return e>=bt.ZERO&&e<=bt.NINE}function bR(e){return e>=bt.UPPER_A&&e<=bt.UPPER_F||e>=bt.LOWER_A&&e<=bt.LOWER_F}function xR(e){return e>=bt.UPPER_A&&e<=bt.UPPER_Z||e>=bt.LOWER_A&&e<=bt.LOWER_Z||jf(e)}function vR(e){return e===bt.EQUALS||xR(e)}var Tt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Tt||(Tt={}));var ar;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ar||(ar={}));class _R{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ar.Strict}startEntity(t){this.decodeMode=t,this.state=Tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Tt.EntityStart:return t.charCodeAt(n)===bt.NUM?(this.state=Tt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Tt.NamedEntity,this.stateNamedEntity(t,n));case Tt.NumericStart:return this.stateNumericStart(t,n);case Tt.NumericDecimal:return this.stateNumericDecimal(t,n);case Tt.NumericHex:return this.stateNumericHex(t,n);case Tt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TR)===bt.LOWER_X?(this.state=Tt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Tt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,s){if(n!==i){const a=i-n;this.result=this.result*Math.pow(s,a)+Number.parseInt(t.substr(n,a),s),this.consumed+=a}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(jf(s)||bR(s))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(jf(s))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===bt.SEMI)this.consumed+=1;else if(this.decodeMode===ar.Strict)return 0;return this.emitCodePoint(yR(this.result),this.consumed),this.errors&&(t!==bt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let s=i[this.treeIndex],a=(s&jr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=CR(i,s,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return this.result===0||this.decodeMode===ar.Attribute&&(a===0||vR(l))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],a=(s&jr.VALUE_LENGTH)>>14,a!==0){if(l===bt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ar.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,s=(i[n]&jr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~jr.VALUE_LENGTH:s[t+1],i),n===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case Tt.NamedEntity:return this.result!==0&&(this.decodeMode!==ar.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tt.NumericDecimal:return this.emitNumericEntity(0,2);case Tt.NumericHex:return this.emitNumericEntity(0,3);case Tt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tt.EntityStart:return 0}}}function CR(e,t,n,i){const s=(t&jr.BRANCH_LENGTH)>>7,a=t&jr.JUMP_TABLE;if(s===0)return a!==0&&i===a?n:-1;if(a){const f=i-a;return f<0||f>=s?-1:e[n+f]-1}let l=n,c=l+s-1;for(;l<=c;){const f=l+c>>>1,p=e[f];if(p<i)l=f+1;else if(p>i)c=f-1;else return e[f+s]}return-1}var re;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(re||(re={}));var di;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(di||(di={}));var Tn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Tn||(Tn={}));var $;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})($||($={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const SR=new Map([[$.A,h.A],[$.ADDRESS,h.ADDRESS],[$.ANNOTATION_XML,h.ANNOTATION_XML],[$.APPLET,h.APPLET],[$.AREA,h.AREA],[$.ARTICLE,h.ARTICLE],[$.ASIDE,h.ASIDE],[$.B,h.B],[$.BASE,h.BASE],[$.BASEFONT,h.BASEFONT],[$.BGSOUND,h.BGSOUND],[$.BIG,h.BIG],[$.BLOCKQUOTE,h.BLOCKQUOTE],[$.BODY,h.BODY],[$.BR,h.BR],[$.BUTTON,h.BUTTON],[$.CAPTION,h.CAPTION],[$.CENTER,h.CENTER],[$.CODE,h.CODE],[$.COL,h.COL],[$.COLGROUP,h.COLGROUP],[$.DD,h.DD],[$.DESC,h.DESC],[$.DETAILS,h.DETAILS],[$.DIALOG,h.DIALOG],[$.DIR,h.DIR],[$.DIV,h.DIV],[$.DL,h.DL],[$.DT,h.DT],[$.EM,h.EM],[$.EMBED,h.EMBED],[$.FIELDSET,h.FIELDSET],[$.FIGCAPTION,h.FIGCAPTION],[$.FIGURE,h.FIGURE],[$.FONT,h.FONT],[$.FOOTER,h.FOOTER],[$.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[$.FORM,h.FORM],[$.FRAME,h.FRAME],[$.FRAMESET,h.FRAMESET],[$.H1,h.H1],[$.H2,h.H2],[$.H3,h.H3],[$.H4,h.H4],[$.H5,h.H5],[$.H6,h.H6],[$.HEAD,h.HEAD],[$.HEADER,h.HEADER],[$.HGROUP,h.HGROUP],[$.HR,h.HR],[$.HTML,h.HTML],[$.I,h.I],[$.IMG,h.IMG],[$.IMAGE,h.IMAGE],[$.INPUT,h.INPUT],[$.IFRAME,h.IFRAME],[$.KEYGEN,h.KEYGEN],[$.LABEL,h.LABEL],[$.LI,h.LI],[$.LINK,h.LINK],[$.LISTING,h.LISTING],[$.MAIN,h.MAIN],[$.MALIGNMARK,h.MALIGNMARK],[$.MARQUEE,h.MARQUEE],[$.MATH,h.MATH],[$.MENU,h.MENU],[$.META,h.META],[$.MGLYPH,h.MGLYPH],[$.MI,h.MI],[$.MO,h.MO],[$.MN,h.MN],[$.MS,h.MS],[$.MTEXT,h.MTEXT],[$.NAV,h.NAV],[$.NOBR,h.NOBR],[$.NOFRAMES,h.NOFRAMES],[$.NOEMBED,h.NOEMBED],[$.NOSCRIPT,h.NOSCRIPT],[$.OBJECT,h.OBJECT],[$.OL,h.OL],[$.OPTGROUP,h.OPTGROUP],[$.OPTION,h.OPTION],[$.P,h.P],[$.PARAM,h.PARAM],[$.PLAINTEXT,h.PLAINTEXT],[$.PRE,h.PRE],[$.RB,h.RB],[$.RP,h.RP],[$.RT,h.RT],[$.RTC,h.RTC],[$.RUBY,h.RUBY],[$.S,h.S],[$.SCRIPT,h.SCRIPT],[$.SEARCH,h.SEARCH],[$.SECTION,h.SECTION],[$.SELECT,h.SELECT],[$.SOURCE,h.SOURCE],[$.SMALL,h.SMALL],[$.SPAN,h.SPAN],[$.STRIKE,h.STRIKE],[$.STRONG,h.STRONG],[$.STYLE,h.STYLE],[$.SUB,h.SUB],[$.SUMMARY,h.SUMMARY],[$.SUP,h.SUP],[$.TABLE,h.TABLE],[$.TBODY,h.TBODY],[$.TEMPLATE,h.TEMPLATE],[$.TEXTAREA,h.TEXTAREA],[$.TFOOT,h.TFOOT],[$.TD,h.TD],[$.TH,h.TH],[$.THEAD,h.THEAD],[$.TITLE,h.TITLE],[$.TR,h.TR],[$.TRACK,h.TRACK],[$.TT,h.TT],[$.U,h.U],[$.UL,h.UL],[$.SVG,h.SVG],[$.VAR,h.VAR],[$.WBR,h.WBR],[$.XMP,h.XMP]]);function Ao(e){var t;return(t=SR.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const ae=h,wR={[re.HTML]:new Set([ae.ADDRESS,ae.APPLET,ae.AREA,ae.ARTICLE,ae.ASIDE,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BLOCKQUOTE,ae.BODY,ae.BR,ae.BUTTON,ae.CAPTION,ae.CENTER,ae.COL,ae.COLGROUP,ae.DD,ae.DETAILS,ae.DIR,ae.DIV,ae.DL,ae.DT,ae.EMBED,ae.FIELDSET,ae.FIGCAPTION,ae.FIGURE,ae.FOOTER,ae.FORM,ae.FRAME,ae.FRAMESET,ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6,ae.HEAD,ae.HEADER,ae.HGROUP,ae.HR,ae.HTML,ae.IFRAME,ae.IMG,ae.INPUT,ae.LI,ae.LINK,ae.LISTING,ae.MAIN,ae.MARQUEE,ae.MENU,ae.META,ae.NAV,ae.NOEMBED,ae.NOFRAMES,ae.NOSCRIPT,ae.OBJECT,ae.OL,ae.P,ae.PARAM,ae.PLAINTEXT,ae.PRE,ae.SCRIPT,ae.SECTION,ae.SELECT,ae.SOURCE,ae.STYLE,ae.SUMMARY,ae.TABLE,ae.TBODY,ae.TD,ae.TEMPLATE,ae.TEXTAREA,ae.TFOOT,ae.TH,ae.THEAD,ae.TITLE,ae.TR,ae.TRACK,ae.UL,ae.WBR,ae.XMP]),[re.MATHML]:new Set([ae.MI,ae.MO,ae.MN,ae.MS,ae.MTEXT,ae.ANNOTATION_XML]),[re.SVG]:new Set([ae.TITLE,ae.FOREIGN_OBJECT,ae.DESC]),[re.XLINK]:new Set,[re.XML]:new Set,[re.XMLNS]:new Set},zf=new Set([ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6]);$.STYLE,$.SCRIPT,$.XMP,$.IFRAME,$.NOEMBED,$.NOFRAMES,$.PLAINTEXT;var R;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(R||(R={}));const lt={DATA:R.DATA,RCDATA:R.RCDATA,RAWTEXT:R.RAWTEXT,SCRIPT_DATA:R.SCRIPT_DATA,PLAINTEXT:R.PLAINTEXT,CDATA_SECTION:R.CDATA_SECTION};function AR(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Ss(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function kR(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Ur(e){return kR(e)||Ss(e)}function I1(e){return Ur(e)||AR(e)}function Ru(e){return e+32}function hb(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function O1(e){return hb(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function NR(e){return e===A.NULL?Q.nullCharacterReference:e>1114111?Q.characterReferenceOutsideUnicodeRange:lb(e)?Q.surrogateCharacterReference:db(e)?Q.noncharacterCharacterReference:cb(e)||e===A.CARRIAGE_RETURN?Q.controlCharacterReference:null}class IR{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=R.DATA,this.returnState=R.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mR(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _R(gR,(i,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(Q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const s=NR(i);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var i,s;(s=(i=this.handler).onParseError)===null||s===void 0||s.call(i,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:He.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:He.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:He.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:He.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const i=this.currentToken;if(fb(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const s=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ao(t.tagName),t.type===He.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Q.endTagWithAttributes),t.selfClosing&&this._err(Q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:He.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=hb(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=R.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ar.Attribute:ar.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===R.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===R.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===R.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case R.DATA:{this._stateData(t);break}case R.RCDATA:{this._stateRcdata(t);break}case R.RAWTEXT:{this._stateRawtext(t);break}case R.SCRIPT_DATA:{this._stateScriptData(t);break}case R.PLAINTEXT:{this._statePlaintext(t);break}case R.TAG_OPEN:{this._stateTagOpen(t);break}case R.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case R.TAG_NAME:{this._stateTagName(t);break}case R.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case R.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case R.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case R.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case R.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case R.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case R.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case R.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case R.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case R.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case R.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case R.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case R.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case R.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case R.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case R.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case R.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case R.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case R.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case R.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case R.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case R.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case R.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case R.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case R.BOGUS_COMMENT:{this._stateBogusComment(t);break}case R.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case R.COMMENT_START:{this._stateCommentStart(t);break}case R.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case R.COMMENT:{this._stateComment(t);break}case R.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case R.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case R.COMMENT_END:{this._stateCommentEnd(t);break}case R.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case R.DOCTYPE:{this._stateDoctype(t);break}case R.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case R.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case R.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case R.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case R.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case R.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case R.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case R.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case R.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case R.CDATA_SECTION:{this._stateCdataSection(t);break}case R.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case R.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case R.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case R.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=R.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=R.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=R.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ur(t))this._createStartTagToken(),this.state=R.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=R.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=R.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(Q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=R.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ur(t))this._createEndTagToken(),this.state=R.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(Q.missingEndTagName),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=R.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.tagName+=rt;break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ss(t)?Ru(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=R.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=R.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ur(t)?(this.state=R.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=R.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=R.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=R.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=R.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=R.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ur(t)?(this.state=R.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=R.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=R.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=R.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ur(t)?(this.state=R.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=R.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=R.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_ESCAPED,this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=R.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_ESCAPED,this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ur(t)?(this._emitChars("<"),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ur(t)?(this.state=R.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Gt.SCRIPT,!1)&&O1(this.preprocessor.peek(Gt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Gt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=R.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rt);break}case A.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Gt.SCRIPT,!1)&&O1(this.preprocessor.peek(Gt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Gt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=R.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=R.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(Q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=R.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=R.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=R.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=R.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(Q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.name+=rt;break}default:this.currentAttr.name+=String.fromCodePoint(Ss(t)?Ru(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=R.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=R.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=R.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=R.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=R.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingAttributeValue),this.state=R.DATA,this.emitCurrentTagToken();break}default:this.state=R.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=R.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=rt;break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=R.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=rt;break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=R.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=R.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=rt;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(Q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=R.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=R.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=R.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBetweenAttributes),this.state=R.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=R.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.unexpectedSolidusInTag),this.state=R.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.data+=rt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Gt.DASH_DASH,!0)?(this._createCommentToken(Gt.DASH_DASH.length+1),this.state=R.COMMENT_START):this._consumeSequenceIfMatch(Gt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Gt.DOCTYPE.length+1),this.state=R.DOCTYPE):this._consumeSequenceIfMatch(Gt.CDATA_START,!0)?this.inForeignNode?this.state=R.CDATA_SECTION:(this._err(Q.cdataInHtmlContent),this._createCommentToken(Gt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=R.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=R.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=R.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=R.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=R.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=R.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=R.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=R.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=R.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.data+=rt;break}case A.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=R.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=R.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=R.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=R.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=R.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=R.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(Q.nestedComment),this.state=R.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=R.COMMENT_END;break}case A.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=R.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=R.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=R.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=R.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(Q.incorrectlyClosedComment),this.state=R.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=R.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=R.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBeforeDoctypeName),this.state=R.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ss(t))this._createDoctypeToken(String.fromCharCode(Ru(t))),this.state=R.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(Q.unexpectedNullCharacter),this._createDoctypeToken(rt),this.state=R.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=R.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.name+=rt;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ss(t)?Ru(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Gt.PUBLIC,!1)?this.state=R.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Gt.SYSTEM,!1)?this.state=R.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.publicId+=rt;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.publicId+=rt;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.systemId+=rt;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(Q.unexpectedNullCharacter),n.systemId+=rt;break}case A.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.EOF:{this._err(Q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case A.NULL:{this._err(Q.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=R.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(Q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=R.CDATA_SECTION_END:(this._emitChars("]"),this.state=R.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=R.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=R.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&I1(this.preprocessor.peek(1))?R.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){I1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(Q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const pb=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),R1=new Set([...pb,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Ju=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),OR=new Set([...Ju,h.OL,h.UL]),RR=new Set([...Ju,h.BUTTON]),L1=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),P1=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),LR=new Set([h.TR,h.TEMPLATE,h.HTML]),PR=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),DR=new Set([h.TABLE,h.TEMPLATE,h.HTML]),MR=new Set([h.TD,h.TH]);class FR{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===re.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==re.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(zf,re.HTML)}popUntilTableCellPopped(){this.popUntilPopped(MR,re.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(DR,re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(PR,re.HTML)}clearBackToTableRowContext(){this.clearBackTo(LR,re.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case re.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case re.SVG:{if(P1.has(s))return!1;break}case re.MATHML:{if(L1.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ju)}hasInListItemScope(t){return this.hasInDynamicScope(t,OR)}hasInButtonScope(t){return this.hasInDynamicScope(t,RR)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case re.HTML:{if(zf.has(n))return!0;if(Ju.has(n))return!1;break}case re.SVG:{if(P1.has(n))return!1;break}case re.MATHML:{if(L1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===re.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===re.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===re.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&pb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&R1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&R1.has(this.currentTagId);)this.pop()}}const of=3;var zn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zn||(zn={}));const D1={type:zn.Marker};class BR{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],s=n.length,a=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const f=this.entries[c];if(f.type===zn.Marker)break;const{element:p}=f;if(this.treeAdapter.getTagName(p)===a&&this.treeAdapter.getNamespaceURI(p)===l){const g=this.treeAdapter.getAttrList(p);g.length===s&&i.push({idx:c,attrs:g})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<of)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<of)return;const s=new Map(n.map(l=>[l.name,l.value]));let a=0;for(let l=0;l<i.length;l++){const c=i[l];c.attrs.every(f=>s.get(f.name)===f.value)&&(a+=1,a>=of&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(D1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:zn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:zn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(D1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===zn.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===zn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===zn.Element&&n.element===t)}}const Hr={createDocument(){return{nodeName:"#document",mode:Tn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const s=e.childNodes.find(a=>a.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=i;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};Hr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return 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(Hr.isTextNode(n)){n.value+=t;return}}Hr.appendChild(e,Hr.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Hr.isTextNode(i)?i.value+=t:Hr.insertBefore(e,Hr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},mb="html",UR="about:legacy-compat",HR="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",gb=["+//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//"],jR=[...gb,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zR=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Eb=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],WR=[...Eb,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function M1(e,t){return t.some(n=>e.startsWith(n))}function VR(e){return e.name===mb&&e.publicId===null&&(e.systemId===null||e.systemId===UR)}function YR(e){if(e.name!==mb)return Tn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HR)return Tn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zR.has(n))return Tn.QUIRKS;let i=t===null?jR:gb;if(M1(n,i))return Tn.QUIRKS;if(i=t===null?Eb:WR,M1(n,i))return Tn.LIMITED_QUIRKS}return Tn.NO_QUIRKS}const F1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},$R="definitionurl",qR="definitionURL",GR=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])),QR=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:re.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:re.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:re.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:re.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:re.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:re.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:re.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:re.XML}],["xml:space",{prefix:"xml",name:"space",namespace:re.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:re.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:re.XMLNS}]]),KR=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])),XR=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function ZR(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:i})=>i===di.COLOR||i===di.SIZE||i===di.FACE)||XR.has(t)}function yb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===$R){e.attrs[t].name=qR;break}}function Tb(e){for(let t=0;t<e.attrs.length;t++){const n=GR.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Wh(e){for(let t=0;t<e.attrs.length;t++){const n=QR.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 JR(e){const t=KR.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ao(e.tagName))}function eL(e,t){return t===re.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function tL(e,t,n){if(t===re.MATHML&&e===h.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===di.ENCODING){const s=n[i].value.toLowerCase();return s===F1.TEXT_HTML||s===F1.APPLICATION_XML}}return t===re.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function nL(e,t,n,i){return(!i||i===re.HTML)&&tL(e,t,n)||(!i||i===re.MATHML)&&eL(e,t)}const rL="hidden",iL=8,oL=3;var D;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const sL={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bb=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),B1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hr,onParseError:null};class U1{constructor(t,n,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.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={...B1,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new IR(this.options,this),this.activeFormattingElements=new BR(this.treeAdapter),this.fragmentContextID=i?Ao(this.treeAdapter.getTagName(i)):h.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new FR(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...B1,...n};t??(t=i.treeAdapter.createElement($.TEMPLATE,re.HTML,[]));const s=i.treeAdapter.createElement("documentmock",re.HTML,[]),a=new this(i,s,t);return a.fragmentContextID===h.TEMPLATE&&a.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,i){var s;if(!this.onParseError)return;const a=(s=t.location)!==null&&s!==void 0?s:sL,l={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:i?a.startLine:a.endLine,endCol:i?a.startCol:a.endCol,endOffset:i?a.startOffset:a.endOffset};this.onParseError(l)}onItemPush(t,n,i){var s,a;(a=(s=this.treeAdapter).onItemPush)===null||a===void 0||a.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),n){let a,l;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,l=this.fragmentContextID):{current:a,currentTagId:l}=this.openElements,this._setContextModes(a,l)}}_setContextModes(t,n){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===re.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,re.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=lt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===$.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==re.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=lt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=lt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=lt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=lt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,s),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,re.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,re.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement($.HTML,re.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),a=i?s.lastIndexOf(i):s.length,l=s[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:f,endCol:p,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:f,endCol:p,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,s=this.treeAdapter.getTagName(t),a=n.type===He.END_TAG&&s===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===$.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===re.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,re.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const s=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return nL(t,s,a,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===zn.Marker||this.openElements.contains(s.element)),i=n===-1?t-1:n-1;for(let s=i;s>=0;s--){const a=this.activeFormattingElements.entries[s];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=D.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=D.IN_TABLE;return}case h.BODY:{this.insertionMode=D.IN_BODY;return}case h.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=D.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===h.TEMPLATE)break;if(i===h.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(t){return bb.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===re.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const i=this.treeAdapter.getNamespaceURI(t);return wR[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){MP(this,t);return}switch(this.insertionMode){case D.INITIAL:{xs(this,t);break}case D.BEFORE_HTML:{Rs(this,t);break}case D.BEFORE_HEAD:{Ls(this,t);break}case D.IN_HEAD:{Ps(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ds(this,t);break}case D.AFTER_HEAD:{Ms(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{vb(this,t);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{sf(this,t);break}case D.IN_TABLE_TEXT:{kb(this,t);break}case D.IN_COLUMN_GROUP:{el(this,t);break}case D.AFTER_BODY:{tl(this,t);break}case D.AFTER_AFTER_BODY:{Uu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){DP(this,t);return}switch(this.insertionMode){case D.INITIAL:{xs(this,t);break}case D.BEFORE_HTML:{Rs(this,t);break}case D.BEFORE_HEAD:{Ls(this,t);break}case D.IN_HEAD:{Ps(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ds(this,t);break}case D.AFTER_HEAD:{Ms(this,t);break}case D.TEXT:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{sf(this,t);break}case D.IN_COLUMN_GROUP:{el(this,t);break}case D.AFTER_BODY:{tl(this,t);break}case D.AFTER_AFTER_BODY:{Uu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Wf(this,t);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{Wf(this,t);break}case D.IN_TABLE_TEXT:{vs(this,t);break}case D.AFTER_BODY:{hL(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{pL(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{mL(this,t);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(t,Q.misplacedDoctype);break}case D.IN_TABLE_TEXT:{vs(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?FP(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{xs(this,t);break}case D.BEFORE_HTML:{gL(this,t);break}case D.BEFORE_HEAD:{yL(this,t);break}case D.IN_HEAD:{Pn(this,t);break}case D.IN_HEAD_NO_SCRIPT:{xL(this,t);break}case D.AFTER_HEAD:{_L(this,t);break}case D.IN_BODY:{Lt(this,t);break}case D.IN_TABLE:{ho(this,t);break}case D.IN_TABLE_TEXT:{vs(this,t);break}case D.IN_CAPTION:{TP(this,t);break}case D.IN_COLUMN_GROUP:{$h(this,t);break}case D.IN_TABLE_BODY:{Rl(this,t);break}case D.IN_ROW:{Ll(this,t);break}case D.IN_CELL:{vP(this,t);break}case D.IN_SELECT:{Ob(this,t);break}case D.IN_SELECT_IN_TABLE:{CP(this,t);break}case D.IN_TEMPLATE:{wP(this,t);break}case D.AFTER_BODY:{kP(this,t);break}case D.IN_FRAMESET:{NP(this,t);break}case D.AFTER_FRAMESET:{OP(this,t);break}case D.AFTER_AFTER_BODY:{LP(this,t);break}case D.AFTER_AFTER_FRAMESET:{PP(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?BP(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{xs(this,t);break}case D.BEFORE_HTML:{EL(this,t);break}case D.BEFORE_HEAD:{TL(this,t);break}case D.IN_HEAD:{bL(this,t);break}case D.IN_HEAD_NO_SCRIPT:{vL(this,t);break}case D.AFTER_HEAD:{CL(this,t);break}case D.IN_BODY:{Ol(this,t);break}case D.TEXT:{lP(this,t);break}case D.IN_TABLE:{Ys(this,t);break}case D.IN_TABLE_TEXT:{vs(this,t);break}case D.IN_CAPTION:{bP(this,t);break}case D.IN_COLUMN_GROUP:{xP(this,t);break}case D.IN_TABLE_BODY:{Vf(this,t);break}case D.IN_ROW:{Ib(this,t);break}case D.IN_CELL:{_P(this,t);break}case D.IN_SELECT:{Rb(this,t);break}case D.IN_SELECT_IN_TABLE:{SP(this,t);break}case D.IN_TEMPLATE:{AP(this,t);break}case D.AFTER_BODY:{Pb(this,t);break}case D.IN_FRAMESET:{IP(this,t);break}case D.AFTER_FRAMESET:{RP(this,t);break}case D.AFTER_AFTER_BODY:{Uu(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{xs(this,t);break}case D.BEFORE_HTML:{Rs(this,t);break}case D.BEFORE_HEAD:{Ls(this,t);break}case D.IN_HEAD:{Ps(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ds(this,t);break}case D.AFTER_HEAD:{Ms(this,t);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{wb(this,t);break}case D.TEXT:{cP(this,t);break}case D.IN_TABLE_TEXT:{vs(this,t);break}case D.IN_TEMPLATE:{Lb(this,t);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Yh(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{xb(this,t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{sf(this,t);break}case D.IN_TABLE_TEXT:{Ab(this,t);break}}}}function aL(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):Sb(e,t),n}function uL(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function lL(e,t,n){let i=t,s=e.openElements.getCommonAncestor(t);for(let a=0,l=s;l!==n;a++,l=s){s=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),f=c&&a>=oL;!c||f?(f&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=cL(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(l,i),i=l)}return i}function cL(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function dL(e,t,n){const i=e.treeAdapter.getTagName(t),s=Ao(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);s===h.TEMPLATE&&a===re.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function fL(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,a=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,s.tagID)}function Vh(e,t){for(let n=0;n<iL;n++){const i=aL(e,t);if(!i)break;const s=uL(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const a=lL(e,s,i.element),l=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(a),l&&dL(e,l,a),fL(e,s,i)}}function Wf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hL(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pL(e,t){e._appendCommentNode(t,e.document)}function Yh(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(a);l&&!l.endTag&&e._setEndLocation(a,t)}}}}function mL(e,t){e._setDocumentType(t);const n=t.forceQuirks?Tn.QUIRKS:YR(t);VR(t)||e._err(t,Q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function xs(e,t){e._err(t,Q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tn.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function gL(e,t){t.tagID===h.HTML?(e._insertElement(t,re.HTML),e.insertionMode=D.BEFORE_HEAD):Rs(e,t)}function EL(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Rs(e,t)}function Rs(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function yL(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.HEAD:{e._insertElement(t,re.HTML),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD;break}default:Ls(e,t)}}function TL(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ls(e,t):e._err(t,Q.endTagWithoutMatchingOpenElement)}function Ls(e,t){e._insertFakeElement($.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD,e._processToken(t)}function Pn(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,lt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,lt.RAWTEXT):(e._insertElement(t,re.HTML),e.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,lt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,lt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=D.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case h.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ps(e,t)}}function bL(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=D.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Ps(e,t);break}case h.TEMPLATE:{vi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function vi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,Q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Q.endTagWithoutMatchingOpenElement)}function Ps(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function xL(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Pn(e,t);break}case h.NOSCRIPT:{e._err(t,Q.nestedNoscriptInHead);break}default:Ds(e,t)}}function vL(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case h.BR:{Ds(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ds(e,t){const n=t.type===He.EOF?Q.openElementsLeftAfterEof:Q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=D.IN_HEAD,e._processToken(t)}function _L(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BODY:{e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=D.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,re.HTML),e.insertionMode=D.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,Q.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Pn(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ms(e,t)}}function CL(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Ms(e,t);break}case h.TEMPLATE:{vi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ms(e,t){e._insertFakeElement($.BODY,h.BODY),e.insertionMode=D.IN_BODY,Il(e,t)}function Il(e,t){switch(t.type){case He.CHARACTER:{vb(e,t);break}case He.WHITESPACE_CHARACTER:{xb(e,t);break}case He.COMMENT:{Wf(e,t);break}case He.START_TAG:{Lt(e,t);break}case He.END_TAG:{Ol(e,t);break}case He.EOF:{wb(e,t);break}}}function xb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function SL(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function wL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function AL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_FRAMESET)}function kL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function NL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&zf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,re.HTML)}function IL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function OL(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),n||(e.formElement=e.openElements.current))}function RL(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const s=e.openElements.tagIDs[i];if(n===h.LI&&s===h.LI||(n===h.DD||n===h.DT)&&(s===h.DD||s===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==h.ADDRESS&&s!==h.DIV&&s!==h.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function LL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.tokenizer.state=lt.PLAINTEXT}function PL(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1}function DL(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName($.A);n&&(Vh(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ML(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FL(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Vh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function BL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function UL(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tn.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=D.IN_TABLE}function _b(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Cb(e){const t=fb(e,di.TYPE);return t!=null&&t.toLowerCase()===rL}function HL(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),Cb(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function jL(e,t){e._appendElement(t,re.HTML),t.ackSelfClosing=!0}function zL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function WL(e,t){t.tagName=$.IMG,t.tagID=h.IMG,_b(e,t)}function VL(e,t){e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.tokenizer.state=lt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=D.TEXT}function YL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,lt.RAWTEXT)}function $L(e,t){e.framesetOk=!1,e._switchToTextParsing(t,lt.RAWTEXT)}function H1(e,t){e._switchToTextParsing(t,lt.RAWTEXT)}function qL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===D.IN_TABLE||e.insertionMode===D.IN_CAPTION||e.insertionMode===D.IN_TABLE_BODY||e.insertionMode===D.IN_ROW||e.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function GL(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function QL(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,re.HTML)}function KL(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,re.HTML)}function XL(e,t){e._reconstructActiveFormattingElements(),yb(t),Wh(t),t.selfClosing?e._appendElement(t,re.MATHML):e._insertElement(t,re.MATHML),t.ackSelfClosing=!0}function ZL(e,t){e._reconstructActiveFormattingElements(),Tb(t),Wh(t),t.selfClosing?e._appendElement(t,re.SVG):e._insertElement(t,re.SVG),t.ackSelfClosing=!0}function j1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function Lt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{ML(e,t);break}case h.A:{DL(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{NL(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{kL(e,t);break}case h.LI:case h.DD:case h.DT:{RL(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{_b(e,t);break}case h.HR:{zL(e,t);break}case h.RB:case h.RTC:{QL(e,t);break}case h.RT:case h.RP:{KL(e,t);break}case h.PRE:case h.LISTING:{IL(e,t);break}case h.XMP:{YL(e,t);break}case h.SVG:{ZL(e,t);break}case h.HTML:{SL(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{Pn(e,t);break}case h.BODY:{wL(e,t);break}case h.FORM:{OL(e,t);break}case h.NOBR:{FL(e,t);break}case h.MATH:{XL(e,t);break}case h.TABLE:{UL(e,t);break}case h.INPUT:{HL(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{jL(e,t);break}case h.IMAGE:{WL(e,t);break}case h.BUTTON:{PL(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{BL(e,t);break}case h.IFRAME:{$L(e,t);break}case h.SELECT:{qL(e,t);break}case h.OPTION:case h.OPTGROUP:{GL(e,t);break}case h.NOEMBED:case h.NOFRAMES:{H1(e,t);break}case h.FRAMESET:{AL(e,t);break}case h.TEXTAREA:{VL(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?H1(e,t):j1(e,t);break}case h.PLAINTEXT:{LL(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:j1(e,t)}}function JL(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=D.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function eP(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=D.AFTER_BODY,Pb(e,t))}function tP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function nP(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function rP(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement($.P,h.P),e._closePElement()}function iP(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function oP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function sP(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function aP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function uP(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function Sb(e,t){const n=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const a=e.openElements.items[s],l=e.openElements.tagIDs[s];if(i===l&&(i!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(a,l))break}}function Ol(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{Vh(e,t);break}case h.P:{rP(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{tP(e,t);break}case h.LI:{iP(e);break}case h.DD:case h.DT:{oP(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{sP(e);break}case h.BR:{uP(e);break}case h.BODY:{JL(e,t);break}case h.HTML:{eP(e,t);break}case h.FORM:{nP(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{aP(e,t);break}case h.TEMPLATE:{vi(e,t);break}default:Sb(e,t)}}function wb(e,t){e.tmplInsertionModeStack.length>0?Lb(e,t):Yh(e,t)}function lP(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cP(e,t){e._err(t,Q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function sf(e,t){if(e.openElements.currentTagId!==void 0&&bb.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D.IN_TABLE_TEXT,t.type){case He.CHARACTER:{kb(e,t);break}case He.WHITESPACE_CHARACTER:{Ab(e,t);break}}else na(e,t)}function dP(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_CAPTION}function fP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function hP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,h.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,$h(e,t)}function pP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_TABLE_BODY}function mP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,h.TBODY),e.insertionMode=D.IN_TABLE_BODY,Rl(e,t)}function gP(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function EP(e,t){Cb(t)?e._appendElement(t,re.HTML):na(e,t),t.ackSelfClosing=!0}function yP(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ho(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{mP(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}case h.COL:{hP(e,t);break}case h.FORM:{yP(e,t);break}case h.TABLE:{gP(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{pP(e,t);break}case h.INPUT:{EP(e,t);break}case h.CAPTION:{dP(e,t);break}case h.COLGROUP:{fP(e,t);break}default:na(e,t)}}function Ys(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{vi(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:na(e,t)}}function na(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Il(e,t),e.fosterParentingEnabled=n}function Ab(e,t){e.pendingCharacterTokens.push(t)}function kb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function vs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)na(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Nb=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function TP(e,t){const n=t.tagID;Nb.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,ho(e,t)):Lt(e,t)}function bP(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,n===h.TABLE&&Ys(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Ol(e,t)}}function $h(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.COL:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{Pn(e,t);break}default:el(e,t)}}function xP(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case h.TEMPLATE:{vi(e,t);break}case h.COL:break;default:el(e,t)}}function el(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE,e._processToken(t))}function Rl(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement($.TR,h.TR),e.insertionMode=D.IN_ROW,Ll(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,ho(e,t));break}default:ho(e,t)}}function Vf(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Ys(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:Ys(e,t)}}function Ll(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,Rl(e,t));break}default:ho(e,t)}}function Ib(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,Vf(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,Vf(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:Ys(e,t)}}function vP(e,t){const n=t.tagID;Nb.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),Ll(e,t)):Lt(e,t)}function _P(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ib(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:Ol(e,t)}}function Ob(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,re.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,re.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}}}function Rb(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{vi(e,t);break}}}function CP(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ob(e,t)}function SP(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Rb(e,t)}function wP(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{Pn(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=D.IN_TABLE,e.insertionMode=D.IN_TABLE,ho(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,e.insertionMode=D.IN_COLUMN_GROUP,$h(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,e.insertionMode=D.IN_TABLE_BODY,Rl(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=D.IN_ROW,e.insertionMode=D.IN_ROW,Ll(e,t);break}default:e.tmplInsertionModeStack[0]=D.IN_BODY,e.insertionMode=D.IN_BODY,Lt(e,t)}}function AP(e,t){t.tagID===h.TEMPLATE&&vi(e,t)}function Lb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Yh(e,t)}function kP(e,t){t.tagID===h.HTML?Lt(e,t):tl(e,t)}function Pb(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=D.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else tl(e,t)}function tl(e,t){e.insertionMode=D.IN_BODY,Il(e,t)}function NP(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.FRAMESET:{e._insertElement(t,re.HTML);break}case h.FRAME:{e._appendElement(t,re.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Pn(e,t);break}}}function IP(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=D.AFTER_FRAMESET))}function OP(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function RP(e,t){t.tagID===h.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function LP(e,t){t.tagID===h.HTML?Lt(e,t):Uu(e,t)}function Uu(e,t){e.insertionMode=D.IN_BODY,Il(e,t)}function PP(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function DP(e,t){t.chars=rt,e._insertCharacters(t)}function MP(e,t){e._insertCharacters(t),e.framesetOk=!1}function Db(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==re.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function FP(e,t){if(ZR(t))Db(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===re.MATHML?yb(t):i===re.SVG&&(JR(t),Tb(t)),Wh(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function BP(e,t){if(t.tagID===h.P||t.tagID===h.BR){Db(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===re.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}$.AREA,$.BASE,$.BASEFONT,$.BGSOUND,$.BR,$.COL,$.EMBED,$.FRAME,$.HR,$.IMG,$.INPUT,$.KEYGEN,$.LINK,$.META,$.PARAM,$.SOURCE,$.TRACK,$.WBR;const UP=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,HP=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),z1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Mb(e,t){const n=KP(e),i=ab("type",{handlers:{root:jP,element:zP,text:WP,comment:Bb,doctype:VP,raw:$P},unknown:qP}),s={parser:n?new U1(z1):U1.getFragmentParser(void 0,z1),handle(c){i(c,s)},stitches:!1,options:t||{}};i(e,s),ko(s,Kn());const a=n?s.parser.document:s.parser.getFragment(),l=jO(a,{file:s.options.file});return s.stitches&&Bh(l,"comment",function(c,f,p){const g=c;if(g.value.stitch&&p&&f!==void 0){const E=p.children;return E[f]=g.value.stitch,f}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function Fb(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function jP(e,t){Fb(e.children,t)}function zP(e,t){GP(e,t),Fb(e.children,t),QP(e,t)}function WP(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:ra(e)};ko(t,Kn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function VP(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ra(e)};ko(t,Kn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YP(e,t){t.stitches=!0;const n=XP(e);if("children"in e&&"children"in n){const i=Mb({type:"root",children:e.children},t.options);n.children=i.children}Bb({type:"comment",value:{stitch:n}},t)}function Bb(e,t){const n=e.value,i={type:He.COMMENT,data:n,location:ra(e)};ko(t,Kn(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function $P(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,Ub(t,Kn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(UP,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function qP(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))YP(n,t);else{let i="";throw HP.has(n.type)&&(i=". 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"+i)}}function ko(e,t){Ub(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=lt.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 Ub(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function GP(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===lt.PLAINTEXT)return;ko(t,Kn(e));const i=t.parser.openElements.current;let s="namespaceURI"in i?i.namespaceURI:ci.html;s===ci.html&&n==="svg"&&(s=ci.svg);const a=nR({...e,children:[]},{space:s===ci.svg?"svg":"html"}),l={type:He.START_TAG,tagName:n,tagID:Ao(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ra(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function QP(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&cR.includes(n)||t.parser.tokenizer.state===lt.PLAINTEXT)return;ko(t,wl(e));const i={type:He.END_TAG,tagName:n,tagID:Ao(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ra(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===lt.RCDATA||t.parser.tokenizer.state===lt.RAWTEXT||t.parser.tokenizer.state===lt.SCRIPT_DATA)&&(t.parser.tokenizer.state=lt.DATA)}function KP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ra(e){const t=Kn(e)||{line:void 0,column:void 0,offset:void 0},n=wl(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 XP(e){return"children"in e?fo({...e,children:[]}):fo(e)}function ZP(e){return function(t,n){return Mb(t,{...e,file:n})}}const JP="_prose_1l8lv_1",e4="_mdAccordion_1l8lv_16",Hb={prose:JP,mdAccordion:e4};function t4(e,{openFirst:t=!1}={}){if(!e)return"";const n=/~H~~([\s\S]*?)~~\s*~M~~([\s\S]*?)~~/g;let i=0;return e.replace(n,(s,a,l)=>{const c=t&&i===0?" open":"";return i+=1,`
|
|
83
|
+
<details class="${Hb.mdAccordion}"${c}>
|
|
84
|
+
<summary>${String(a).trim()}</summary>
|
|
85
|
+
<div class="p-4">
|
|
86
|
+
${String(l).trim()}
|
|
87
|
+
</div>
|
|
88
|
+
</details>`})}function n4({children:e,className:t="",openFirst:n=!1}){const s=t4(typeof e=="string"?e:"",{openFirst:n});return x.jsx("div",{className:["prose",Hb.prose,t].filter(Boolean).join(" "),children:x.jsx(wO,{rehypePlugins:[ZP],children:s})})}function r4(e){return x.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:"size-5",...e,children:[x.jsx("rect",{x:"0.666667",y:"0.666667",width:"10.6667",height:"10.6667",rx:"5.33333",stroke:"#B1B1B1",strokeWidth:"1.33333"}),x.jsx("circle",{cx:"6.00065",cy:"3.33268",r:"0.666667",fill:"#B1B1B1"}),x.jsx("rect",{x:"5.33398",y:"5.33398",width:"1.33333",height:"4",fill:"#B1B1B1"})]})}const W1={},jb=({tooltipData:e,openFirst:t=!1,trigger:n})=>{if(!e?.trim())return null;const i=s=>{s.stopPropagation()};return x.jsxs(_h,{children:[x.jsx(Ch,{asChild:!0,children:n??x.jsx("button",{className:W1.iconBtn,"aria-label":"Open tooltip",onClick:i,children:x.jsx(r4,{className:W1.iconSvg})})}),x.jsx(Sh,{className:"bg-[#000] text-white text-[1.1rem] leading-[1.45] w-auto max-w-[300px]",side:"top",children:x.jsx(n4,{openFirst:t,children:e})})]})},zb=_.forwardRef(({values:e,value:t,onValueChange:n,placeholder:i="Sort by",title:s,className:a,dropdownWidth:l,align:c="start",showClear:f=!1,getTooltipByMaterialAndSection:p,sectionName:g},E)=>{const[b,T]=_.useState(!1),w=_.useRef(null);_.useEffect(()=>{if(!b)return;const O=F=>{const z=F.target,B=w.current;B&&(B.contains(z)||z===B)||T(!1)},I=F=>F.key==="Escape"&&T(!1);return window.addEventListener("scroll",O,!0),window.addEventListener("resize",O),document.addEventListener("keydown",I),()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",O),document.removeEventListener("keydown",I)}},[b]);const C=t?e.find(O=>O.value===t):void 0,k=O=>{n(O),T(!1)},S=()=>n(null);return x.jsxs(dT,{open:b,onOpenChange:T,children:[x.jsxs(fT,{ref:E,"aria-haspopup":"listbox","aria-expanded":b,className:Ft("inline-flex flex-row items-center justify-between gap-[8px] rounded-full bg-[var(--label-bg, #f5f5f5)] px-2 py-2 text-xs font-medium h-9 text-blackborder border-transparent hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--main-accent-color)]sm:w-[102px]",a),children:[x.jsx("span",{className:Ft(!C&&"text-xs text-gray-700 ms:text-sm"),children:C?.label??i}),x.jsx(yy,{className:Ft("h-4 w-[16px] transition-transform",b&&"rotate-180")})]}),x.jsxs(hT,{ref:w,align:c,sideOffset:6,className:Ft("bg-white border border-gray-200 rounded-xl shadow-lg z-50 max-h-80 overflow-y-auto p-0",l||"w-[var(--radix-popover-trigger-width)]"),style:{WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},onTouchStart:O=>O.stopPropagation(),onTouchMove:O=>O.stopPropagation(),onWheel:O=>O.stopPropagation(),children:[(s??i)&&x.jsx("div",{className:"px-4 pt-3 pb-2 text-[1rem] font-regular",children:s??i}),f&&t!==null&&x.jsx("div",{className:"px-4 py-2 border-b",children:x.jsxs("button",{onClick:S,className:"inline-flex flex-row items-center gap-[4px] text-[0.95rem] text-black hover:text-[var(--main-accent-color)] transition-colors",children:[x.jsx(ah,{className:"h-3.5 w-[12px].5"}),"Clear"]})}),x.jsx("div",{role:"listbox","aria-activedescendant":C?`option-${C.value}`:void 0,className:"py-1",children:e.map(O=>{const I=t===O.value;return x.jsxs("div",{id:`option-${O.value}`,role:"option","aria-selected":I,tabIndex:0,className:Ft("flex flex-row items-start justify-between gap-[8px] px-4 py-2 cursor-pointer","hover:bg-gray-50 focus:bg-gray-50 focus:outline-none"),onClick:()=>k(O.value),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),k(O.value))},children:[x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("span",{className:"text-[1.05rem]",children:O.label}),(()=>{if(!p||!g)return null;const F=p(O.value,g);return F?.Description?x.jsx(jb,{tooltipData:F.Description}):null})()]}),I?x.jsx(Ey,{className:"h-4 w-[16px]"}):null]},O.value)})})]})]})});zb.displayName="SingleSelect";const Wb=({size:e=80,trackClassName:t="text-white",accentClassName:n="text-amber-700",className:i="",isOverlay:s=!0})=>x.jsx("div",{className:s?"absolute inset-0 flex flex-row items-center justify-center backdrop-blur bg-black/30 z-150":"inline-flex flex-row items-center justify-center",children:x.jsxs("span",{role:"status","aria-label":"Loading",className:i,style:{width:e,height:e},children:[x.jsxs("svg",{viewBox:"0 0 80 80",className:"animate-spin",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M40.0003 6.66675V20.0001M54.0003 26.0001L63.667 16.3334M60.0003 40.0001H73.3337M54.0003 54.0001L63.667 63.6667M40.0003 60.0001V73.3334M16.3337 63.6667L26.0003 54.0001M6.66699 40.0001H20.0003M16.3337 16.3334L26.0003 26.0001",stroke:"currentColor",className:t,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:"M54 25.9999L63.6667 16.3333",stroke:"currentColor",className:n,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})]}),x.jsx("span",{className:"sr-only",children:"Loading…"})]})}),i4=({open:e,target:t,children:n,offset:i=12,maxWidthPx:s=420,forceOverflowVisible:a=!0})=>{const l=_.useRef(null),[c,f]=_.useState({top:0,left:0,arrowLeft:16});return _.useEffect(()=>{if(!e||!t||!a)return;const p=t.style.position;getComputedStyle(t).position==="static"&&(t.style.position="relative");const E=t.style.overflow;return t.style.overflow="visible",()=>{t.style.position=p,t.style.overflow=E}},[e,t,a]),_.useLayoutEffect(()=>{if(!e||!t)return;const p=10,g=8,E=()=>{const C=l.current;if(!C)return;const k={vis:C.style.visibility,top:C.style.top,left:C.style.left,maxW:C.style.maxWidth,transform:C.style.transform};C.style.visibility="hidden",C.style.top="0px",C.style.left="0px",C.style.transform="none",C.style.maxWidth=`min(${s}px, calc(100vw - ${g*2}px))`;const S=C.getBoundingClientRect(),O=S.width,I=S.height,F=t.getBoundingClientRect(),z=F.left,B=Math.max(g,Math.min(z,window.innerWidth-g-O)),W=Math.max(g,F.top-(I+i+p)),V=z-B+16,le=Math.max(8,Math.min(V,O-8));C.style.visibility=k.vis,C.style.top=k.top,C.style.left=k.left,C.style.maxWidth=k.maxW,C.style.transform=k.transform,f({top:W,left:B,arrowLeft:le})};E();const b=()=>E(),T=()=>E();window.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",T);const w=new ResizeObserver(()=>E());return w.observe(t),()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",T),w.disconnect()}},[e,t,i,s]),!e||!t?null:go.createPortal(x.jsx("div",{className:"fixed inset-0 z-[60000] pointer-events-none",children:x.jsxs("div",{ref:l,role:"tooltip",className:`
|
|
89
|
+
absolute
|
|
90
|
+
rounded-2xl
|
|
91
|
+
text-white text-sm leading-6 font-medium
|
|
92
|
+
pointer-events-auto
|
|
93
|
+
`,style:{top:c.top,left:c.left,maxWidth:`min(${s}px, calc(100vw - 16px))`,backgroundColor:"rgba(40,40,40,0.8)"},children:[x.jsx("div",{className:"px-4 py-3",children:n}),x.jsx("span",{className:`
|
|
94
|
+
absolute -bottom-[10px] h-0 w-0
|
|
95
|
+
border-l-[10px] border-l-transparent
|
|
96
|
+
border-r-[10px] border-r-transparent
|
|
97
|
+
border-t-[10px]
|
|
98
|
+
`,style:{left:c.arrowLeft,borderTopColor:"rgba(40,40,40,0.8)"}})]})}),document.querySelector("#root-container"))},Vb=({val:e,onDelete:t})=>{const[n,i]=_.useState(null),[s,a]=_.useState(!1),[l,c]=_.useState({materialName:"",parentName:"",productName:""}),f=e.metadata,p=g=>{g.stopPropagation(),t(e)};return x.jsxs(x.Fragment,{children:[x.jsxs("div",{tabIndex:0,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&g.preventDefault()},className:`
|
|
99
|
+
bg-[var(--background-grey)] relative w-[40px] h-[40px] border border-solid border-[var(--border)]
|
|
100
|
+
rounded-sm aspect-square overflow-hidden transition sm:w-[64px] sm:h-[64px]
|
|
101
|
+
select-none
|
|
102
|
+
`,"aria-label":`Selected swatch ${e.name??e.assetId}`,title:"Click to remove",onMouseEnter:g=>{i(g.currentTarget),c({materialName:f?.label||e?.name||"empty_materialName",parentName:e.parentName,productName:e.productName||"empty_product_name"}),a(!0)},onMouseLeave:()=>a(!1),children:[mi.getImage(e)?x.jsx(fh,{item:e}):x.jsx(hh,{item:e}),x.jsx("div",{onClick:p,className:`absolute top-0 right-0 m-2 w-[16px] h-[16px] flex flex-row justify-center items-center
|
|
103
|
+
bg-[var(--background-grey)] rounded-2xl border-none z-[100] cursor-pointer`,children:x.jsx(Ks,{className:"w-[8px] h-2 stroke-[var(--svg-dark)]"})})]}),x.jsx(i4,{open:s,target:n,offset:8,children:x.jsxs(x.Fragment,{children:[l.materialName," | ",l.parentName]})})]})},o4=()=>x.jsx("div",{className:["relative w-[40px] h-[40px] rounded-sm aspect-square overflow-hidden","border border-solid border-[var(--border)] bg-[var(--sidebar-b)] sm:w-[64px] sm:h-[64px]"].join(" "),"aria-hidden":!0}),s4=({selectedMaterials:e,containerStyles:t="p-[var(--padding)] border-t border-solid border-[var(--border)] shrink-0 sm:p-[var(--sm-padding)]"})=>{const n=jt(),i=je(ml),s=je(mo),a=c=>{if(!i)return;const f=E=>E.metadata?.label===c.metadata?.label&&E.parentName===c.parentName,p=s.find(E=>E.items.some(f)),g=p?.items.filter(E=>!f(E));if(p){const E={assetId:p.assetId||"empty_assetId",name:p.name,items:g||[]};n(bf(E)),n(xf(E))}},l=Math.max(0,Ut-e.length);return x.jsxs("div",{className:t,children:[x.jsxs("div",{className:"flex flex-row justify-between items-center mb-[12px]",children:[x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:"",children:"Swatches list"}),x.jsx("span",{className:"absolute top-0 right-[-20px] font-medium text-[var(--main-accent-color)] text-[8px] leading-none",children:"Free"})]}),x.jsxs("div",{children:[e.length,"/",Ut," Selected"]})]}),x.jsxs("div",{className:"flex flex-row flex-wrap gap-[8px]",children:[e.map((c,f)=>{const p=c.metadata;return x.jsx(Vb,{val:c,onDelete:a},`${p?.label||f}/${c.parentName}`)}),Array.from({length:l}).map((c,f)=>x.jsx(o4,{},`mock-${f}`))]})]})},Yb=()=>{const e=jt(),t=je(mo),n=_.useMemo(()=>t.flatMap(s=>s.items.map(a=>({...a,productName:s.name}))),[t]),i=()=>{n.length&&e(AE(!0))};return x.jsxs("div",{className:`flex flex-col border-t border-[var(--border)] shrink-0 shadow-[0_-2px_10px_rgba(40,40,40,0.10)]
|
|
104
|
+
sm:flex-row
|
|
105
|
+
`,children:[x.jsx(s4,{selectedMaterials:n,containerStyles:"flex flex-col p-[var(--sm-padding)] shrink-0 sm:w-[50%] sm:border-r sm:border-[var(--border)]"}),x.jsx("div",{className:"flex flex-row w-full p-[var(--sm-padding)] border-t border-[var(--border)] sm:border-none lg:w-[50%] sm:justify-center sm:items-center lg:justify-end lg:items-end",children:x.jsx("div",{className:"w-full lg:w-[50%]",children:x.jsx(DE,{onClick:i,children:"ADD SWATCHES TO CART"})})})]})},a4=[{label:"Clear All",value:""},{label:"A-Z",value:"asc"},{label:"Z-A",value:"dsc"}],u4=()=>{const e=jt(),t=je(FC),n=je(RE),i=je(MC),s=je(mo),[a,l]=_.useState(Py),[c,f]=_.useState(""),[p,g]=_.useState(""),[E,b]=_.useState(null);_.useEffect(()=>{const S=setTimeout(()=>{g(c.trim().toLowerCase())},300);return()=>clearTimeout(S)},[c]),_.useEffect(()=>{e(ks())},[e]);const T=_.useMemo(()=>IA.getUniqueCategories(i),[i]),w=S=>S.toLowerCase(),C=_.useMemo(()=>new Intl.Collator(void 0,{sensitivity:"base",numeric:!1}),[]),k=_.useMemo(()=>{let S=i;if(a?.value){const O=w(a.value);S=S.filter(I=>w(I.collection??"")===O)}return p&&(S=S.filter(O=>w(O.name).includes(p))),E==="asc"?S=[...S].sort((O,I)=>C.compare(O.name,I.name)):E==="dsc"?S=[...S].sort((O,I)=>C.compare(I.name,O.name)):S=[...S],S},[i,a,p,E,C]);return x.jsxs("div",{className:"relative flex flex-col h-full min-h-0 w-full",children:[x.jsxs("div",{className:"flex-shrink-0",children:[x.jsx("div",{className:"h-40 overflow-hidden",children:x.jsx("img",{src:"https://clownfish-app-cvxrz.ondigitalocean.app/assets/header_image-BZoSlAHj.png",className:"object-cover w-full h-full"})}),x.jsxs("header",{className:"flex flex-col border-b border-[var(--border)] lg:flex-row lg:justify-between",children:[x.jsx("h1",{className:"m-0! p-[var(--sm-padding)] text-base font-medium",children:"Swatches store"}),x.jsx("div",{className:"flex flex-row justify-center items-center border-t border-[var(--border)] p-[var(--sm-padding)] text-xs font-medium leading-[24px] lg:border-none",children:x.jsxs("span",{children:["Choose 5 free swatches to curate your perfect design. Plus get"," ",x.jsx("span",{className:"text-[var(--main-accent-color)] underline",children:"free design advice"})," ","from our experts"]})})]})]}),x.jsxs("div",{className:"flex flex-col flex-1 min-h-0",children:[(t||n)&&x.jsx(Wb,{}),x.jsxs("div",{className:"flex flex-row w-full items-center justify-between gap-[16px] border-b border-[var(--border)] p-[var(--sm-padding)]",children:[x.jsxs("div",{className:"flex flex-row h-[36px] w-full items-center justify-between gap-[16px] shrink-0 lg:max-w-[382px]",children:[x.jsxs("div",{className:"relative h-[36px] flex-1 min-w-0 lg:max-w-[240px]",children:[x.jsx("input",{type:"text",placeholder:"Search",value:c,onChange:S=>f(S.target.value),className:`
|
|
106
|
+
h-full w-full rounded-2xl border border-[var(--border)] bg-[var(--background)]
|
|
107
|
+
px-4 pr-8 text-sm text-black placeholder-[var(--text-muted)]
|
|
108
|
+
transition focus:border-[var(--main-accent-color)] focus:outline-none
|
|
109
|
+
`}),x.jsx("div",{className:`
|
|
110
|
+
pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 sm:right-4
|
|
111
|
+
[&_svg_path]:stroke-[var(--svg-dark)]
|
|
112
|
+
`,children:x.jsx(AA,{width:20,height:20})})]}),x.jsx(zb,{title:"Sort by",placeholder:"Sort by",values:a4,value:E,onValueChange:b,className:"shrink-0 w-[90px] xxs:w-[100px] bg-[var(--label-bg)] sm:py-2 sm:px-4 sm:w-[102px]",dropdownWidth:"w-64"})]}),x.jsx(Sg,{items:T,activeId:a.productId,onSelect:S=>l(S),className:"hidden lg:flex flex-row shrink-0 overflow-x-auto"})]}),x.jsx(Sg,{items:T,activeId:a.productId,onSelect:S=>l(S),className:"h-[64px] p-[var(--sm-padding)] border-b border-[var(--border)] lg:hidden"}),x.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-[var(--sm-padding)]",children:[x.jsx("div",{className:"mb-4",children:"Select Product"}),k.length?x.jsx("ul",{className:"grid grid-cols-2 gap-[16px] sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-9",children:k.map(S=>x.jsx(NA,{productListItem:S},S.name))}):x.jsx("div",{className:"flex flex-row h-full items-center justify-center",children:"No products were found"})]}),s.length?x.jsx(Yb,{}):null]})]})};function l4(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pl="Checkbox",[c4]=El(Pl),[d4,qh]=c4(Pl);function f4(e){const{__scopeCheckbox:t,checked:n,children:i,defaultChecked:s,disabled:a,form:l,name:c,onCheckedChange:f,required:p,value:g="on",internal_do_not_use_render:E}=e,[b,T]=Jf({prop:n,defaultProp:s??!1,onChange:f,caller:Pl}),[w,C]=_.useState(null),[k,S]=_.useState(null),O=_.useRef(!1),I=w?!!l||!!w.closest("form"):!0,F={checked:b,disabled:a,setChecked:T,control:w,setControl:C,name:c,form:l,value:g,hasConsumerStoppedPropagationRef:O,required:p,defaultChecked:zr(s)?!1:s,isFormControl:I,bubbleInput:k,setBubbleInput:S};return x.jsx(d4,{scope:t,...F,children:h4(E)?E(F):i})}var $b="CheckboxTrigger",qb=_.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},s)=>{const{control:a,value:l,disabled:c,checked:f,required:p,setControl:g,setChecked:E,hasConsumerStoppedPropagationRef:b,isFormControl:T,bubbleInput:w}=qh($b,e),C=cn(s,g),k=_.useRef(f);return _.useEffect(()=>{const S=a?.form;if(S){const O=()=>E(k.current);return S.addEventListener("reset",O),()=>S.removeEventListener("reset",O)}},[a,E]),x.jsx(At.button,{type:"button",role:"checkbox","aria-checked":zr(f)?"mixed":f,"aria-required":p,"data-state":Jb(f),"data-disabled":c?"":void 0,disabled:c,value:l,...i,ref:C,onKeyDown:Ht(t,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ht(n,S=>{E(O=>zr(O)?!0:!O),w&&T&&(b.current=S.isPropagationStopped(),b.current||S.stopPropagation())})})});qb.displayName=$b;var Gb=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:i,checked:s,defaultChecked:a,required:l,disabled:c,value:f,onCheckedChange:p,form:g,...E}=e;return x.jsx(f4,{__scopeCheckbox:n,checked:s,defaultChecked:a,disabled:c,required:l,onCheckedChange:p,name:i,form:g,value:f,internal_do_not_use_render:({isFormControl:b})=>x.jsxs(x.Fragment,{children:[x.jsx(qb,{...E,ref:t,__scopeCheckbox:n}),b&&x.jsx(Zb,{__scopeCheckbox:n})]})})});Gb.displayName=Pl;var Qb="CheckboxIndicator",Kb=_.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:i,...s}=e,a=qh(Qb,n);return x.jsx(Eo,{present:i||zr(a.checked)||a.checked===!0,children:x.jsx(At.span,{"data-state":Jb(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Kb.displayName=Qb;var Xb="CheckboxBubbleInput",Zb=_.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:a,defaultChecked:l,required:c,disabled:f,name:p,value:g,form:E,bubbleInput:b,setBubbleInput:T}=qh(Xb,e),w=cn(n,T),C=l4(a),k=qy(i);_.useEffect(()=>{const O=b;if(!O)return;const I=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(I,"checked").set,B=!s.current;if(C!==a&&z){const W=new Event("click",{bubbles:B});O.indeterminate=zr(a),z.call(O,zr(a)?!1:a),O.dispatchEvent(W)}},[b,C,a,s]);const S=_.useRef(zr(a)?!1:a);return x.jsx(At.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??S.current,required:c,disabled:f,name:p,value:g,form:E,...t,tabIndex:-1,ref:w,style:{...t.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Zb.displayName=Xb;function h4(e){return typeof e=="function"}function zr(e){return e==="indeterminate"}function Jb(e){return zr(e)?"indeterminate":e?"checked":"unchecked"}function p4({className:e,...t}){return x.jsx(Gb,{"data-slot":"checkbox",className:Ft(`
|
|
113
|
+
bg-white peer border-input dark:bg-input/30
|
|
114
|
+
data-[state=checked]:bg-transparent
|
|
115
|
+
data-[state=checked]:text-black
|
|
116
|
+
focus-visible:border-ring focus-visible:ring-ring/50
|
|
117
|
+
aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40
|
|
118
|
+
aria-invalid:border-destructive
|
|
119
|
+
size-4 shrink-0 rounded-[4px] border shadow-xs
|
|
120
|
+
transition-shadow outline-none focus-visible:ring-[3px]
|
|
121
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
122
|
+
`,e),...t,children:x.jsx(Kb,{"data-slot":"checkbox-indicator",className:"flex flex-row items-center justify-center text-current transition-none",children:x.jsx(Ey,{className:"size-3"})})})}const ia=_.forwardRef(({options:e,values:t,onValueChange:n,placeholder:i="Select options...",className:s="w-full min-w-[80px] 2xs:min-w-[100px] xs:min-w-[110px] sm:max-w-[auto] sm:min-w-[130px] lg:min-w-[160px]",dropdownWidth:a,align:l="start",getTooltipByMaterialAndSection:c,sectionName:f},p)=>{const[g,E]=_.useState(!1),b=_.useRef(null);_.useEffect(()=>{if(!g)return;const S=I=>{const F=I.target,z=b.current;z&&(z.contains(F)||F===z)||E(!1)},O=I=>{I.key==="Escape"&&E(!1)};return window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),document.addEventListener("keydown",O),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S),document.removeEventListener("keydown",O)}},[g]);const T=(S,O)=>{n(O?[...t,S]:t.filter(I=>I!==S))},w=()=>{n([])},C=t.length,k=C===0?i:C===1?e.find(S=>S.value===t[0])?.label||`${i} selected`:x.jsxs("div",{className:"flex flex-row items-center w-full",children:[x.jsx("span",{className:"truncate mr-1",children:i}),x.jsx("span",{className:`
|
|
123
|
+
flex-none flex flex-row justify-center items-center
|
|
124
|
+
w-[20px] h-5 rounded-full
|
|
125
|
+
bg-[var(--main-accent-color)] text-white
|
|
126
|
+
text-[1rem] leading-none
|
|
127
|
+
select-none pointer-events-none
|
|
128
|
+
overflow-hidden
|
|
129
|
+
`,children:C})]});if(e.length)return x.jsxs(dT,{open:g,onOpenChange:E,children:[x.jsxs(fT,{ref:p,className:Ft("flex flex-row items-center justify-between rounded-full border border-[var(--main-accent-color)] px-2 sm:px-4 py-2 bg-white cursor-pointer hover:bg-gray-50 data-[state=open]:border-primary hover:border-primary focus:border-primary min-h-9",s),children:[x.jsx("div",{className:"w-full text-xs truncate text-left leading-[20px] sm:text-sm",children:k}),x.jsx(yy,{className:Ft("h-4 w-[16px] transition-transform",g&&"rotate-180")})]}),x.jsxs(hT,{ref:b,className:Ft("bg-white border rounded-lg shadow-lg z-50 max-h-75 text-sm overflow-y-auto overscroll-behavior-y-contain touch-pan-y p-2",a||"w-[var(--radix-popover-trigger-width)]"),align:l,sideOffset:4,style:{WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},onTouchStart:S=>{S.stopPropagation()},onTouchMove:S=>{S.stopPropagation()},onWheel:S=>{S.stopPropagation()},children:[C>0&&x.jsx("div",{className:"flex flex-row gap-[8px] items-center justify-between px-2 py-1 mb-2 border-b",children:x.jsxs("button",{onClick:w,className:"text-sm text-black hover:text-primary transition-color cursor-pointer duration-200 flex flex-row items-center gap-[4px]",children:[x.jsx(ah,{className:"h-3 w-[12px]"}),"Clear all"]})}),x.jsx("div",{className:"flex flex-col gap-[4px]",children:e.map(S=>{const O=t.includes(S.value);return x.jsxs("div",{className:"flex flex-row items-start gap-[8px] px-2 py-1 hover:bg-gray-50 rounded transition-background duration-300 cursor-pointer",onClick:()=>T(S.value,!O),children:[x.jsx(p4,{checked:O,className:"size-6",onCheckedChange:I=>T(S.value,I)}),x.jsxs("div",{className:"flex-1 flex flex-row items-center justify-between",children:[x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("span",{className:"text-sm",children:S.label}),(()=>{if(!c||!f)return null;const I=c(S.value,f);return I&&I.Description?x.jsx(jb,{tooltipData:I?.Description}):null})()]}),S.count!==void 0&&x.jsx("span",{className:"text-sm text-gray-800 bg-gray-100 px-2 py-0.5 ml-2 rounded-full whitespace-nowrap",children:S.count})]})]},S.value)})})]})]})});ia.displayName="MultiSelect";const ex=({containerStyles:e,selectStyles:t})=>{const n=jt(),i=je(PC),s=je(po),[a,l]=_.useState([]),[c,f]=_.useState([]);_.useEffect(()=>{if(!i?.length)return;const g=i.map(E=>{if(E.metadata){const{Name:b,Label:T}=E.metadata||{};return{value:b,label:T,id:b}}else{const{label:b,value:T}=E||{};return{value:T,label:b,id:T}}});l(g)},[i]);const p=(g,E)=>{if(E.length){const b=pE(E);if(b.length){const T=i.filter(k=>k.metadata?b.includes(k.metadata?.Label):b.includes(k.value));f(b);const w=Yu.mapFiltersFromValues(T,s),C=Yu.getPositiveSelectedFilers(w);C.length&&C.forEach(k=>{const{filterName:S,filterKeys:O}=k;n(hl({filterName:S,values:O}))}),n(Od({attributes:T}))}else n(Od({attributes:i}))}else f([]),n(Od({attributes:i}))};return x.jsxs("div",{className:e,children:[x.jsx("span",{children:"Product element"}),x.jsx(ia,{options:a,values:c,onValueChange:g=>p("PanelElement",g),placeholder:"All product elements",className:t,dropdownWidth:"w-80"})]})},m4=()=>{const e=jt(),t=je(po),n=je(Qs),[i,s]=_.useState([]);_.useEffect(()=>{if(n?.length){const l=[...new Set(n.map(c=>c.metadata?.Finish||c.metadata?.Material))].filter(Boolean).map(c=>{const f=n.filter(p=>p.metadata?.Finish===c||p.metadata?.Material===c).length;return{value:c,label:c,count:f}});l?.length&&s(l)}},[n]);const a=(l,c)=>{e(hl({filterName:l,values:c}))};return x.jsx(ia,{options:i,values:t.Finish,onValueChange:l=>a("Finish",l),placeholder:"Material",dropdownWidth:"w-80"})},g4=()=>{const e=jt(),t=je(po),n=je(Qs),[i,s]=_.useState([]);_.useEffect(()=>{if(n?.length){const l=[...new Set(n.map(c=>c?.metadata?.Color).filter(Boolean).map(c=>c.split(",").map(f=>f.trim())).flat())].map(c=>{const f=n.filter(p=>p.metadata?.Color&&p.metadata?.Color.split(",").map(g=>g.trim()).includes(c)).length;return{value:c,label:c,count:f}});l?.length&&s(l)}},[n]);const a=(l,c)=>{e(hl({filterName:l,values:c}))};return x.jsx(ia,{options:i,values:t.Color,onValueChange:l=>a("Color",l),placeholder:"Color",dropdownWidth:"w-80"})},E4=()=>{const e=jt(),t=je(po),n=je(Qs),[i,s]=_.useState([]);_.useEffect(()=>{if(n?.length){const l=[...new Set(n.map(c=>c?.metadata?.Look).filter(Boolean).map(c=>c.split(",").map(f=>f.trim())).flat())].map(c=>{const f=n.filter(p=>p.metadata?.Look&&p.metadata?.Look.split(",").map(g=>g.trim()).includes(c)).length;return{value:c,label:c,count:f}});l?.length&&s(l)}},[n]);const a=(l,c)=>{e(hl({filterName:l,values:c}))};return x.jsx(ia,{options:i,values:t.Look,onValueChange:l=>a("Look",l),placeholder:"Look",dropdownWidth:"w-80"})},tx=()=>x.jsxs("div",{className:"flex flex-row items-center gap-[16px] p-[var(--sm-padding)]",children:[x.jsx(m4,{}),x.jsx(g4,{}),x.jsx(E4,{})]}),y4=()=>x.jsxs("div",{className:`flex flex-col justify-between border-b border-[var(--border)]
|
|
130
|
+
sm:flex-row
|
|
131
|
+
`,children:[x.jsx(ex,{containerStyles:`flex flex-row justify-between items-center gap-[8px] p-[var(--sm-padding)] w-full text-xs
|
|
132
|
+
border-b border-[var(--border)]
|
|
133
|
+
sm:max-w-[360px] sm:text-sm sm:border-none
|
|
134
|
+
`,selectStyles:"min-w-[auto] max-w-[154px] sm:max-w-[auto] sm:min-w-[180px] font-normal"}),x.jsx(tx,{})]});function to(e,t,n){let i=n.initialDeps??[],s;function a(){var l,c,f,p;let g;n.key&&((l=n.debug)!=null&&l.call(n))&&(g=Date.now());const E=e();if(!(E.length!==i.length||E.some((w,C)=>i[C]!==w)))return s;i=E;let T;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(T=Date.now()),s=t(...E),n.key&&((f=n.debug)!=null&&f.call(n))){const w=Math.round((Date.now()-g)*100)/100,C=Math.round((Date.now()-T)*100)/100,k=C/16,S=(O,I)=>{for(O=String(O);O.length<I;)O=" "+O;return O};console.info(`%c⏱ ${S(C,5)} /${S(w,5)} ms`,`
|
|
135
|
+
font-size: .6rem;
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,n?.key)}return(p=n?.onChange)==null||p.call(n,s),s}return a.updateDeps=l=>{i=l},a}function V1(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const T4=(e,t)=>Math.abs(e-t)<1.01,b4=(e,t,n)=>{let i;return function(...s){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,s),n)}},Y1=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},x4=e=>e,v4=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let s=t;s<=n;s++)i.push(s);return i},_4=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const s=l=>{const{width:c,height:f}=l;t({width:Math.round(c),height:Math.round(f)})};if(s(Y1(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(l=>{const c=()=>{const f=l[0];if(f?.borderBoxSize){const p=f.borderBoxSize[0];if(p){s({width:p.inlineSize,height:p.blockSize});return}}s(Y1(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},$1={passive:!0},q1=typeof window>"u"?!0:"onscrollend"in window,C4=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let s=0;const a=e.options.useScrollendEvent&&q1?()=>{}:b4(i,()=>{t(s,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:E,isRtl:b}=e.options;s=E?n.scrollLeft*(b&&-1||1):n.scrollTop,a(),t(s,g)},c=l(!0),f=l(!1);f(),n.addEventListener("scroll",c,$1);const p=e.options.useScrollendEvent&&q1;return p&&n.addEventListener("scrollend",f,$1),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",f)}},S4=(e,t,n)=>{if(t?.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},w4=(e,{adjustments:t=0,behavior:n},i)=>{var s,a;const l=e+t;(a=(s=i.scrollElement)==null?void 0:s.scrollTo)==null||a.call(s,{[i.options.horizontal?"left":"top"]:l,behavior:n})};class A4{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(a=>{const l=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var s;(s=i())==null||s.disconnect(),n=null},observe:s=>{var a;return(a=i())==null?void 0:a.observe(s,{box:"border-box"})},unobserve:s=>{var a;return(a=i())==null?void 0:a.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,s])=>{typeof s>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:x4,rangeExtractor:v4,onChange:()=>{},measureElement:S4,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,s;(s=(i=this.options).onChange)==null||s.call(i,this,n)},this.maybeNotify=to(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const s=new Map,a=new Map;for(let l=i-1;l>=0;l--){const c=n[l];if(s.has(c.lane))continue;const f=a.get(c.lane);if(f==null||c.end>f.end?a.set(c.lane,c):c.end<f.end&&s.set(c.lane,!0),s.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=to(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,i,s,a,l)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:s,getItemKey:a,enabled:l}),{key:!1}),this.getMeasurements=to(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:s,getItemKey:a,enabled:l},c)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,f);for(let g=f;g<n;g++){const E=a(g),b=this.options.lanes===1?p[g-1]:this.getFurthestMeasurement(p,g),T=b?b.end+this.options.gap:i+s,w=c.get(E),C=typeof w=="number"?w:this.options.estimateSize(g),k=T+C,S=b?b.lane:g%this.options.lanes;p[g]={index:g,start:T,size:C,end:k,key:E,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=to(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,s,a)=>this.range=n.length>0&&i>0?k4({measurements:n,outerSize:i,scrollOffset:s,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=to(()=>{let n=null,i=null;const s=this.calculateRange();return s&&(n=s.startIndex,i=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,s,a,l)=>a===null||l===null?[]:n({startIndex:a,endIndex:l,overscan:i,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,s=n.getAttribute(i);return s?parseInt(s,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(n,i)=>{const s=this.indexFromElement(n),a=this.measurementsCache[s];if(!a)return;const l=a.key,c=this.elementsCache.get(l);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(l,n)),n.isConnected&&this.resizeItem(s,this.options.measureElement(n,i,this))},this.resizeItem=(n,i)=>{const s=this.measurementsCache[n];if(!s)return;const a=this.itemSizeCache.get(s.key)??s.size,l=i-a;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,l,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,i)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,s)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(s))});return}this._measureElement(n,void 0)},this.getVirtualItems=to(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const s=[];for(let a=0,l=n.length;a<l;a++){const c=n[a],f=i[c];s.push(f)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return V1(i[nx(0,i.length-1,s=>V1(i[s]).start,n)])},this.getOffsetForAlignment=(n,i,s=0)=>{const a=this.getSize(),l=this.getScrollOffset();i==="auto"&&(i=n>=l+a?"end":"start"),i==="center"?n+=(s-a)/2:i==="end"&&(n-=a);const c=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.measurementsCache[n];if(!s)return;const a=this.getSize(),l=this.getScrollOffset();if(i==="auto")if(s.end>=l+a-this.options.scrollPaddingEnd)i="end";else if(s.start<=l+this.options.scrollPaddingStart)i="start";else return[l,i];const c=i==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,i,s.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:i="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,i),{adjustments:void 0,behavior:s})},this.scrollToIndex=(n,{align:i="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const l=10,c=p=>{if(!this.targetWindow)return;const g=this.getOffsetForIndex(n,p);if(!g){console.warn("Failed to get offset for index:",n);return}const[E,b]=g;this._scrollToOffset(E,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const T=this.getScrollOffset(),w=this.getOffsetForIndex(n,b);if(!w){console.warn("Failed to get offset for index:",n);return}T4(w[0],T)||f(b)})},f=p=>{this.targetWindow&&(a++,a<l?this.targetWindow.requestAnimationFrame(()=>c(p)):console.warn(`Failed to scroll to index ${n} after ${l} attempts.`))};c(i)},this.scrollBy=(n,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let s;if(i.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=i[i.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let l=i.length-1;for(;l>=0&&a.some(c=>c===null);){const c=i[l];a[c.lane]===null&&(a[c.lane]=c.end),l--}s=Math.max(...a.filter(c=>c!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const nx=(e,t,n,i)=>{for(;e<=t;){const s=(e+t)/2|0,a=n(s);if(a<i)e=s+1;else if(a>i)t=s-1;else return s}return e>0?e-1:0};function k4({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const s=e.length-1,a=f=>e[f].start;if(e.length<=i)return{startIndex:0,endIndex:s};let l=nx(0,s,a,n),c=l;if(i===1)for(;c<s&&e[c].end<n+t;)c++;else if(i>1){const f=Array(i).fill(0);for(;c<s&&f.some(g=>g<n+t);){const g=e[c];f[g.lane]=g.end,c++}const p=Array(i).fill(n+t);for(;l>=0&&p.some(g=>g>=n);){const g=e[l];p[g.lane]=g.start,l--}l=Math.max(0,l-l%i),c=Math.min(s,c+(i-1-c%i))}return{startIndex:l,endIndex:c}}const G1=typeof document<"u"?_.useLayoutEffect:_.useEffect;function N4(e){const t=_.useReducer(()=>({}),{})[1],n={...e,onChange:(s,a)=>{var l;a?go.flushSync(t):t(),(l=e.onChange)==null||l.call(e,s,a)}},[i]=_.useState(()=>new A4(n));return i.setOptions(n),G1(()=>i._didMount(),[]),G1(()=>i._willUpdate()),i}function rx(e){return N4({observeElementRect:_4,observeElementOffset:C4,scrollToFn:w4,...e})}const I4=e=>x.jsx("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:x.jsx("path",{d:"M14.6668 1L5.50016 10.1667L1.3335 6",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),nl=({val:e,onClick:t})=>{const n=je(yi),i=je(mo),s=_.useMemo(()=>i.flatMap(p=>p.items),[i]),a=s.length?s:n,l=p=>{t(p)},c=e&&e.metadata?.value,f=a.find(p=>p.metadata?.value===c&&p.parentName===e.parentName);return x.jsxs("div",{className:"flex flex-col gap-[8px]",children:[x.jsxs("button",{onClick:()=>l(e),className:`
|
|
138
|
+
relative w-full aspect-square overflow-hidden rounded
|
|
139
|
+
border transition
|
|
140
|
+
${f?"border-amber-700":"border-transparent"}
|
|
141
|
+
`,children:[x.jsx("div",{className:"absolute inset-0",children:mi.getImage(e)?x.jsx(fh,{item:e}):x.jsx(hh,{item:e})}),x.jsx("div",{className:`
|
|
142
|
+
absolute top-0 right-0 m-2 h-[30px] w-[30px]
|
|
143
|
+
flex flex-row items-center justify-center rounded-2xl border-none
|
|
144
|
+
bg-[var(--background-grey)] pointer-events-none
|
|
145
|
+
${f?"bg-[var(--main-accent-color)]":""}
|
|
146
|
+
`,children:x.jsx(I4,{})})]},e.assetId),x.jsxs("div",{className:"mb-[12px] flex flex-col",children:[x.jsxs("span",{className:"mb-[4px] text-sm font-semibold leading-[16px]",children:[e.metadata?.label||e.label," "]}),x.jsxs("span",{className:"text-xs font-medium leading-[14px]",children:[e.parentName," "]})]})]})},O4=({isOpen:e,onClose:t,title:n="Message",width:i,height:s,children:a})=>{const l=_.useRef(null);return _.useEffect(()=>{const c=f=>{l.current&&!l.current.contains(f.target)&&t()};return e&&document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[e,t]),e?ME.createPortal(x.jsx("div",{className:"fixed inset-0 z-99999999999999 flex flex-row items-center justify-center bg-black/40 p-4",children:x.jsxs("div",{ref:l,className:`
|
|
147
|
+
bg-white rounded-2xl shadow-xl flex flex-col overflow-hidden
|
|
148
|
+
max-w-[90vw] max-h-[90vh]
|
|
149
|
+
`,style:{width:i||"auto",height:s||"auto"},children:[x.jsxs("div",{className:"flex flex-row items-center justify-between p-[var(--sm-padding)] border-b border-[var(--border)]",children:[x.jsx("span",{className:"text-base font-semibold text-[var(--text)]",children:n}),x.jsx("button",{onClick:t,className:"flex flex-row justify-center items-center p-1 rounded-full bg-[var(--border)] hover:bg-gray-100 transition [&_svg_path]:stroke-[var(--svg-dark)] w-[30px] h-[30px]",children:x.jsx(Ks,{className:"text-[var(--text)] ",width:10,hanging:10})})]}),x.jsx("div",{className:"flex flex-col gap-[12px] text-[var(--text-muted)]",children:a})]})}),document.querySelector("#root-container")):null},ix=({isOpen:e,onClose:t})=>x.jsx(O4,{isOpen:e,onClose:t,width:320,title:"Swatch Limit",children:x.jsxs("div",{children:[x.jsxs("div",{className:"text-sm font-medium p-[var(--sm-padding)] border-b border-[var(--border)] leading-[20px]",children:[x.jsx("p",{className:"mb-4",children:"You've reached your maximum number of swatches!"}),x.jsx("p",{children:"If you'd like to add another swatch please remove an existing swatch from your cart"})]}),x.jsx("div",{className:"p-[var(--sm-padding)] w-full",children:x.jsx("button",{className:`
|
|
150
|
+
w-full block py-3 rounded-full
|
|
151
|
+
bg-[var(--main-accent-color)] text-white font-bold capitalize
|
|
152
|
+
`,onClick:t,children:"OK"})})]})}),R4=({containerStyles:e="flex-1 min-h-0 overflow-y-auto p-[var(--padding)] sm:p-[var(--sm-padding)] ",gridStyles:t="grid grid-cols-1 gap-[8px] sm:grid-cols-3",desktopColumnsCount:n=3})=>{const i=jt(),s=_.useRef(null),a=je(Qs),l=je(po),c=je(ml),f=je(mo),[p,g]=_.useState(!1),E=_.useMemo(()=>f.flatMap(oe=>oe.items),[f]),b=_.useMemo(()=>f.flatMap(oe=>oe.items).reduce((oe,ee)=>oe+(ee.count??0),0),[f]),T=_.useMemo(()=>a.filter(oe=>{const ee=l.Finish.length===0||l.Finish.some(j=>oe.metadata?.Finish===j||oe.metadata?.Material===j),X=l.Color.length===0||oe.metadata?.Color&&l.Color.some(j=>oe.metadata?.Color?.split(",").map(pe=>pe.trim()).includes(j)),ue=oe.metadata?.Look,fe=!l.Look||l.Look.length===0||l.Look.some(j=>ue&&ue.includes(j));return ee&&X&&fe}),[l,a]),w=typeof window<"u"?window.matchMedia("(min-width: 640px)").matches:!1,C=w?n:1,k=Math.ceil(T.length/C),S=w?300:200,O=rx({count:k,getScrollElement:()=>s.current,estimateSize:()=>S,overscan:24,measureElement:oe=>oe?.getBoundingClientRect().height}),I=O.getVirtualItems(),F=O.getTotalSize(),z=I[0]?.index??0,B=I[I.length-1]?.index??-1,W=z*C,V=Math.min((B+1)*C,T.length),le=T.slice(W,V),ge=I[0]?.start??0,J=F-(I[I.length-1]?.end??0),ne=oe=>{if(!c)return;const ee=f.find(fe=>c.assetId===fe.assetId),X=fe=>fe.metadata?.label===oe.metadata?.label&&fe.parentName===oe.parentName,ue=E.some(X);if(!ue&&b>=5){g(!0);return}if(ue){const fe=E.filter(N=>!X(N)),pe={assetId:f.find(N=>N.items.some(H=>H.metadata?.label===oe.metadata?.label&&H.parentName===oe.parentName))?.assetId||c.assetId,name:c.name,items:fe};i(bf(pe)),i(xf(pe))}else if(E.length<5){const fe={...oe,count:1},j=ee?[...ee.items,fe]:[fe],pe={assetId:c.assetId,name:c.name,items:j};i(bf(pe)),i(xf(pe))}};return x.jsxs("div",{ref:s,className:e,children:[x.jsx(ix,{isOpen:p,onClose:()=>g(!1)}),x.jsx("div",{style:{height:ge},"aria-hidden":!0}),x.jsx("div",{className:t,children:le.map((oe,ee)=>{const X=W+ee,ue=`${oe.metadata?.label||X}/${oe.parentName}`;return(X+1)%C===0||X===T.length-1?x.jsx("div",{ref:O.measureElement,children:x.jsx(nl,{val:oe,onClick:ne})},ue):x.jsx(nl,{val:oe,onClick:ne},ue)})}),x.jsx("div",{style:{height:J},"aria-hidden":!0})]})},L4=()=>{const e=jt(),t=je(ml);_.useEffect(()=>()=>{e(yC())},[]);const n=()=>{e(bC())};return x.jsxs("div",{className:"flex flex-col h-full ",children:[x.jsx("header",{className:"flex flex-row shrink-0 items-center justify-between border-b border-[var(--border)] p-[var(--sm-padding)]",children:x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("button",{className:"[&_svg_path]:stroke-[var(--main-accent-color)] cursor-pointer",onClick:n,children:x.jsx(ph,{})}),x.jsx("h2",{className:"m-0! text-base font-medium leading-[1.6]",children:t?.name})]})}),x.jsxs("div",{className:"flex flex-col min-h-0 flex-1 ",children:[x.jsx("div",{className:"shrink-0",children:x.jsx(y4,{})}),x.jsx(R4,{containerStyles:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-[var(--sm-padding)]",gridStyles:"grid grid-cols-2 gap-[16px] sm:grid-cols-4 lg:grid-cols-5 xl:grid-cols-7 2xl:grid-cols-9",desktopColumnsCount:6}),x.jsx(Yb,{})]})]})},P4=({onSendData:e})=>{const t=je(DC),n=je(ml);return x.jsx(x.Fragment,{children:t?x.jsx(wA,{onSendData:e}):n?x.jsx(L4,{}):x.jsx(u4,{})})},rl={SWATCH:"swatch",CART:"cart"},D4="_overlay_1aet8_1",M4="_panel_1aet8_10",F4="_enter_1aet8_38",B4="_exit_1aet8_42",_s={overlay:D4,panel:M4,enter:F4,exit:B4},ox=({children:e,isOpen:t,setIsOpen:n})=>{const i=_.useRef(null),s=_.useRef(null),a=()=>n(!1);return _.useLayoutEffect(()=>{t&&typeof document<"u"&&(s.current=document.activeElement)},[t]),_.useEffect(()=>{t?i.current?.focus():s.current?.focus?.()},[t]),_.useEffect(()=>{if(!t)return;const l=c=>{c.key==="Escape"&&a()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]),_.useEffect(()=>{if(!t)return;const l=document.documentElement,c=document.body,f=l.style.overflow,p=c.style.overflow;return l.style.overflow="hidden",c.style.overflow="hidden",()=>{l.style.overflow=f,c.style.overflow=p}},[t]),t?go.createPortal(x.jsx("div",{className:lr(_s.overlay),onMouseDown:a,onTouchStart:a,children:x.jsx("div",{ref:i,tabIndex:-1,className:Ft(_s.panel,_s.right,t?_s.enter:_s.exit,"bg-[var(--sidebar-bg)]"),onMouseDown:l=>l.stopPropagation(),onTouchStart:l=>l.stopPropagation(),children:e})}),document.querySelector("#root-container")):null};class U4{static getCartPreparedOption(t){return t?.length?t.map(n=>({...n,count:1})):[]}}const H4=()=>x.jsx("div",{className:["relative w-[40px] h-[40px] rounded-sm aspect-square overflow-hidden","border border-solid border-[var(--border)] bg-[var(--sidebar-b)] sm:w-[64px] sm:h-[64px]"].join(" "),"aria-hidden":!0}),j4=({selectedMaterials:e,containerStyles:t="p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0 shadow-[0_-2px_10px_rgba(40,40,40,0.10)]"})=>{const n=jt(),i=a=>{n(pl({selectedMaterial:a,materialCount:1,selectedMaterials:e}))},s=Math.max(0,Ut-e.length);return x.jsxs("div",{className:t,children:[x.jsxs("div",{className:"flex flex-row justify-between items-center mb-[12px]",children:[x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:"",children:"Swatches list"}),x.jsx("span",{className:"absolute top-0 right-[-20px] font-medium text-[var(--main-accent-color)] text-[8px] leading-none",children:"Free"})]}),x.jsxs("div",{children:[e.length,"/",Ut," Selected"]})]}),x.jsxs("div",{className:"flex flex-row flex-wrap gap-[8px]",children:[e.map((a,l)=>{const c=a.metadata;return x.jsx(Vb,{val:a,onDelete:i},`${c?.label||l}/${a.parentName}`)}),Array.from({length:s}).map((a,l)=>x.jsx(H4,{},`mock-${l}`))]})]})},z4=()=>{const e=je(yi)??[];return x.jsx(j4,{selectedMaterials:e})},W4=({containerStyles:e="flex-1 min-h-0 overflow-y-auto p-[var(--sm-padding)]",gridStyles:t="grid grid-cols-2 gap-[var(--sm-padding)] sm:grid-cols-3 ",desktopColumnsCount:n=3})=>{const i=Zf(),s=_.useRef(null),a=je(Qs),l=je(yi),c=je(po),[f,p]=_.useState(!1),g=_.useMemo(()=>l.reduce((J,ne)=>J+(ne.count??0),0),[l]),E=_.useMemo(()=>a.filter(J=>{const ne=c.Finish.length===0||c.Finish.some(ue=>J.metadata?.Finish===ue||J.metadata?.Material===ue),oe=c.Color.length===0||J.metadata?.Color&&c.Color.some(ue=>J.metadata?.Color?.split(",").map(fe=>fe.trim()).includes(ue)),ee=J.metadata?.Look,X=!c.Look||c.Look.length===0||c.Look.some(ue=>ee&&ee.includes(ue));return ne&&oe&&X}),[c,a]),b=typeof window<"u"?window.matchMedia("(min-width: 640px)").matches:!1,T=b?n:1,w=Math.ceil(E.length/T),C=b?300:200,k=rx({count:w,getScrollElement:()=>s.current,estimateSize:()=>C,overscan:24,measureElement:J=>J?.getBoundingClientRect().height}),S=k.getVirtualItems(),O=k.getTotalSize(),I=S[0]?.index??0,F=S[S.length-1]?.index??-1,z=I*T,B=Math.min((F+1)*T,E.length),W=E.slice(z,B),V=S[0]?.start??0,le=O-(S[S.length-1]?.end??0),ge=J=>{i(pl({materialCount:g,selectedMaterials:l,selectedMaterial:{...J,count:1},limitCb:()=>p(!0)}))};return x.jsxs("div",{ref:s,className:e,children:[x.jsx(ix,{isOpen:f,onClose:()=>p(!1)}),x.jsx("div",{style:{height:V},"aria-hidden":!0}),x.jsx("div",{className:t,children:W.map((J,ne)=>{const oe=z+ne,ee=`${J.metadata?.label||oe}/${J.parentName}`;return(oe+1)%T===0||oe===E.length-1?x.jsx("div",{ref:k.measureElement,children:x.jsx(nl,{val:J,onClick:ge})},ee):x.jsx(nl,{val:J,onClick:ge},ee)})}),x.jsx("div",{style:{height:le},"aria-hidden":!0})]})},V4=({isOpen:e,onToggleSidebar:t,onSetActiveTab:n})=>{const i=jt(),s=je(yi)??[],a=je(RE),l=()=>{const c=U4.getCartPreparedOption(s);c&&i(SC(c)),n(rl.CART)};return x.jsxs(ox,{isOpen:e,setIsOpen:t,children:[x.jsxs("header",{className:"flex flex-row p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]",children:[x.jsx("h2",{className:"m-0! text-[16px] leading-[1.6] font-medium",children:"Order free swatches"}),x.jsx("button",{className:`flex flex-row justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
153
|
+
border-none cursor-pointer rounded-full
|
|
154
|
+
[&_svg_path]:stroke-[var(--svg-dark)]`,onClick:t,children:x.jsx(Ks,{width:10,height:10})})]}),x.jsxs("div",{className:"flex flex-col h-full min-h-0 relative",children:[a&&x.jsx(Wb,{}),x.jsx(ex,{containerStyles:"flex flex-row justify-between items-center shrink-0 p-[var(--sm-padding)] border-b border-solid border-[var(--border)]",selectStyles:"min-w-[auto] max-w-[154px] sm:max-w-[auto] sm:min-w-[250px]"}),x.jsx("div",{className:"w-full border-b border-b-border",children:x.jsx(tx,{})}),x.jsx(W4,{}),x.jsx(z4,{}),x.jsx("div",{className:"p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0",children:x.jsx("button",{className:"w-full bg-[var(--main-accent-color)] text-white py-3 rounded-full font-bold cursor-pointer",onClick:l,children:"ADD SWATCHES TO CART"})})]})]})},Y4=({onSetActiveTab:e,onToggleSidebar:t})=>{const n=je(yi),i=_.useMemo(()=>n.reduce((s,a)=>s+(a.count??0),0),[n]);return x.jsxs("header",{className:"flex flex-row MaterialMultiProductList justify-between items-center border-b border-solid border-[var(--border)] p-[var(--sm-padding)]",children:[x.jsxs("div",{className:"flex flex-row items-center gap-[4px]",children:[x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("button",{className:"[&_svg_path]:stroke-[var(--main-accent-color)] cursor-pointer",onClick:()=>e&&e(rl.SWATCH),children:x.jsx(ph,{})}),x.jsx("h2",{className:"m-0! text-base leading-[1.6] font-medium ",children:"Your cart"})]}),i>=Ut?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-[var(--main-accent-color)] hidden text-xs sm:block",children:["(",Ut,") You reached maximum amount of swatches"]}),x.jsxs("span",{className:"text-[var(--main-accent-color)] block sm:hidden",children:["(",Ut,") Max"]})]}):null]}),x.jsx("button",{className:`flex flex-row justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
155
|
+
border-none cursor-pointer rounded-full
|
|
156
|
+
[&_svg_path]:stroke-[var(--svg-dark)]`,onClick:t,children:x.jsx(Ks,{width:10,height:10})})]})},Yf=e=>e.cart.items,$4=ll(Yf,e=>e.reduce((t,n)=>t+n.count,0)),q4=ll($4,e=>Math.max(0,Ut-e)),G4=ll(q4,e=>e>0),Q4=()=>{const e=jt(),t=je(yi)??[],n=je(G4),i=l=>{e(xC({selectedMaterial:l})),e(pl({selectedMaterial:l,materialCount:1,selectedMaterials:t}))},s=l=>{e(vC({selectedMaterial:l}))},a=l=>{e(_C({selectedMaterial:l}))};return x.jsx("ul",{className:"flex flex-col flex-1 min-h-0 overflow-y-auto",children:t?.map(l=>x.jsx(Ly,{item:l,canInc:n,onDelete:()=>i(l),onIncrement:()=>s(l),onDecrement:()=>a(l)},`${l.assetId}/${l.parentName}`))})},K4=({isOpen:e,onToggleSidebar:t,onSetActiveTab:n,onSendData:i})=>{const s=je(Yf),a=je(Yf)??[];return x.jsxs(ox,{isOpen:e,setIsOpen:t,children:[x.jsx(Y4,{onSetActiveTab:n,onToggleSidebar:t}),x.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[x.jsx(Q4,{}),x.jsx(PE,{materials:a}),x.jsx("div",{className:"p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0",children:x.jsx("button",{className:"w-full bg-[var(--main-accent-color)] text-white py-3 rounded-full font-bold cursor-pointer",onClick:()=>i(s),children:"GO TO SHIPPING"})})]})]})},X4=({isOpen:e,onToggleSidebar:t,onSendData:n})=>{const[i,s]=_.useState(rl.SWATCH),a=l=>{s(l)};return x.jsx(x.Fragment,{children:i===rl.SWATCH?x.jsx(V4,{isOpen:e,onToggleSidebar:t,onSetActiveTab:a}):x.jsx(K4,{isOpen:e,onToggleSidebar:t,onSetActiveTab:a,onSendData:n})})},Z4=qf({swatches:wE,cart:NE,multiProductCart:OE});let af=null;function J4(){return uE({reducer:Z4,devTools:!1,middleware:e=>e({thunk:!0})})}const eD=()=>(af||(af=J4()),af),tD=Zf.withTypes();hE.withTypes();function sx({children:e}){return x.jsx(w2,{store:eD(),children:e})}const nD=({isOpen:e,uiDataType:t,data:n,assetId:i,onToggleSidebar:s,onSendData:a})=>{const c=[wt.UI,wt.FETCH_DATA_PRODUCT].includes(t),f=tD();return _.useEffect(()=>{if(t===wt.UI){if(!n)throw new Error("SwatchCart-module: Attributes are important");const p=Sf.getTransformedData({dataType:wt.UI,data:n});p&&f(Tf(p))}else t===wt.FETCH_DATA_PRODUCT&&i?(async()=>{try{const g=await f(As({assetId:i})).unwrap(),E=Sf.getTransformedData({dataType:wt.FETCH_DATA_PRODUCT,data:g});f(Tf(E))}catch(g){console.error("Failed to load product",g)}})():t===wt.FETCH_DATA_ALL&&(async()=>{try{f(ks()).unwrap()}catch(g){console.error("Failed to load product",g)}})()},[t,n,i]),x.jsx("div",{id:"root-container",className:"relative flex flex-col h-full min-h-0 w-full",children:x.jsxs(sx,{children:[x.jsx(mC,{position:"top-center",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"dark",transition:CE}),e?x.jsxs(x.Fragment,{children:[c?null:x.jsx(P4,{onSendData:a,onToggleSidebar:s}),c?x.jsx(X4,{isOpen:e,uiDataType:t,data:n,assetId:i,onToggleSidebar:s,onSendData:a}):null]}):null]})})};function rD(e){const t=n=>x.jsx(sx,{children:x.jsx(e,{...n})});return t.displayName=`withStore(${e.displayName||e.name||"Component"})`,t}const iD=rD(nD);function oD(){const[e,t]=_.useState(!0),[n,i]=_.useState(wt.FETCH_DATA_ALL),s=()=>{t(c=>!c)},a=c=>{console.log("handleSetData",c)},l=()=>{const c=n===wt.FETCH_DATA_ALL?wt.FETCH_DATA_PRODUCT:wt.FETCH_DATA_ALL;i(c)};return x.jsxs("div",{className:"swatch-module-root",children:[x.jsxs("div",{className:"flex flex-col gap-[12px] m-2",children:[x.jsxs("div",{children:["Active type Module -"," ",x.jsx("span",{className:"p-1 rounded-sm bg-amber-300",children:n===wt.FETCH_DATA_ALL?"List product":"Single product"})]}),x.jsxs("div",{children:["Status -"," ",x.jsx("span",{className:"p-1 rounded-sm bg-amber-300",children:e?"Open":"Close"})]}),x.jsx("div",{className:"mb-[4px]",children:x.jsxs("button",{type:"button",onClick:s,className:"px-4 py-2 rounded bg-[var(--main-accent-color)] text-white",children:[e?"Close":"Open"," module"]})}),x.jsx("div",{children:x.jsxs("button",{type:"button",onClick:l,className:"px-4 py-2 rounded bg-[var(--main-accent-color)] text-white",children:["Change type to"," ",n===wt.FETCH_DATA_ALL?"Single product":"List product"," ","module"]})})]}),x.jsx("div",{className:`${n===wt.FETCH_DATA_ALL?"h-[802px] min-h-0 overflow-hidden flex flex-col border border-[var(--border)]":""}`,children:x.jsx(iD,{isOpen:e,uiDataType:n,assetId:"9aa4a6cc-05a2-4de0-b376-ef3ef2271bfe",onToggleSidebar:s,onSendData:a})})]})}l_.createRoot(document.getElementById("root")).render(x.jsx(_.StrictMode,{children:x.jsx(oD,{})}));
|