hasting-swatchcart-module 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/assets/header_image-BZoSlAHj.png +0 -0
  2. package/dist/assets/index-BO60QL3R.js +156 -0
  3. package/dist/assets/index-BdUKWxPm.css +1 -0
  4. package/dist/assets/product_thumb-Bn1S8z9K.png +0 -0
  5. package/dist/index.html +14 -0
  6. package/package.json +102 -102
  7. package/dist/assets/index.css +0 -1
  8. package/dist/cdn/lib/components/SwatchesModule.d.ts +0 -11
  9. package/dist/cdn/lib/main.d.ts +0 -9
  10. package/dist/cdn/lib/store/LibraryProvider.d.ts +0 -4
  11. package/dist/cdn/lib/store/rootReducer.d.ts +0 -11
  12. package/dist/cdn/lib/store/store.d.ts +0 -25
  13. package/dist/cdn/lib/store/withStore.d.ts +0 -2
  14. package/dist/cdn/lib/vite-env.d.ts +0 -1
  15. package/dist/cdn/main.css +0 -1
  16. package/dist/cdn/main.js +0 -31430
  17. package/dist/cdn/src/app/App.d.ts +0 -2
  18. package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +0 -3
  19. package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +0 -3
  20. package/dist/cdn/src/app/assets/svg/ChevronSVGIcon.d.ts +0 -3
  21. package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +0 -3
  22. package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +0 -1
  23. package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +0 -3
  24. package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +0 -3
  25. package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +0 -3
  26. package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +0 -3
  27. package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +0 -1
  28. package/dist/cdn/src/app/main.d.ts +0 -1
  29. package/dist/cdn/src/app/providers/StoreProvider.d.ts +0 -6
  30. package/dist/cdn/src/app/store/rootReducer.d.ts +0 -11
  31. package/dist/cdn/src/app/store/store.d.ts +0 -24
  32. package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +0 -5
  33. package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +0 -13
  34. package/dist/cdn/src/features/Cart/model/selectors.d.ts +0 -223
  35. package/dist/cdn/src/features/Cart/model/types.d.ts +0 -7
  36. package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +0 -7
  37. package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +0 -1
  38. package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +0 -10
  39. package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +0 -9
  40. package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +0 -9
  41. package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +0 -14
  42. package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +0 -11
  43. package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +0 -13
  44. package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +0 -4
  45. package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +0 -4
  46. package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +0 -9
  47. package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +0 -38
  48. package/dist/cdn/src/features/MultiProduct/model/thunk.d.ts +0 -11
  49. package/dist/cdn/src/features/MultiProduct/model/types.d.ts +0 -63
  50. package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +0 -1
  51. package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +0 -1
  52. package/dist/cdn/src/features/MultiProduct/ui/MaterialMultiProductList/MaterialMultiProductList.d.ts +0 -42
  53. package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +0 -5
  54. package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +0 -5
  55. package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +0 -6
  56. package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +0 -1
  57. package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +0 -6
  58. package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +0 -1
  59. package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +0 -15
  60. package/dist/cdn/src/features/MultiProduct/ui/SwatchListItem/SwatchListItem.d.ts +0 -41
  61. package/dist/cdn/src/features/MultiProduct/ui/SwatchesMultiProductList/SwatchesMultiProductList.d.ts +0 -29
  62. package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +0 -6
  63. package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +0 -2
  64. package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +0 -2
  65. package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +0 -7
  66. package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +0 -11
  67. package/dist/cdn/src/features/swatches/model/selectors.d.ts +0 -10
  68. package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +0 -28
  69. package/dist/cdn/src/features/swatches/model/thunks.d.ts +0 -12
  70. package/dist/cdn/src/features/swatches/model/types.d.ts +0 -147
  71. package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +0 -1
  72. package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +0 -1
  73. package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +0 -1
  74. package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +0 -1
  75. package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +0 -3
  76. package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +0 -3
  77. package/dist/cdn/src/features/swatches/ui/MaterialSingleProductList/MaterialSingleProductList.d.ts +0 -7
  78. package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +0 -6
  79. package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +0 -8
  80. package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +0 -2
  81. package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +0 -7
  82. package/dist/cdn/src/features/swatches/ui/SwatchesListWrapper/SwatchesListWrapper.d.ts +0 -1
  83. package/dist/cdn/src/features/swatches/utils/constants.d.ts +0 -3
  84. package/dist/cdn/src/features/swatches/utils/types.d.ts +0 -22
  85. package/dist/cdn/src/shared/constants/constants.d.ts +0 -1
  86. package/dist/cdn/src/shared/constants/props.d.ts +0 -1058
  87. package/dist/cdn/src/shared/constants/select.d.ts +0 -4
  88. package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +0 -1
  89. package/dist/cdn/src/shared/types/activeTab.d.ts +0 -5
  90. package/dist/cdn/src/shared/types/fetchData.d.ts +0 -41
  91. package/dist/cdn/src/shared/types/svg.d.ts +0 -3
  92. package/dist/cdn/src/shared/ui/CartPrice/CartPrice.d.ts +0 -7
  93. package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +0 -4
  94. package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +0 -6
  95. package/dist/cdn/src/shared/ui/CustomModal/CustomModal.d.ts +0 -11
  96. package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +0 -8
  97. package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +0 -19
  98. package/dist/cdn/src/shared/ui/Hint/Hint.d.ts +0 -60
  99. package/dist/cdn/src/shared/ui/Label/Label.d.ts +0 -7
  100. package/dist/cdn/src/shared/ui/Loader/Loader.d.ts +0 -10
  101. package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +0 -10
  102. package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +0 -8
  103. package/dist/cdn/src/shared/ui/MaterialListItem/MaterialListItem.d.ts +0 -7
  104. package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +0 -20
  105. package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +0 -1
  106. package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +0 -11
  107. package/dist/cdn/src/shared/ui/SingleSelect/SingleSelect.d.ts +0 -18
  108. package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +0 -11
  109. package/dist/cdn/src/shared/ui/SwatchLimitModal/SwatchLimitModal.d.ts +0 -6
  110. package/dist/cdn/src/shared/ui/popover.d.ts +0 -9
  111. package/dist/cdn/src/shared/utils/cn.d.ts +0 -2
  112. package/dist/cdn/src/shared/utils/uniqueList.d.ts +0 -1
  113. package/dist/components/SwatchesModule.d.ts +0 -11
  114. package/dist/main.cjs +0 -150
  115. package/dist/main.cjs.map +0 -1
  116. package/dist/main.d.ts +0 -9
  117. package/dist/main.js +0 -24254
  118. package/dist/main.js.map +0 -1
  119. package/dist/store/LibraryProvider.d.ts +0 -4
  120. package/dist/store/rootReducer.d.ts +0 -11
  121. package/dist/store/store.d.ts +0 -25
  122. package/dist/store/withStore.d.ts +0 -2
  123. /package/dist/{cdn/vite.svg → vite.svg} +0 -0
@@ -0,0 +1,156 @@
1
+ function r_(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:{}},ps={},xd={exports:{}},Ue={};var O0;function i_(){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,_={};function k(H,Z,L){this.props=H,this.context=Z,this.refs=_,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 I(H,Z,L){this.props=H,this.context=Z,this.refs=_,this.updater=L||T}var O=I.prototype=new S;O.constructor=I,w(O,k.prototype),O.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 ee(H,Z){return{$$typeof:e,type:H.type,key:Z,ref:H.ref,props:H.props,_owner:H._owner}}function me(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function oe(H){var Z={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(L){return Z[L]})}var K=/\/+/g;function ge(H,Z){return typeof H=="object"&&H!==null&&H.key!=null?oe(""+H.key):Z.toString(36)}function te(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===""?"."+ge(Se,0):Te,F(Ie)?(L="",H!=null&&(L=H.replace(K,"$&/")+"/"),te(Ie,Z,L,"",function(Ge){return Ge})):Ie!=null&&(me(Ie)&&(Ie=ee(Ie,L+(!Ie.key||Se&&Se.key===Ie.key?"":(""+Ie.key).replace(K,"$&/")+"/")+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+ge(we,Le);Se+=te(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+ge(we,Le++),Se+=te(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 J(H,Z,L){if(H==null)return H;var Te=[],Ie=0;return te(H,Te,"","",function(we){return Z.call(L,we,Ie++)}),Te}function ce(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},he={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:j,ReactCurrentOwner:B};function N(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:J,forEach:function(H,Z,L){J(H,function(){Z.apply(this,arguments)},L)},count:function(H){var Z=0;return J(H,function(){Z++}),Z},toArray:function(H){return J(H,function(Z){return Z})||[]},only:function(H){if(!me(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=I,Ue.StrictMode=i,Ue.Suspense=f,Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=he,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=me,Ue.lazy=function(H){return{$$typeof:g,_payload:{_status:-1,_result:H},_init:ce}},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=i_()),xd.exports}var L0;function o_(){if(L0)return ps;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 ps.Fragment=n,ps.jsx=l,ps.jsxs=l,ps}var P0;function s_(){return P0||(P0=1,bd.exports=o_()),bd.exports}var x=s_(),C=ol();const Je=il(C),Q1=r_({__proto__:null,default:Je},[C]);var mu={},vd={exports:{}},qt={},_d={exports:{}},Cd={};var D0;function a_(){return D0||(D0=1,(function(e){function t(j,he){var N=j.length;j.push(he);e:for(;0<N;){var H=N-1>>>1,Z=j[H];if(0<s(Z,he))j[H]=he,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 he=j[0],N=j.pop();if(N!==he){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 he}function s(j,he){var N=j.sortIndex-he.sortIndex;return N!==0?N:j.id-he.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,_=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(j){for(var he=n(p);he!==null;){if(he.callback===null)i(p);else if(he.startTime<=j)i(p),he.sortIndex=he.expirationTime,t(f,he);else break;he=n(p)}}function F(j){if(_=!1,O(j),!w)if(n(f)!==null)w=!0,ce(z);else{var he=n(p);he!==null&&fe(F,he.startTime-j)}}function z(j,he){w=!1,_&&(_=!1,S(V),V=-1),T=!0;var N=b;try{for(O(he),E=n(f);E!==null&&(!(E.expirationTime>he)||j&&!oe());){var H=E.callback;if(typeof H=="function"){E.callback=null,b=E.priorityLevel;var Z=H(E.expirationTime<=he);he=e.unstable_now(),typeof Z=="function"?E.callback=Z:E===n(f)&&i(f),O(he)}else i(f);E=n(f)}if(E!==null)var L=!0;else{var Te=n(p);Te!==null&&fe(F,Te.startTime-he),L=!1}return L}finally{E=null,b=N,T=!1}}var B=!1,W=null,V=-1,ee=5,me=-1;function oe(){return!(e.unstable_now()-me<ee)}function K(){if(W!==null){var j=e.unstable_now();me=j;var he=!0;try{he=W(!0,j)}finally{he?ge():(B=!1,W=null)}}else B=!1}var ge;if(typeof I=="function")ge=function(){I(K)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,J=te.port2;te.port1.onmessage=K,ge=function(){J.postMessage(null)}}else ge=function(){k(K,0)};function ce(j){W=j,B||(B=!0,ge())}function fe(j,he){V=k(function(){j(e.unstable_now())},he)}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,ce(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"):ee=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 he=3;break;default:he=b}var N=b;b=he;try{return j()}finally{b=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,he){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var N=b;b=j;try{return he()}finally{b=N}},e.unstable_scheduleCallback=function(j,he,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:he,priorityLevel:j,startTime:N,expirationTime:Z,sortIndex:-1},N>H?(j.sortIndex=N,t(p,j),n(f)===null&&j===n(p)&&(_?(S(V),V=-1):_=!0,fe(F,N-H))):(j.sortIndex=Z,t(f,j),w||T||(w=!0,ce(z))),j},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(j){var he=b;return function(){var N=b;b=he;try{return j.apply(this,arguments)}finally{b=N}}}})(Cd)),Cd}var M0;function u_(){return M0||(M0=1,_d.exports=a_()),_d.exports}var F0;function l_(){if(F0)return qt;F0=1;var e=ol(),t=u_();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 _(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 _(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 _(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){k[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){k[r]=new _(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 _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){k[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){k[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){k[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){k[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function I(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,I);k[o]=new _(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,I);k[o]=new _(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,I);k[o]=new _(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){k[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){k[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function O(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"),ee=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),oe=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),j=Symbol.iterator;function he(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 ee:return"Profiler";case V:return"StrictMode";case ge:return"Suspense";case te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case oe:return(r.displayName||"Context")+".Consumer";case me:return(r._context.displayName||"Context")+".Provider";case K:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case J:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case ce: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 ko(r,o){var u=o.checked;return N({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function No(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 Io(r,o){o=o.checked,o!=null&&O(r,"checked",o,!1)}function vi(r,o){Io(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")?_i(r,o.type,u):o.hasOwnProperty("defaultValue")&&_i(r,o.type,Le(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function ia(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 _i(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 Oo(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return N({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function oa(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 sa(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 aa(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function X(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 pe(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?X(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,Ci=null,Si=null;function Gh(r){if(r=Jo(r)){if(typeof Ml!="function")throw Error(n(280));var o=r.stateNode;o&&(o=Ia(o),Ml(r.stateNode,r.type,o))}}function Qh(r){Ci?Si?Si.push(r):Si=[r]:Ci=r}function Kh(){if(Ci){var r=Ci,o=Si;if(Si=Ci=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,(Ci!==null||Si!==null)&&(Zh(),Kh())}}function Ro(r,o){var u=r.stateNode;if(u===null)return null;var d=Ia(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 Lo={};Object.defineProperty(Lo,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",Lo,Lo),window.removeEventListener("test",Lo,Lo)}catch{Bl=!1}function lx(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 Po=!1,ua=null,la=!1,Ul=null,cx={onError:function(r){Po=!0,ua=r}};function dx(r,o,u,d,m,y,v,P,M){Po=!1,ua=null,lx.apply(cx,arguments)}function fx(r,o,u,d,m,y,v,P,M){if(dx.apply(this,arguments),Po){if(Po){var G=ua;Po=!1,ua=null}else throw Error(n(198));la||(la=!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 hx(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=hx(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,px=t.unstable_shouldYield,mx=t.unstable_requestPaint,at=t.unstable_now,gx=t.unstable_getCurrentPriorityLevel,Hl=t.unstable_ImmediatePriority,sp=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,Ex=t.unstable_LowPriority,ap=t.unstable_IdlePriority,da=null,Mn=null;function yx(r){if(Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(da,r,void 0,(r.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:xx,Tx=Math.log,bx=Math.LN2;function xx(r){return r>>>=0,r===0?32:31-(Tx(r)/bx|0)|0}var fa=64,ha=4194304;function Do(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 pa(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=Do(P):(y&=v,y!==0&&(d=Do(y)))}else v=u&~m,v!==0?d=Do(v):y!==0&&(d=Do(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 vx(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 _x(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]=vx(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=fa;return fa<<=1,(fa&4194240)===0&&(fa=64),r}function zl(r){for(var o=[],u=0;31>u;u++)o.push(r);return o}function Mo(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 Cx(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,ma=[],Er=null,yr=null,Tr=null,Fo=new Map,Bo=new Map,br=[],Sx="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":Fo.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(o.pointerId)}}function Uo(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=Jo(o),o!==null&&Vl(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),r)}function wx(r,o,u,d,m){switch(o){case"focusin":return Er=Uo(Er,r,o,u,d,m),!0;case"dragenter":return yr=Uo(yr,r,o,u,d,m),!0;case"mouseover":return Tr=Uo(Tr,r,o,u,d,m),!0;case"pointerover":var y=m.pointerId;return Fo.set(y,Uo(Fo.get(y)||null,r,o,u,d,m)),!0;case"gotpointercapture":return y=m.pointerId,Bo.set(y,Uo(Bo.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 ga(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=Jo(u),o!==null&&Vl(o),r.blockedOn=u,!1;o.shift()}return!0}function gp(r,o,u){ga(r)&&u.delete(o)}function Ax(){Yl=!1,Er!==null&&ga(Er)&&(Er=null),yr!==null&&ga(yr)&&(yr=null),Tr!==null&&ga(Tr)&&(Tr=null),Fo.forEach(gp),Bo.forEach(gp)}function Ho(r,o){r.blockedOn===o&&(r.blockedOn=null,Yl||(Yl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ax)))}function jo(r){function o(m){return Ho(m,r)}if(0<ma.length){Ho(ma[0],r);for(var u=1;u<ma.length;u++){var d=ma[u];d.blockedOn===r&&(d.blockedOn=null)}}for(Er!==null&&Ho(Er,r),yr!==null&&Ho(yr,r),Tr!==null&&Ho(Tr,r),Fo.forEach(o),Bo.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 wi=F.ReactCurrentBatchConfig,Ea=!0;function kx(r,o,u,d){var m=$e,y=wi.transition;wi.transition=null;try{$e=1,$l(r,o,u,d)}finally{$e=m,wi.transition=y}}function Nx(r,o,u,d){var m=$e,y=wi.transition;wi.transition=null;try{$e=4,$l(r,o,u,d)}finally{$e=m,wi.transition=y}}function $l(r,o,u,d){if(Ea){var m=ql(r,o,u,d);if(m===null)cc(r,o,d,ya,u),pp(r,d);else if(wx(m,r,o,u,d))d.stopPropagation();else if(pp(r,d),o&4&&-1<Sx.indexOf(r)){for(;m!==null;){var y=Jo(m);if(y!==null&&cp(y),y=ql(r,o,u,d),y===null&&cc(r,o,d,ya,u),y===m)break;m=y}m!==null&&d.stopPropagation()}else cc(r,o,d,null,u)}}var ya=null;function ql(r,o,u,d){if(ya=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 ya=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(gx()){case Hl:return 1;case sp:return 4;case ca:case Ex:return 16;case ap:return 536870912;default:return 16}default:return 16}}var xr=null,Gl=null,Ta=null;function yp(){if(Ta)return Ta;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 Ta=m.slice(r,1<d?1-d:void 0)}function ba(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 xa(){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)?xa: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=xa)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=xa)},persist:function(){},isPersistent:xa}),o}var Ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ql=Jt(Ai),zo=N({},Ai,{view:0,detail:0}),Ix=Jt(zo),Kl,Xl,Wo,va=N({},zo,{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!==Wo&&(Wo&&r.type==="mousemove"?(Kl=r.screenX-Wo.screenX,Xl=r.screenY-Wo.screenY):Xl=Kl=0,Wo=r),Kl)},movementY:function(r){return"movementY"in r?r.movementY:Xl}}),bp=Jt(va),Ox=N({},va,{dataTransfer:0}),Rx=Jt(Ox),Lx=N({},zo,{relatedTarget:0}),Zl=Jt(Lx),Px=N({},Ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Dx=Jt(Px),Mx=N({},Ai,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Fx=Jt(Mx),Bx=N({},Ai,{data:0}),xp=Jt(Bx),Ux={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hx={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"},jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zx(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=jx[r])?!!o[r]:!1}function Jl(){return zx}var Wx=N({},zo,{key:function(r){if(r.key){var o=Ux[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=ba(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Hx[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"?ba(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ba(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Vx=Jt(Wx),Yx=N({},va,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vp=Jt(Yx),$x=N({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jl}),qx=Jt($x),Gx=N({},Ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qx=Jt(Gx),Kx=N({},va,{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}),Xx=Jt(Kx),Zx=[9,13,27,32],ec=c&&"CompositionEvent"in window,Vo=null;c&&"documentMode"in document&&(Vo=document.documentMode);var Jx=c&&"TextEvent"in window&&!Vo,_p=c&&(!ec||Vo&&8<Vo&&11>=Vo),Cp=" ",Sp=!1;function wp(r,o){switch(r){case"keyup":return Zx.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 ki=!1;function ev(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 tv(r,o){if(ki)return r==="compositionend"||!ec&&wp(r,o)?(r=yp(),Ta=Gl=xr=null,ki=!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 nv={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"?!!nv[r.type]:o==="textarea"}function Np(r,o,u,d){Qh(d),o=Aa(o,"onChange"),0<o.length&&(u=new Ql("onChange","change",null,u,d),r.push({event:u,listeners:o}))}var Yo=null,$o=null;function rv(r){qp(r,0)}function _a(r){var o=Li(r);if(xn(o))return r}function iv(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(){Yo&&(Yo.detachEvent("onpropertychange",Lp),$o=Yo=null)}function Lp(r){if(r.propertyName==="value"&&_a($o)){var o=[];Np(o,$o,r,Dl(r)),Jh(rv,o)}}function ov(r,o,u){r==="focusin"?(Rp(),Yo=o,$o=u,Yo.attachEvent("onpropertychange",Lp)):r==="focusout"&&Rp()}function sv(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return _a($o)}function av(r,o){if(r==="click")return _a(o)}function uv(r,o){if(r==="input"||r==="change")return _a(o)}function lv(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Cn=typeof Object.is=="function"?Object.is:lv;function qo(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 cv(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 dv=c&&"documentMode"in document&&11>=document.documentMode,Ni=null,ic=null,Go=null,oc=!1;function Bp(r,o,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;oc||Ni==null||Ni!==vn(d)||(d=Ni,"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}),Go&&qo(Go,d)||(Go=d,d=Aa(ic,"onSelect"),0<d.length&&(o=new Ql("onSelect","select",null,o,u),r.push({event:o,listeners:d}),o.target=Ni)))}function Ca(r,o){var u={};return u[r.toLowerCase()]=o.toLowerCase(),u["Webkit"+r]="webkit"+o,u["Moz"+r]="moz"+o,u}var Ii={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionend:Ca("Transition","TransitionEnd")},sc={},Up={};c&&(Up=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Sa(r){if(sc[r])return sc[r];if(!Ii[r])return r;var o=Ii[r],u;for(u in o)if(o.hasOwnProperty(u)&&u in Up)return sc[r]=o[u];return r}var Hp=Sa("animationend"),jp=Sa("animationiteration"),zp=Sa("animationstart"),Wp=Sa("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],fv=uc.toLowerCase(),hv=uc[0].toUpperCase()+uc.slice(1);vr(fv,"on"+hv)}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 Qo="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(" "),pv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qo));function $p(r,o,u){var d=r.type||"unknown-event";r.currentTarget=u,fx(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(la)throw r=Ul,la=!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 wa="_reactListening"+Math.random().toString(36).slice(2);function Ko(r){if(!r[wa]){r[wa]=!0,i.forEach(function(u){u!=="selectionchange"&&(pv.has(u)||lc(u,!1,r),lc(u,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[wa]||(o[wa]=!0,lc("selectionchange",!1,o))}}function Gp(r,o,u,d){switch(Ep(o)){case 1:var m=kx;break;case 4:m=Nx;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 ne=Vp.get(r);if(ne!==void 0){var Ee=Ql,be=r;switch(r){case"keypress":if(ba(u)===0)break e;case"keydown":case"keyup":Ee=Vx;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=Rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=qx;break;case Hp:case jp:case zp:Ee=Dx;break;case Wp:Ee=Qx;break;case"scroll":Ee=Ix;break;case"wheel":Ee=Xx;break;case"copy":case"cut":case"paste":Ee=Fx;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?ne!==null?ne+"Capture":null:ne;_e=[];for(var U=G,q;U!==null;){q=U;var de=q.stateNode;if(q.tag===5&&de!==null&&(q=de,Y!==null&&(de=Ro(U,Y),de!=null&&_e.push(Xo(U,de,q)))),ut)break;U=U.return}0<_e.length&&(ne=new Ee(ne,be,null,u,ie),se.push({event:ne,listeners:_e}))}}if((o&7)===0){e:{if(ne=r==="mouseover"||r==="pointerover",Ee=r==="mouseout"||r==="pointerout",ne&&u!==Zt&&(be=u.relatedTarget||u.fromElement)&&(Kr(be)||be[Zn]))break e;if((Ee||ne)&&(ne=ie.window===ie?ie:(ne=ie.ownerDocument)?ne.defaultView||ne.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,de="onMouseLeave",Y="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(_e=vp,de="onPointerLeave",Y="onPointerEnter",U="pointer"),ut=Ee==null?ne:Li(Ee),q=be==null?ne:Li(be),ne=new _e(de,U+"leave",Ee,u,ie),ne.target=ut,ne.relatedTarget=q,de=null,Kr(ie)===G&&(_e=new _e(Y,U+"enter",be,u,ie),_e.target=q,_e.relatedTarget=ut,de=_e),ut=de,Ee&&be)t:{for(_e=Ee,Y=be,U=0,q=_e;q;q=Oi(q))U++;for(q=0,de=Y;de;de=Oi(de))q++;for(;0<U-q;)_e=Oi(_e),U--;for(;0<q-U;)Y=Oi(Y),q--;for(;U--;){if(_e===Y||Y!==null&&_e===Y.alternate)break t;_e=Oi(_e),Y=Oi(Y)}_e=null}else _e=null;Ee!==null&&Qp(se,ne,Ee,_e,!1),be!==null&&ut!==null&&Qp(se,ut,be,_e,!0)}}e:{if(ne=G?Li(G):window,Ee=ne.nodeName&&ne.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&ne.type==="file")var Ce=iv;else if(kp(ne))if(Ip)Ce=uv;else{Ce=sv;var Ae=ov}else(Ee=ne.nodeName)&&Ee.toLowerCase()==="input"&&(ne.type==="checkbox"||ne.type==="radio")&&(Ce=av);if(Ce&&(Ce=Ce(r,G))){Np(se,Ce,u,ie);break e}Ae&&Ae(r,ne,G),r==="focusout"&&(Ae=ne._wrapperState)&&Ae.controlled&&ne.type==="number"&&_i(ne,"number",ne.value)}switch(Ae=G?Li(G):window,r){case"focusin":(kp(Ae)||Ae.contentEditable==="true")&&(Ni=Ae,ic=G,Go=null);break;case"focusout":Go=ic=Ni=null;break;case"mousedown":oc=!0;break;case"contextmenu":case"mouseup":case"dragend":oc=!1,Bp(se,u,ie);break;case"selectionchange":if(dv)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 ki?wp(r,u)&&(Oe="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Oe="onCompositionStart");Oe&&(_p&&u.locale!=="ko"&&(ki||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&ki&&(ke=yp()):(xr=ie,Gl="value"in xr?xr.value:xr.textContent,ki=!0)),Ae=Aa(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=Jx?ev(r,u):tv(r,u))&&(G=Aa(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 Xo(r,o,u){return{instance:r,listener:o,currentTarget:u}}function Aa(r,o){for(var u=o+"Capture",d=[];r!==null;){var m=r,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=Ro(r,u),y!=null&&d.unshift(Xo(r,y,m)),y=Ro(r,o),y!=null&&d.push(Xo(r,y,m))),r=r.return}return d}function Oi(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=Ro(u,y),M!=null&&v.unshift(Xo(u,M,P))):m||(M=Ro(u,y),M!=null&&v.push(Xo(u,M,P)))),u=u.return}v.length!==0&&r.push({event:o,listeners:v})}var mv=/\r\n?/g,gv=/\u0000|\uFFFD/g;function Kp(r){return(typeof r=="string"?r:""+r).replace(mv,`
6
+ `).replace(gv,"")}function ka(r,o,u){if(o=Kp(o),Kp(r)!==o&&u)throw Error(n(425))}function Na(){}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,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,Xp=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Xp<"u"?function(r){return Xp.resolve(null).then(r).catch(Tv)}:pc;function Tv(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),jo(o);return}d--}else u!=="$"&&u!=="$?"&&u!=="$!"||d++;u=m}while(u);jo(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 Ri=Math.random().toString(36).slice(2),Fn="__reactFiber$"+Ri,Zo="__reactProps$"+Ri,Zn="__reactContainer$"+Ri,gc="__reactEvents$"+Ri,bv="__reactListeners$"+Ri,xv="__reactHandles$"+Ri;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 Jo(r){return r=r[Fn]||r[Zn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Li(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Ia(r){return r[Zo]||null}var Ec=[],Pi=-1;function Cr(r){return{current:r}}function tt(r){0>Pi||(r.current=Ec[Pi],Ec[Pi]=null,Pi--)}function Qe(r,o){Pi++,Ec[Pi]=r.current,r.current=o}var Sr={},kt=Cr(Sr),zt=Cr(!1),Xr=Sr;function Di(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 Oa(){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 Ra(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,La=!1,yc=!1;function nm(r){Jn===null?Jn=[r]:Jn.push(r)}function vv(r){La=!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,La=!1}catch(m){throw Jn!==null&&(Jn=Jn.slice(r+1)),ip(Hl,wr),m}finally{$e=o,yc=!1}}return null}var Mi=[],Fi=0,Pa=null,Da=0,fn=[],hn=0,Zr=null,er=1,tr="";function Jr(r,o){Mi[Fi++]=Da,Mi[Fi++]=Pa,Pa=r,Da=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===Pa;)Pa=Mi[--Fi],Mi[Fi]=null,Da=Mi[--Fi],Mi[Fi]=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 Ma(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 Bi(){tn=en=null,nt=!1}function _c(r){Sn===null?Sn=[r]:Sn.push(r)}var _v=F.ReactCurrentBatchConfig;function es(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 Fa(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,de){return U===null||U.tag!==6?(U=pd(q,Y.mode,de),U.return=Y,U):(U=m(U,q),U.return=Y,U)}function M(Y,U,q,de){var Ce=q.type;return Ce===W?ie(Y,U,q.props.children,de,q.key):U!==null&&(U.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===ce&&um(Ce)===U.type)?(de=m(U,q.props),de.ref=es(Y,U,q),de.return=Y,de):(de=au(q.type,q.key,q.props,null,Y.mode,de),de.ref=es(Y,U,q),de.return=Y,de)}function G(Y,U,q,de){return U===null||U.tag!==4||U.stateNode.containerInfo!==q.containerInfo||U.stateNode.implementation!==q.implementation?(U=md(q,Y.mode,de),U.return=Y,U):(U=m(U,q.children||[]),U.return=Y,U)}function ie(Y,U,q,de,Ce){return U===null||U.tag!==7?(U=ai(q,Y.mode,de,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=au(U.type,U.key,U.props,null,Y.mode,q),q.ref=es(Y,null,U),q.return=Y,q;case B:return U=md(U,Y.mode,q),U.return=Y,U;case ce:var de=U._init;return se(Y,de(U._payload),q)}if(pr(U)||he(U))return U=ai(U,Y.mode,q,null),U.return=Y,U;Fa(Y,U)}return null}function ne(Y,U,q,de){var Ce=U!==null?U.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return Ce!==null?null:P(Y,U,""+q,de);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case z:return q.key===Ce?M(Y,U,q,de):null;case B:return q.key===Ce?G(Y,U,q,de):null;case ce:return Ce=q._init,ne(Y,U,Ce(q._payload),de)}if(pr(q)||he(q))return Ce!==null?null:ie(Y,U,q,de,null);Fa(Y,q)}return null}function Ee(Y,U,q,de,Ce){if(typeof de=="string"&&de!==""||typeof de=="number")return Y=Y.get(q)||null,P(U,Y,""+de,Ce);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case z:return Y=Y.get(de.key===null?q:de.key)||null,M(U,Y,de,Ce);case B:return Y=Y.get(de.key===null?q:de.key)||null,G(U,Y,de,Ce);case ce:var Ae=de._init;return Ee(Y,U,q,Ae(de._payload),Ce)}if(pr(de)||he(de))return Y=Y.get(q)||null,ie(U,Y,de,Ce,null);Fa(U,de)}return null}function be(Y,U,q,de){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=ne(Y,ke,q[Oe],de);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],de),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],de),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,de){var Ce=he(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=ne(Y,ke,Ve.value,de);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,de),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,de),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(n_){return o(Y,n_)}),nt&&Jr(Y,Oe),Ce}function ut(Y,U,q,de){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===ce&&um(Ce)===Ae.type){u(Y,Ae.sibling),U=m(Ae,q.props),U.ref=es(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,de,q.key),U.return=Y,Y=U):(de=au(q.type,q.key,q.props,null,Y.mode,de),de.ref=es(Y,U,q),de.return=Y,Y=de)}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,de),U.return=Y,Y=U}return v(Y);case ce:return Ae=q._init,ut(Y,U,Ae(q._payload),de)}if(pr(q))return be(Y,U,q,de);if(he(q))return _e(Y,U,q,de);Fa(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,de),U.return=Y,Y=U),v(Y)):u(Y,U)}return ut}var Ui=lm(!0),cm=lm(!1),Ba=Cr(null),Ua=null,Hi=null,Cc=null;function Sc(){Cc=Hi=Ua=null}function wc(r){var o=Ba.current;tt(Ba),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 ji(r,o){Ua=r,Cc=Hi=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},Hi===null){if(Ua===null)throw Error(n(308));Hi=r,Ua.dependencies={lanes:0,firstContext:r}}else Hi=Hi.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 Ha(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 ja(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 ne=P.lane,Ee=P.eventTime;if((d&ne)===ne){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(ne=o,Ee=u,_e.tag){case 1:if(be=_e.payload,typeof be=="function"){se=be.call(Ee,se,ne);break e}se=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=_e.payload,ne=typeof be=="function"?be.call(Ee,se,ne):be,ne==null)break e;se=N({},se,ne);break e;case 2:Ar=!0}}P.callback!==null&&P.lane!==0&&(r.flags|=64,ne=m.effects,ne===null?m.effects=[P]:ne.push(P))}else Ee={eventTime:Ee,lane:ne,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ie===null?(G=ie=Ee,M=se):ie=ie.next=Ee,v|=ne;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;ne=P,P=ne.next,ne.next=null,m.lastBaseUpdate=ne,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 ts={},Bn=Cr(ts),ns=Cr(ts),rs=Cr(ts);function ti(r){if(r===ts)throw Error(n(174));return r}function Ic(r,o){switch(Qe(rs,o),Qe(ns,r),Qe(Bn,ts),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:pe(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=pe(o,r)}tt(Bn),Qe(Bn,o)}function zi(){tt(Bn),tt(ns),tt(rs)}function mm(r){ti(rs.current);var o=ti(Bn.current),u=pe(o,r.type);o!==u&&(Qe(ns,r),Qe(Bn,u))}function Oc(r){ns.current===r&&(tt(Bn),tt(ns))}var it=Cr(0);function za(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 Wa=F.ReactCurrentDispatcher,Pc=F.ReactCurrentBatchConfig,ni=0,ot=null,ht=null,gt=null,Va=!1,is=!1,os=0,Cv=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,Wa.current=r===null||r.memoizedState===null?kv:Nv,r=u(d,m),is){y=0;do{if(is=!1,os=0,25<=y)throw Error(n(301));y+=1,gt=ht=null,o.updateQueue=null,Wa.current=Iv,r=u(d,m)}while(is)}if(Wa.current=qa,o=ht!==null&&ht.next!==null,ni=0,gt=ht=ot=null,Va=!1,o)throw Error(n(300));return r}function Fc(){var r=os!==0;return os=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 ss(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&&gt.memoizedState.tag&1){if(u.flags|=2048,as(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:ss,lastRenderedState:r},o.queue=r,r=r.dispatch=Av.bind(null,ot,r),[o.memoizedState,r]}function as(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 Ya(r,o,u,d){var m=Un();ot.flags|=r,m.memoizedState=as(1|o,u,void 0,d===void 0?null:d)}function $a(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=as(o,u,y,d);return}}ot.flags|=r,m.memoizedState=as(1|o,u,y,d)}function Sm(r,o){return Ya(8390656,8,r,o)}function Hc(r,o){return $a(2048,8,r,o)}function wm(r,o){return $a(4,2,r,o)}function Am(r,o){return $a(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,$a(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 Sv(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 wv(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 Av(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){is=Va=!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 qa={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},kv={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,Ya(4194308,4,km.bind(null,o,r),u)},useLayoutEffect:function(r,o){return Ya(4194308,4,r,o)},useInsertionEffect:function(r,o){return Ya(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=wv.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=Sv.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,as(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=os++,0<u&&(o+="H"+u.toString(32)),o+=":"}else u=Cv++,o=":"+o+"r"+u.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},Nv={readContext:pn,useCallback:Im,useContext:pn,useEffect:Hc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:Am,useMemo:Om,useReducer:Bc,useRef:Cm,useState:function(){return Bc(ss)},useDebugValue:jc,useDeferredValue:function(r){var o=mn();return Rm(o,ht.memoizedState,r)},useTransition:function(){var r=Bc(ss)[0],o=mn().memoizedState;return[r,o]},useMutableSource:gm,useSyncExternalStore:Em,useId:Lm,unstable_isNewReconciler:!1},Iv={readContext:pn,useCallback:Im,useContext:pn,useEffect:Hc,useImperativeHandle:Nm,useInsertionEffect:wm,useLayoutEffect:Am,useMemo:Om,useReducer:Uc,useRef:Cm,useState:function(){return Uc(ss)},useDebugValue:jc,useDeferredValue:function(r){var o=mn();return ht===null?o.memoizedState=r:Rm(o,ht.memoizedState,r)},useTransition:function(){var r=Uc(ss)[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 Ga={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),Ha(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),Ha(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),Ha(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?!qo(u,d)||!qo(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)?Di(r,m):Sr),o=new o(u,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ga,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&&Ga.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=Di(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&&Ga.enqueueReplaceState(m,m.state,null),ja(r,u,m,d),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function Wi(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 Ov=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(){tu||(tu=!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 Ov;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=Yv.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 Rv=F.ReactCurrentOwner,Vt=!1;function Dt(r,o,u,d){o.child=r===null?cm(o,null,u,d):Ui(o,r.child,u,d)}function Ym(r,o,u,d,m){u=u.render;var y=o.ref;return ji(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=au(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:qo,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(qo(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(Yi,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(Yi,nn),nn|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:u,Qe(Yi,nn),nn|=d}else y!==null?(d=y.baseLanes|u,o.memoizedState=null):d=u,Qe(Yi,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=Di(o,y),ji(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;Ra(o)}else y=!1;if(ji(o,m),o.stateNode===null)Ka(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=Di(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 ne=o.memoizedState;v.state=ne,ja(o,d,v,m),M=o.memoizedState,P!==d||ne!==M||zt.current||Ar?(typeof ie=="function"&&(zc(o,u,ie,d),M=o.memoizedState),(P=Ar||Fm(o,u,P,d,ne,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,ne=v.context,M=u.contextType,typeof M=="object"&&M!==null?M=pn(M):(M=Wt(u)?Xr:kt.current,M=Di(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||ne!==M)&&Um(o,v,d,M),Ar=!1,ne=o.memoizedState,v.state=ne,ja(o,d,v,m);var be=o.memoizedState;P!==se||ne!==be||zt.current||Ar?(typeof Ee=="function"&&(zc(o,u,Ee,d),be=o.memoizedState),(G=Ar||Fm(o,u,G,d,ne,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&&ne===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&ne===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&&ne===r.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&ne===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,Rv.current=o;var P=v&&typeof u.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,r!==null&&v?(o.child=Ui(o,r.child,null,y),o.child=Ui(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 Bi(),_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=uu(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 Lv(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=uu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Qa(r,o,u,d){return d!==null&&_c(d),Ui(o,r.child,null,u),r=Kc(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Lv(r,o,u,d,m,y,v){if(u)return o.flags&256?(o.flags&=-257,d=Vc(Error(n(422))),Qa(r,o,v,d)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=d.fallback,m=o.mode,d=uu({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&&Ui(o,r.child,null,v),o.child.memoizedState=Qc(v),o.memoizedState=Gc,y);if((o.mode&1)===0)return Qa(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),Qa(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))),Qa(r,o,v,d)}return m.data==="$?"?(o.flags|=128,o.child=r.child,o=$v.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&&za(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&&za(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 Ka(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 Pv(r,o,u){switch(o.tag){case 3:Xm(o),Bi();break;case 5:mm(o);break;case 1:Wt(o.type)&&Ra(o);break;case 4:Ic(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,m=o.memoizedProps.value;Qe(Ba,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=ko(r,m),d=ko(r,d),y=[];break;case"select":m=N({},m,{value:void 0}),d=N({},d,{value:void 0}),y=[];break;case"textarea":m=Oo(r,m),d=Oo(r,d),y=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=Na)}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 us(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 Dv(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)&&Oa(),It(o),null;case 3:return d=o.stateNode,zi(),tt(zt),tt(kt),Lc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(Ma(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(rs.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),Ma(o)){d=o.stateNode,u=o.type;var y=o.memoizedProps;switch(d[Fn]=o,d[Zo]=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<Qo.length;m++)et(Qo[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":No(d,y),et("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},et("invalid",d);break;case"textarea":oa(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&&ka(d.textContent,P,r),m=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&ka(d.textContent,P,r),m=["children",""+P]):s.hasOwnProperty(v)&&P!=null&&v==="onScroll"&&et("scroll",d)}switch(u){case"input":Pt(d),ia(d,y,!0);break;case"textarea":Pt(d),aa(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=Na)}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=X(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[Zo]=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<Qo.length;m++)et(Qo[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":No(r,d),m=ko(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":oa(r,d),m=Oo(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&&O(r,y,M,v))}switch(u){case"input":Pt(r),ia(r,d,!1);break;case"textarea":Pt(r),aa(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=Na)}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(rs.current),ti(Bn.current),Ma(o)){if(d=o.stateNode,u=o.memoizedProps,d[Fn]=o,(y=d.nodeValue!==u)&&(r=en,r!==null))switch(r.tag){case 3:ka(d.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ka(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(),Bi(),o.flags|=98560,y=!1;else if(y=Ma(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 Bi(),(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 zi(),Zc(r,o),r===null&&Ko(o.stateNode.containerInfo),It(o),null;case 10:return wc(o.type._context),It(o),null;case 17:return Wt(o.type)&&Oa(),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)us(y,!1);else{if(pt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(v=za(r),v!==null){for(o.flags|=128,us(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()>$i&&(o.flags|=128,d=!0,us(y,!1),o.lanes=4194304)}else{if(!d)if(r=za(v),r!==null){if(o.flags|=128,d=!0,u=r.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),us(y,!0),y.tail===null&&y.tailMode==="hidden"&&!v.alternate&&!nt)return It(o),null}else 2*at()-y.renderingStartTime>$i&&u!==1073741824&&(o.flags|=128,d=!0,us(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 Mv(r,o){switch(bc(o),o.tag){case 1:return Wt(o.type)&&Oa(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return zi(),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));Bi()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return tt(it),null;case 4:return zi(),null;case 10:return wc(o.type._context),null;case 22:case 23:return dd(),null;case 24:return null;default:return null}}var Xa=!1,Ot=!1,Fv=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Vi(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 Bv(r,o){if(dc=Ea,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,ne=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;)ne=se,se=Ee;for(;;){if(se===r)break t;if(ne===u&&++G===m&&(P=v),ne===y&&++ie===d&&(M=v),(Ee=se.nextSibling)!==null)break;se=ne,ne=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},Ea=!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(de){st(o,o.return,de)}if(r=o.sibling,r!==null){r.return=o.return,ye=r;break}ye=o.return}return be=o0,o0=!1,be}function ls(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 Za(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[Zo],delete o[gc],delete o[bv],delete o[xv])),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=Na));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(da,u)}catch{}switch(u.tag){case 5:Ot||Vi(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),jo(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&&(Vi(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 Fv),o.forEach(function(d){var m=qv.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{ls(3,r,r.return),Za(3,r)}catch(_e){st(r,r.return,_e)}try{ls(5,r,r.return)}catch(_e){st(r,r.return,_e)}}break;case 1:kn(o,r),Hn(r),d&512&&u!==null&&Vi(u,u.return);break;case 5:if(kn(o,r),Hn(r),d&512&&u!==null&&Vi(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&&Io(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):O(m,ie,se,G)}switch(P){case"input":vi(m,y);break;case"textarea":sa(m,y);break;case"select":var ne=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var Ee=y.value;Ee!=null?mr(m,!!y.multiple,Ee,!1):ne!==!!y.multiple&&(y.defaultValue!=null?mr(m,!!y.multiple,y.defaultValue,!0):mr(m,!!y.multiple,y.multiple?[]:"",!1))}m[Zo]=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{jo(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(ne=ye,Ee=ne.child,ne.tag){case 0:case 11:case 14:case 15:ls(4,ne,ne.return);break;case 1:Vi(ne,ne.return);var be=ne.stateNode;if(typeof be.componentWillUnmount=="function"){d=ne,u=ne.return;try{o=d,be.props=o.memoizedProps,be.state=o.memoizedState,be.componentWillUnmount()}catch(_e){st(d,u,_e)}}break;case 5:Vi(ne,ne.return);break;case 22:if(ne.memoizedState!==null){p0(se);continue}}Ee!==null?(Ee.return=ne,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 Uv(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||Xa;if(!v){var P=m.alternate,M=P!==null&&P.memoizedState!==null||Ot;P=Xa;var G=Ot;if(Xa=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,Xa=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||Za(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&&jo(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(ne){st(o,o.return,ne)}}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{Za(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 Hv=Math.ceil,Ja=F.ReactCurrentDispatcher,rd=F.ReactCurrentOwner,gn=F.ReactCurrentBatchConfig,We=0,Et=null,ct=null,Ct=0,nn=0,Yi=Cr(0),pt=0,cs=null,ri=0,eu=0,id=0,ds=null,Yt=null,od=0,$i=1/0,or=null,tu=!1,sd=null,Ir=null,nu=!1,Or=null,ru=0,fs=0,ad=null,iu=-1,ou=0;function Mt(){return(We&6)!==0?at():iu!==-1?iu:iu=at()}function Rr(r){return(r.mode&1)===0?1:(We&2)!==0&&Ct!==0?Ct&-Ct:_v.transition!==null?(ou===0&&(ou=up()),ou):(r=$e,r!==0||(r=window.event,r=r===void 0?16:Ep(r.type)),r)}function Nn(r,o,u,d){if(50<fs)throw fs=0,ad=null,Error(n(185));Mo(r,u,d),((We&2)===0||r!==Et)&&(r===Et&&((We&2)===0&&(eu|=u),pt===4&&Lr(r,Ct)),$t(r,d),u===1&&We===0&&(o.mode&1)===0&&($i=at()+500,La&&wr()))}function $t(r,o){var u=r.callbackNode;_x(r,o);var d=pa(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?vv(E0.bind(null,r)):nm(E0.bind(null,r)),yv(function(){(We&6)===0&&wr()}),u=null;else{switch(lp(d)){case 1:u=Hl;break;case 4:u=sp;break;case 16:u=ca;break;case 536870912:u=ap;break;default:u=ca}u=S0(u,g0.bind(null,r))}r.callbackPriority=o,r.callbackNode=u}}function g0(r,o){if(iu=-1,ou=0,(We&6)!==0)throw Error(n(327));var u=r.callbackNode;if(qi()&&r.callbackNode!==u)return null;var d=pa(r,r===Et?Ct:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||o)o=su(r,d);else{o=d;var m=We;We|=2;var y=T0();(Et!==r||Ct!==o)&&(or=null,$i=at()+500,oi(r,o));do try{Wv();break}catch(P){y0(r,P)}while(!0);Sc(),Ja.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=cs,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&&!jv(m)&&(o=su(r,d),o===2&&(y=jl(r),y!==0&&(d=y,o=ud(r,y))),o===1))throw u=cs,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(pa(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*Hv(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=ds;return r.current.memoizedState.isDehydrated&&(oi(r,o).flags|=256),r=su(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 jv(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&=~eu,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));qi();var o=pa(r,0);if((o&1)===0)return $t(r,at()),null;var u=su(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=cs,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&&($i=at()+500,La&&wr())}}function ii(r){Or!==null&&Or.tag===0&&(We&6)===0&&qi();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=Yi.current,tt(Yi)}function oi(r,o){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,Ev(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&&Oa();break;case 3:zi(),tt(zt),tt(kt),Lc();break;case 5:Oc(d);break;case 4:zi();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,cs=null,id=eu=ri=0,Yt=ds=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(),Wa.current=qa,Va){for(var d=ot.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}Va=!1}if(ni=0,gt=ht=ot=null,is=!1,os=0,rd.current=null,u===null||u.return===null){pt=1,cs=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 ne=ie.alternate;ne?(ie.updateQueue=ne.updateQueue,ie.memoizedState=ne.memoizedState,ie.lanes=ne.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(Wi(M,P));break e}}y=M=Wi(M,P),pt!==4&&(pt=2),ds===null?ds=[y]:ds.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 de=jm(y,P,o);hm(y,de);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=Ja.current;return Ja.current=qa,r===null?qa:r}function fd(){(pt===0||pt===3||pt===2)&&(pt=4),Et===null||(ri&268435455)===0&&(eu&268435455)===0||Lr(Et,Ct)}function su(r,o){var u=We;We|=2;var d=T0();(Et!==r||Ct!==o)&&(or=null,oi(r,o));do try{zv();break}catch(m){y0(r,m)}while(!0);if(Sc(),We=u,Ja.current=d,ct!==null)throw Error(n(261));return Et=null,Ct=0,pt}function zv(){for(;ct!==null;)b0(ct)}function Wv(){for(;ct!==null&&!px();)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=Dv(u,o,nn),u!==null){ct=u;return}}else{if(u=Mv(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,Vv(r,o,u,d)}finally{gn.transition=m,$e=d}return null}function Vv(r,o,u,d){do qi();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(Cx(r,y),r===Et&&(ct=Et=null,Ct=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||nu||(nu=!0,S0(ca,function(){return qi(),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,Bv(r,u),d0(u,r),cv(fc),Ea=!!dc,fc=dc=null,r.current=u,Uv(u),mx(),We=P,$e=v,gn.transition=y}else r.current=u;if(nu&&(nu=!1,Or=r,ru=m),y=r.pendingLanes,y===0&&(Ir=null),yx(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(tu)throw tu=!1,r=sd,sd=null,r;return(ru&1)!==0&&r.tag!==0&&qi(),y=r.pendingLanes,(y&1)!==0?r===ad?fs++:(fs=0,ad=r):fs=0,wr(),null}function qi(){if(Or!==null){var r=lp(ru),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,ru=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:ls(8,ie,y)}var se=ie.child;if(se!==null)se.return=ie,ye=se;else for(;ye!==null;){ie=ye;var ne=ie.sibling,Ee=ie.return;if(s0(ie),ie===G){ye=null;break}if(ne!==null){ne.return=Ee,ye=ne;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:ls(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:Za(9,P)}}catch(Ce){st(P,P.return,Ce)}if(P===v){ye=null;break e}var de=P.sibling;if(de!==null){de.return=P.return,ye=de;break e}ye=P.return}}if(We=m,wr(),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(da,r)}catch{}d=!0}return d}finally{$e=u,gn.transition=o}}return!1}function v0(r,o,u){o=Wi(u,o),o=Hm(r,o,1),r=kr(r,o,1),o=Mt(),r!==null&&(Mo(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=Wi(u,r),r=jm(o,r,1),o=kr(o,r,1),r=Mt(),o!==null&&(Mo(o,1,r),$t(o,r));break}}o=o.return}}function Yv(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=ha,ha<<=1,(ha&130023424)===0&&(ha=4194304)));var u=Mt();r=nr(r,o),r!==null&&(Mo(r,o,u),$t(r,u))}function $v(r){var o=r.memoizedState,u=0;o!==null&&(u=o.retryLane),_0(r,u)}function qv(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,Pv(r,o,u);Vt=(r.flags&131072)!==0}else Vt=!1,nt&&(o.flags&1048576)!==0&&rm(o,Da,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Ka(r,o),r=o.pendingProps;var m=Di(o,kt.current);ji(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,Ra(o)):y=!1,o.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Nc(o),m.updater=Ga,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(Ka(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),ja(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=Wi(Error(n(423)),o),o=Zm(r,o,d,u,m);break e}else if(d!==m){m=Wi(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(Bi(),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=Ui(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(Ba,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,ji(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),Ka(r,o),o.tag=1,Wt(d)?(r=!0,Ra(o)):r=!1,ji(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 Gv(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 Gv(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===K)return 11;if(r===J)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 au(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 ee:return r=En(12,u,o,m|2),r.elementType=ee,r.lanes=y,r;case ge:return r=En(13,u,o,m),r.elementType=ge,r.lanes=y,r;case te:return r=En(19,u,o,m),r.elementType=te,r.lanes=y,r;case fe:return uu(u,m,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case me:v=10;break e;case oe:v=9;break e;case K:v=11;break e;case J:v=14;break e;case ce: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 uu(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 Kv(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 Kv(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 Xv(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,Mo(r,m,d),$t(r,d),r}function lu(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),Ha(r,m,v)),v}function cu(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 Zv(){return null}var N0=typeof reportError=="function"?reportError:function(r){console.error(r)};function yd(r){this._internalRoot=r}du.prototype.render=yd.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));lu(r,o,null,null)},du.prototype.unmount=yd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;ii(function(){lu(null,r,null,null)}),o[Zn]=null}};function du(r){this._internalRoot=r}du.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 fu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function I0(){}function Jv(r,o,u,d,m){if(m){if(typeof d=="function"){var y=d;d=function(){var G=cu(v);y.call(G)}}var v=A0(o,d,r,0,null,!1,!1,"",I0);return r._reactRootContainer=v,r[Zn]=v.current,Ko(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=cu(M);P.call(G)}}var M=gd(r,0,!1,null,null,!1,!1,"",I0);return r._reactRootContainer=M,r[Zn]=M.current,Ko(r.nodeType===8?r.parentNode:r),ii(function(){lu(o,M,u,d)}),M}function hu(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=cu(v);P.call(M)}}lu(o,v,r,m)}else v=Jv(u,o,r,m,d);return cu(v)}cp=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var u=Do(o.pendingLanes);u!==0&&(Wl(o,u|1),$t(o,at()),(We&6)===0&&($i=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(vi(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=Ia(d);if(!m)throw Error(n(90));xn(d),vi(d,m)}}}break;case"textarea":sa(r,u);break;case"select":o=u.value,o!=null&&mr(r,!!u.multiple,o,!1)}},Xh=cd,Zh=ii;var e_={usingClientEntryPoint:!1,Events:[Jo,Li,Ia,Qh,Kh,cd]},hs={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},t_={bundleType:hs.bundleType,version:hs.version,rendererPackageName:hs.rendererPackageName,rendererConfig:hs.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:hs.findFiberByHostInstance||Zv,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 pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pu.isDisabled&&pu.supportsFiber)try{da=pu.inject(t_),Mn=pu}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e_,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 Xv(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,Ko(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(!fu(o))throw Error(n(200));return hu(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,Ko(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 du(o)},qt.render=function(r,o,u){if(!fu(o))throw Error(n(200));return hu(null,r,o,!1,u)},qt.unmountComponentAtNode=function(r){if(!fu(r))throw Error(n(40));return r._reactRootContainer?(ii(function(){hu(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(!fu(u))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return hu(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=l_(),vd.exports}var U0;function c_(){if(U0)return mu;U0=1;var e=K1();return mu.createRoot=e.createRoot,mu.hydrateRoot=e.hydrateRoot,mu}var d_=c_();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 f_=typeof Symbol=="function"&&Symbol.observable||"@@observable",H0=f_,Sd=()=>Math.random().toString(36).substring(7).split("").join("."),h_={INIT:`@@redux/INIT${Sd()}`,REPLACE:`@@redux/REPLACE${Sd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sd()}`},Uu=h_;function Yf(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 I=c++;return l.set(I,k),function(){if(S){if(f)throw new Error(St(6));S=!1,p(),l.delete(I),a=null}}}function b(k){if(!Yf(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(I=>{I()}),k}function T(k){if(typeof k!="function")throw new Error(St(10));i=k,b({type:Uu.REPLACE})}function w(){const k=E;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(St(11));function I(){const F=S;F.next&&F.next(g())}return I(),{unsubscribe:k(I)}},[H0](){return this}}}return b({type:Uu.INIT}),{dispatch:b,subscribe:E,getState:g,replaceReducer:T,[H0]:w}}function p_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Uu.INIT})>"u")throw new Error(St(12));if(typeof n(void 0,{type:Uu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(St(13))})}function $f(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{p_(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 Hu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function m_(...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=Hu(...c)(s.dispatch),{...s,dispatch:a}}}function g_(e){return Yf(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 Ms=Object.getPrototypeOf;function fi(e){return!!e&&!!e[ln]}function cr(e){return e?J1(e)||Array.isArray(e)||!!e[j0]||!!e.constructor?.[j0]||Ys(e)||al(e):!1}var E_=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===E_}function ju(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:Ys(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 y_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ys(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(Ys(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(Ms(e),i)}else{const i=Ms(e);if(i!==null&&n)return{...e};const s=Object.create(i);return Object.assign(s,e)}}function qf(e,t=!1){return ul(e)||fi(e)||!cr(e)||(sl(e)>1&&Object.defineProperties(e,{set:gu,add:gu,clear:gu,delete:gu}),Object.freeze(e),t&&Object.values(e).forEach(n=>qf(n,!0))),e}function T_(){In(2)}var gu={value:T_};function ul(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var b_={};function hi(e){const t=b_[e];return t||In(0,e),t}var Fs;function tE(){return Fs}function x_(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(v_),e.drafts_=null}function df(e){e===Fs&&(Fs=e.parent_)}function V0(e){return Fs=x_(Fs,e)}function v_(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=zu(t,e),t.parent_||Wu(t,e)),t.patches_&&hi("Patches").generateReplacementPatches_(n[ln].base_,e,t.patches_,t.inversePatches_)):e=zu(t,n,[]),cf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Z1?e:void 0}function zu(e,t,n){if(ul(t))return t;const i=e.immer_.shouldUseStrictIteration(),s=t[ln];if(!s)return ju(t,(a,l)=>$0(e,s,t,a,l,n),i),t;if(s.scope_!==e)return t;if(!s.modified_)return Wu(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),ju(l,(f,p)=>$0(e,s,a,f,p,n,c),i),Wu(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=zu(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;zu(e,s),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(Ys(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&Wu(e,s)}}}function Wu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qf(t,n)}function __(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=Gf;n&&(s=[i],a=Bs);const{revoke:l,proxy:c}=Proxy.revocable(s,a);return i.draft_=c,i.revoke_=l,c}var Gf={get(e,t){if(t===ln)return e;const n=li(e);if(!uf(n,t))return C_(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(y_(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 Ms(e.base_)},setPrototypeOf(){In(12)}},Bs={};ju(Gf,(e,t)=>{Bs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bs.deleteProperty=function(e,t){return Bs.set.call(this,e,t,void 0)};Bs.set=function(e,t,n){return Gf.set.call(this,e[0],t,n,e[0])};function wd(e,t){const n=e[ln];return(n?li(n):e)[t]}function C_(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=Ms(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Ms(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 S_=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_&&qf(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=rE(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=Ys(e)?hi("MapSet").proxyMap_(e,t):al(e)?hi("MapSet").proxySet_(e,t):__(e,t);return(t?t.scope_:tE()).drafts_.push(n),n}function rE(e){return fi(e)||In(10,e),iE(e)}function iE(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 ju(n,(s,a)=>{eE(n,s,iE(a))},i),t&&(t.finalized_=!1),n}var pf=new S_,oE=pf.produce,w_=pf.setUseStrictIteration.bind(pf);function A_(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function k_(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function N_(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 I_(e){const t=Array.isArray(e[0])?e[0]:e;return N_(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function O_(e,t){const n=[],{length:i}=e;for(let s=0;s<i;s++)n.push(e[s].apply(null,t));return n}var R_=class{constructor(e){this.value=e}deref(){return this.value}},L_=typeof WeakRef<"u"?WeakRef:R_,P_=0,G0=1;function Eu(){return{s:P_,v:void 0,o:null,p:null}}function sE(e,t={}){let n=Eu();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 _=w.get(T);_===void 0?(c=Eu(),w.set(T,c)):c=_}else{let w=c.p;w===null&&(c.p=w=new Map);const _=w.get(T);_===void 0?(c=Eu(),w.set(T,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 L_(g):g}return p.s=G0,p.v=g,g}return l.clearCache=()=>{n=Eu(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}function D_(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()),A_(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const g={...n,...f},{memoize:E,memoizeOptions:b=[],argsMemoize:T=sE,argsMemoizeOptions:w=[]}=g,_=q0(b),k=q0(w),S=I_(s),I=E(function(){return a++,p.apply(null,arguments)},..._),O=T(function(){l++;const z=O_(S,arguments);return c=I.apply(null,z),c},...k);return Object.assign(O,{resultFunc:p,memoizedResultFunc:I,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=D_(sE),M_=Object.assign((e,t=ll)=>{k_(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:()=>M_});function aE(e){return({dispatch:n,getState:i})=>s=>a=>typeof a=="function"?a(n,i,e):s(a)}var F_=aE(),B_=aE,U_=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hu:Hu.apply(null,arguments)},H_=e=>e&&typeof e.match=="function";function Ss(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=>g_(i)&&i.type===e,n}var uE=class _s extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_s.prototype)}static get[Symbol.species](){return _s}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _s(...t[0].concat(this)):new _s(...t.concat(this))}};function Q0(e){return cr(e)?oE(e,()=>{}):e}function yu(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function j_(e){return typeof e=="boolean"}var z_=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:a=!0}=t??{};let l=new uE;return n&&(j_(n)?l.push(F_):l.push(B_(n.extraArgument))),l},W_="RTK_autoBatch",K0=e=>t=>{setTimeout(t,e)},V_=(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?.[W_],a=!s,a&&(l||(l=!0,f(p))),i.dispatch(g)}finally{s=!0}}})},Y_=e=>function(n){const{autoBatch:i=!0}=n??{};let s=new uE(e);return i&&s.push(V_(typeof i=="object"?i:void 0)),s};function lE(e){const t=z_(),{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(Yf(n))f=$f(n);else throw new Error(ur(1));let p;typeof i=="function"?p=i(t):p=t();let g=Hu;s&&(g=U_({trace:!1,...typeof s=="object"&&s}));const E=m_(...p),b=Y_(E);let T=typeof c=="function"?c(b):b();const w=g(...T);return X1(f,l,w)}function cE(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]}w_(!1);function $_(e){return typeof e=="function"}function q_(e,t){let[n,i,s]=cE(t),a;if($_(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 oE(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 G_=(e,t)=>H_(e)?e.match(t):e(t);function Q_(...e){return t=>e.some(n=>G_(n,t))}var K_="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X_=(e=21)=>{let t="",n=e;for(;n--;)t+=K_[Math.random()*64|0];return t},Z_=["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},J_=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Z_)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Z0="External signal was aborted",dE=(()=>{function e(t,n,i){const s=Ss(t+"/fulfilled",(f,p,g,E)=>({payload:f,meta:{...E||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),a=Ss(t+"/pending",(f,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:f,requestStatus:"pending"}})),l=Ss(t+"/rejected",(f,p,g,E,b)=>({payload:E,error:(i&&i.serializeError||J_)(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):X_(),w=new AbortController;let _,k;function S(O){k=O,w.abort()}p&&(p.aborted?S(Z0):p.addEventListener("abort",()=>S(Z0),{once:!0}));const I=(async function(){let O;try{let z=i?.condition?.(f,{getState:E,extra:b});if(t2(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)=>{_=()=>{V({name:"AbortError",message:k||"Aborted"})},w.signal.addEventListener("abort",_)});g(a(T,f,i?.getPendingMeta?.({requestId:T,arg:f},{getState:E,extra:b}))),O=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){O=z instanceof kd?l(null,T,f,z.payload,z.meta):l(z,T,f)}finally{_&&w.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&l.match(O)&&O.meta.condition||g(O),O})();return Object.assign(I,{abort:S,requestId:T,arg:f,unwrap(){return I.then(e2)}})}}return Object.assign(c,{pending:a,rejected:l,fulfilled:s,settled:Q_(l,s),typePrefix:t})}return e.withTypes=()=>e,e})();function e2(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function t2(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var n2=Symbol.for("rtk-slice-createasyncthunk");function r2(e,t){return`${e}/${t}`}function i2({creators:e}={}){const t=e?.asyncThunk?.[n2];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(s2()):i.reducers)||{},c=Object.keys(l),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(O,F){const z=typeof O=="string"?O:O.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(O,F){return f.sliceMatchers.push({matcher:O,reducer:F}),p},exposeAction(O,F){return f.actionCreators[O]=F,p},exposeCaseReducer(O,F){return f.sliceCaseReducersByName[O]=F,p}};c.forEach(O=>{const F=l[O],z={reducerName:O,type:r2(s,O),createNotation:typeof i.reducers=="function"};u2(F)?c2(z,F,p,t):a2(z,F,p)});function g(){const[O={},F=[],z=void 0]=typeof i.extraReducers=="function"?cE(i.extraReducers):[i.extraReducers],B={...O,...f.sliceCaseReducersByType};return q_(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=O=>O,b=new Map,T=new WeakMap;let w;function _(O,F){return w||(w=g()),w(O,F)}function k(){return w||(w=g()),w.getInitialState()}function S(O,F=!1){function z(W){let V=W[O];return typeof V>"u"&&F&&(V=yu(T,z,k)),V}function B(W=E){const V=yu(b,F,()=>new WeakMap);return yu(V,W,()=>{const ee={};for(const[me,oe]of Object.entries(i.selectors??{}))ee[me]=o2(oe,W,()=>yu(T,W,k),F);return ee})}return{reducerPath:O,getSelectors:B,get selectors(){return B(z)},selectSlice:z}}const I={name:s,reducer:_,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:k,...S(a),injectInto(O,{reducerPath:F,...z}={}){const B=F??a;return O.inject({reducerPath:B,reducer:_},z),{...I,...S(B,!0)}}};return I}}function o2(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 Qf=i2();function s2(){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 a2({type:e,reducerName:t,createNotation:n},i,s){let a,l;if("reducer"in i){if(n&&!l2(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?Ss(e,l):Ss(e))}function u2(e){return e._reducerDefinitionType==="asyncThunk"}function l2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function c2({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||Tu,pending:c||Tu,rejected:f||Tu,settled:p||Tu})}function Tu(){}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 d2(){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,I=z,z=E(z),b!==void 0&&w.hasValue){var B=w.value;if(b(B,z))return O=B}return O=z}if(B=O,n(I,z))return B;var W=E(z);return b!==void 0&&b(B,W)?(I=z,B):(I=z,O=W)}var S=!1,I,O,F=g===void 0?null:g;return[function(){return k(p())},F===null?void 0:function(){return k(F())}]},[p,g,E,b]);var _=i(f,T[0],T[1]);return a(function(){w.hasValue=!0,w.value=_},[_]),c(_),_},Id}var eg;function f2(){return eg||(eg=1,Nd.exports=d2()),Nd.exports}var h2=f2();function p2(e){e()}function m2(){let e=null,t=null;return{clear(){e=null,t=null},notify(){p2(()=>{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 g2(e,t){let n,i=tg,s=0,a=!1;function l(_){g();const k=i.subscribe(_);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=m2())}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 E2=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y2=E2(),T2=()=>typeof navigator<"u"&&navigator.product==="ReactNative",b2=T2(),x2=()=>y2||b2?C.useLayoutEffect:C.useEffect,v2=x2(),_2=Symbol.for("react-redux-context"),C2=typeof globalThis<"u"?globalThis:{};function S2(){if(!C.createContext)return{};const e=C2[_2]??=new Map;let t=e.get(C.createContext);return t||(t=C.createContext(null),e.set(C.createContext,t)),t}var Wr=S2();function w2(e){const{children:t,context:n,serverState:i,store:s}=e,a=C.useMemo(()=>{const f=g2(s);return{store:s,subscription:f,getServerState:i?()=>i:void 0}},[s,i]),l=C.useMemo(()=>s.getState(),[s]);v2(()=>{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 C.createElement(c.Provider,{value:a},t)}var A2=w2;function Kf(e=Wr){return function(){return C.useContext(e)}}var fE=Kf();function hE(e=Wr){const t=e===Wr?fE:Kf(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}var k2=hE();function N2(e=Wr){const t=e===Wr?k2:hE(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Xf=N2(),I2=(e,t)=>e===t;function O2(e=Wr){const t=e===Wr?fE:Kf(e),n=(i,s={})=>{const{equalityFn:a=I2}=typeof s=="function"?{equalityFn:s}:s,l=t(),{store:c,subscription:f,getServerState:p}=l;C.useRef(!0);const g=C.useCallback({[i.name](b){return i(b)}}[i.name],[i]),E=h2.useSyncExternalStoreWithSelector(f.addNestedSub,c.getState,p||c.getState,g,a);return C.useDebugValue(E),E};return Object.assign(n,{withTypes:()=>n}),n}var pE=O2();const R2={Finish:"Material",Color:"Color",Look:"Look"},L2=(e,t)=>e.toLowerCase()===t.toLowerCase();class Vu{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 console.log("mapFiltersFromValues allValues",t),console.log("mapFiltersFromValues selected",n),Object.keys(n).map(i=>{const s=R2[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=>L2(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 mE=e=>Array.from(new Set(e)),gE={GET_PRODUCT_LIST:()=>"products",GET_PRODUCT_DETAILS:e=>`products/${e}`},P2={VITE_SWATH_CART_PRODUCTION_URL:"https://hbswatchcart.vivid3d.tech"},{VITE_SWATH_CART_PRODUCTION_URL:EE}=P2,D2=async()=>{try{const e=`${EE}/${gE.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}},M2=async({assetId:e})=>{try{const t=`${EE}/${gE.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 yE(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=yE(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=yE(e))&&(i&&(i+=" "),i+=t);return i}function F2(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))}F2(`: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 $s=e=>typeof e=="number"&&!isNaN(e),pi=e=>typeof e=="string",dr=e=>typeof e=="function",B2=e=>pi(e)||$s(e),mf=e=>pi(e)||dr(e)?e:null,U2=(e,t)=>e===!1||$s(e)&&e>0?e:t,gf=e=>C.isValidElement(e)||pi(e)||dr(e)||$s(e);function H2(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 j2({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=C.useRef(0);return C.useLayoutEffect(()=>{let _=p.current,k=b.split(" "),S=I=>{I.target===p.current&&(E(),_.removeEventListener("animationend",S),_.removeEventListener("animationcancel",S),w.current===0&&I.type!=="animationcancel"&&_.classList.remove(...k))};_.classList.add(...k),_.addEventListener("animationend",S),_.addEventListener("animationcancel",S)},[]),C.useEffect(()=>{let _=p.current,k=()=>{_.removeEventListener("animationend",k),i?H2(_,f,s):f()};g||(c?k():(w.current=1,_.className+=` ${T}`,_.addEventListener("animationend",k)))},[g]),Je.createElement(Je.Fragment,null,a)}}function ng(e,t){return{content:TE(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 TE(e,t,n=!1){return C.isValidElement(e)&&!pi(e.type)?C.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 z2({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 W2({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),_={[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,..._}))}var V2=1,bE=()=>`${V2++}`;function Y2(e,t,n){let i=1,s=0,a=[],l=[],c=t,f=new Map,p=new Set,g=I=>(p.add(I),()=>p.delete(I)),E=()=>{l=Array.from(f.values()),p.forEach(I=>I())},b=({containerId:I,toastId:O,updateId:F})=>{let z=I?I!==e:e!==1,B=f.has(O)&&F==null;return z||B},T=(I,O)=>{f.forEach(F=>{var z;(O==null||O===F.props.toastId)&&((z=F.toggle)==null||z.call(F,I))})},w=I=>{var O,F;(F=(O=I.props)==null?void 0:O.onClose)==null||F.call(O,I.removalReason),I.isActive=!1},_=I=>{if(I==null)f.forEach(w);else{let O=f.get(I);O&&w(O)}E()},k=()=>{s-=a.length,a=[]},S=I=>{var O,F;let{toastId:z,updateId:B}=I.props,W=B==null;I.staleId&&f.delete(I.staleId),I.isActive=!0,f.set(z,I),E(),n(ng(I,W?"added":"updated")),W&&((F=(O=I.props).onOpen)==null||F.call(O))};return{id:e,props:c,observe:g,toggle:T,removeToast:_,toasts:f,clearQueue:k,buildToast:(I,O)=>{if(b(O))return;let{toastId:F,updateId:z,data:B,staleId:W,delay:V}=O,ee=z==null;ee&&s++;let me={...c,style:c.toastStyle,key:i++,...Object.fromEntries(Object.entries(O).filter(([K,ge])=>ge!=null)),toastId:F,updateId:z,data:B,isIn:!1,className:mf(O.className||c.toastClassName),progressClassName:mf(O.progressClassName||c.progressClassName),autoClose:O.isLoading?!1:U2(O.autoClose,c.autoClose),closeToast(K){f.get(F).removalReason=K,_(F)},deleteToast(){let K=f.get(F);if(K!=null){if(n(ng(K,"removed")),f.delete(F),s--,s<0&&(s=0),a.length>0){S(a.shift());return}E()}}};me.closeButton=c.closeButton,O.closeButton===!1||gf(O.closeButton)?me.closeButton=O.closeButton:O.closeButton===!0&&(me.closeButton=gf(c.closeButton)?c.closeButton:!0);let oe={content:I,props:me,staleId:W};c.limit&&c.limit>0&&s>c.limit&&ee?a.push(oe):$s(V)?setTimeout(()=>{S(oe)},V):S(oe)},setProps(I){c=I},setToggle:(I,O)=>{let F=f.get(I);F&&(F.toggle=O)},isToastActive:I=>{var O;return(O=f.get(I))==null?void 0:O.isActive},getSnapshot:()=>l}}var Bt=new Map,Us=[],Ef=new Set,$2=e=>Ef.forEach(t=>t(e)),xE=()=>Bt.size>0;function q2(){Us.forEach(e=>_E(e.content,e.options)),Us=[]}var G2=(e,{containerId:t})=>{var n;return(n=Bt.get(t||1))==null?void 0:n.toasts.get(e)};function vE(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 Q2(e){if(!xE()){Us=Us.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||B2(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 K2=(e={})=>{Bt.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function _E(e,t){gf(e)&&(xE()||Us.push({content:e,options:t}),Bt.forEach(n=>{n.buildToast(e,t)}))}function X2(e){var t;(t=Bt.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function CE(e,t){Bt.forEach(n=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function Z2(e){let t=e.containerId||1;return{subscribe(n){let i=Y2(t,e,$2);Bt.set(t,i);let s=i.observe(n);return q2(),()=>{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 J2(e){return Ef.add(e),()=>{Ef.delete(e)}}function eC(e){return e&&(pi(e.toastId)||$s(e.toastId))?e.toastId:bE()}function qs(e,t){return _E(e,t),t.toastId}function cl(e,t){return{...t,type:t&&t.type||e,toastId:eC(t)}}function dl(e){return(t,n)=>qs(t,cl(e,n))}function qe(e,t){return qs(e,cl("default",t))}qe.loading=(e,t)=>qs(e,cl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function tC(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=tC;qe.success=dl("success");qe.info=dl("info");qe.error=dl("error");qe.warning=dl("warning");qe.warn=qe.warning;qe.dark=(e,t)=>qs(e,cl("default",{theme:"dark",...t}));function nC(e){Q2(e)}qe.dismiss=nC;qe.clearWaitingQueue=K2;qe.isActive=vE;qe.update=(e,t={})=>{let n=G2(e,t);if(n){let{props:i,content:s}=n,a={delay:100,...i,...t,toastId:t.toastId||e,updateId:bE()};a.toastId!==e&&(a.staleId=e);let l=a.render||s;delete a.render,qs(l,a)}};qe.done=e=>{qe.update(e,{progress:1})};qe.onChange=J2;qe.play=e=>CE(!0,e);qe.pause=e=>CE(!1,e);function rC(e){var t;let{subscribe:n,getSnapshot:i,setProps:s}=C.useRef(Z2(e)).current;s(e);let a=(t=C.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:vE,count:a?.length}}function iC(e){let[t,n]=C.useState(!1),[i,s]=C.useState(!1),a=C.useRef(null),l=C.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;X2({id:e.toastId,containerId:e.containerId,fn:n}),C.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){I();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 _(W){let{top:V,bottom:ee,left:me,right:oe}=a.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=me&&W.clientX<=oe&&W.clientY>=V&&W.clientY<=ee?S():k()}function k(){n(!0)}function S(){n(!1)}function I(){l.didMove=!1,document.addEventListener("pointermove",F),document.addEventListener("pointerup",z)}function O(){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 ee=e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`;V.style.transform=`translate3d(${ee},0)`,V.style.opacity=`${1-Math.abs(l.delta/l.removalDistance)}`}}function z(){O();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:_};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 oC=typeof window<"u"?C.useLayoutEffect:C.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 sC(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 aC(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 uC(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 lC(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 cC(){return Je.createElement("div",{className:"Toastify__spinner"})}var yf={info:aC,warning:sC,success:uC,error:lC,spinner:cC},dC=e=>e in yf;function fC({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}):C.isValidElement(i)?s=C.cloneElement(i,a):n?s=yf.spinner():dC(t)&&(s=yf[t](a))),s}var hC=e=>{let{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:s,playToast:a}=iC(e),{closeButton:l,children:c,autoClose:f,onClick:p,type:g,hideProgressBar:E,closeToast:b,transition:T,position:w,className:_,style:k,progressClassName:S,updateId:I,role:O,progress:F,rtl:z,toastId:B,deleteToast:W,isIn:V,isLoading:ee,closeOnClick:me,theme:oe,ariaLabel:K}=e,ge=lr("Toastify__toast",`Toastify__toast-theme--${oe}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":z},{"Toastify__toast--close-on-click":me}),te=dr(_)?_({rtl:z,position:w,type:g,defaultClassName:ge}):lr(ge,_),J=fC(e),ce=!!F||!f,fe={closeToast:b,type:g,theme:oe},j=null;return l===!1||(dr(l)?j=l(fe):C.isValidElement(l)?j=C.cloneElement(l,fe):j=z2(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:te,...s,style:k,ref:i,...V&&{role:O,"aria-label":K}},J!=null&&Je.createElement("div",{className:lr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ee})},J),TE(c,e,!t),j,!e.customProgressBar&&Je.createElement(W2,{...I&&!ce?{key:`p-${I}`}:{},rtl:z,theme:oe,delay:f,isRunning:t,isIn:V,closeToast:b,hide:E,type:g,className:S,controlledProgress:ce,progress:F||0})))},pC=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),SE=j2(pC("bounce",!0)),mC={position:"top-right",transition:SE,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 gC(e){let t={...mC,...e},n=e.stacked,[i,s]=C.useState(!0),a=C.useRef(null),{getToastToRender:l,isToastActive:c,count:f}=rC(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 _(){n&&(s(!0),qe.play())}return oC(()=>{var k;if(n){let S=a.current.querySelectorAll('[data-in="true"]'),I=12,O=(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=O?"top":"bot");let ee=F*(i?.2:1)+(i?0:I*W);V.style.setProperty("--y",`${O?ee:ee*-1}px`),V.style.setProperty("--g",`${I}`),V.style.setProperty("--s",`${1-(i?z:0)}`),F+=V.offsetHeight,z+=.025})}},[i,f,n]),C.useEffect(()=>{function k(S){var I;let O=a.current;T(S)&&((I=O.querySelector('[tabIndex="0"]'))==null||I.focus(),s(!1),qe.pause()),S.key==="Escape"&&(document.activeElement===O||O!=null&&O.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:_,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},l((k,S)=>{let I=S.length?{...g}:{...g,pointerEvents:"none"};return Je.createElement("div",{tabIndex:-1,className:w(k),"data-stacked":n,style:I,key:`c-${k}`},S.map(({content:O,props:F})=>Je.createElement(hC,{...F,stacked:n,collapseAll:_,isIn:c(F.toastId,F.containerId),key:`t-${F.key}`},O)))}))}const ws=dE("swatches/getSelectedProductThunk",async({assetId:e},{rejectWithValue:t})=>{try{return await M2({assetId:e})}catch(n){return console.error(n.message),qe("Failed to load product"),t(n.message)}}),EC={listAttributes:[],productElementOptions:[],materialSelectState:{Finish:[],Color:[],Look:[]},allMaterialsValues:[],selectedMaterials:[],selectedProduct:null,isLoadingSelectedProduct:!1,isOpenMultiProductCart:!1},wE=Qf({name:"swatches",initialState:EC,reducers:{setMaterialSelect(e,t){const{filterName:n,values:i}=t.payload;if(i.length===0){e.materialSelectState[n]=[];return}e.materialSelectState[n]=mE(i)},setPanelFilter(e,t){const n=t.payload.attributes;if(n.length){const i=Vu.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{selectedMaterial:n,limitCb:i}=t.payload;if(!n)return;const s=rE(e.selectedMaterials),a=c=>c.metadata?.label===n.metadata?.label&&c.parentName===n.parentName,l=s.some(a);!l&&s.length>=5&&i&&i(),l?e.selectedMaterials=s.filter(c=>!a(c)):s.length<5&&(e.selectedMaterials=[...s,n])},resetSelectedMaterials(e){e.selectedMaterials=[]},setSelectedProduct(e,t){e.selectedProduct=t.payload},deleteSelectedProduct(e){e.selectedProduct=null},setIsOpenMultiProductCart(e,t){e.isOpenMultiProductCart=t.payload}},extraReducers:e=>{e.addCase(ws.pending,t=>{t.isLoadingSelectedProduct=!0}).addCase(ws.fulfilled,t=>{t.isLoadingSelectedProduct=!1}).addCase(ws.rejected,t=>{t.isLoadingSelectedProduct=!1})}}),AE=wE.reducer,{setMaterialSelect:hl,setAllMaterialsOptions:Tf,setPanelFilter:Od,setSelectedMaterial:pl,clearMaterialFilter:uD,clearAllMaterialFilters:yC,setSelectedProduct:TC,deleteSelectedProduct:bC,setIsOpenMultiProductCart:kE,resetSelectedMaterials:lD}=wE.actions,Ut=5,xC={items:[]},vC=e=>e.reduce((t,n)=>t+n.count,0),NE=Qf({name:"cart",initialState:xC,reducers:{setCartItems(e,t){e.items=t.payload},removeItem(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial;e.items=e.items.filter(s=>!(s.metadata?.label===n?.label&&s.parentName===i))},increment(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial,s=e.items.find(a=>a.metadata?.label===n?.label&&a.parentName===i);s&&vC(e.items)<Ut&&(s.count+=1)},decrement(e,t){const{metadata:n,parentName:i}=t.payload.selectedMaterial,s=e.items.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.items.find(p=>p.metadata?.label===n?.label&&p.parentName===i);if(!a)return;const l=Math.max(1,Math.floor(s)),c=e.items.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)},clear(e){e.items=[]}}}),{setCartItems:_C,removeItem:CC,increment:SC,decrement:wC,setCount:cD,clear:dD}=NE.actions,IE=NE.reducer,As=dE("multiProducts/getProductListThunk",async(e,{rejectWithValue:t})=>{try{return await D2()}catch(n){return console.error(n?.message??n),t(n?.message??"Unknown error")}}),AC={items:[],productList:[],isLoadingProductList:!1,selectedProduct:null,activeMultiCartProduct:null,totalCount:0};function kC(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),OE=Qf({name:"multiProduct",initialState:AC,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=kC(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(As.pending,t=>{t.isLoadingProductList=!0}).addCase(As.fulfilled,(t,n)=>{t.productList=n.payload.rows,t.isLoadingProductList=!1}).addCase(As.rejected,t=>{t.isLoadingProductList=!1})}}),{setCartForProduct:fD,setMultiCartItems:bf,incrementMultiProductItem:NC,decrementMultiProductItem:IC,removeMultiProductItem:OC,clear:hD,setActiveMultiCartProduct:xf}=OE.actions,RE=OE.reducer,RC=$f({swatches:AE,cart:IE,multiProductCart:RE}),LC={},{NODE_ENV:PC}=LC;lE({reducer:RC,middleware:e=>e({thunk:!0,serializableCheck:{ignoredActionPaths:["meta.limitCb","payload.limitCb"],ignoredPaths:[]}}),devTools:PC!=="production"});const jt=Xf.withTypes(),je=pE.withTypes(),Gs=e=>e.swatches.allMaterialsValues,ho=e=>e.swatches.materialSelectState,DC=e=>e.swatches.productElementOptions,Zf=e=>e.swatches.selectedMaterials,LE=e=>e.swatches.isLoadingSelectedProduct,MC=e=>e.swatches.isOpenMultiProductCart,ml=e=>e.swatches.selectedProduct,PE=6.5,DE=({materials:e,containerStyles:t="flex flex-col gap-[8px] text-[12px]/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=C.useMemo(()=>e.reduce((s,a)=>s+(a.count??0),0)*PE,[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"})]})]})},ME=({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}),po=e=>e.multiProductCart.items,FC=e=>e.multiProductCart.productList,BC=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 C.useCallback(gl(...e),e)}function UC(e,t){const n=C.createContext(t),i=a=>{const{children:l,...c}=a,f=C.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:f,children:l})};i.displayName=e+"Provider";function s(a){const l=C.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=C.createContext(l),f=n.length;n=[...n,l];const p=E=>{const{scope:b,children:T,...w}=E,_=b?.[e]?.[f]||c,k=C.useMemo(()=>w,Object.values(w));return x.jsx(_.Provider,{value:k,children:T})};p.displayName=a+"Provider";function g(E,b){const T=b?.[e]?.[f]||c,w=C.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=>C.createContext(l));return function(c){const f=c?.[e]||a;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return s.scopeName=e,[i,HC(s,...t)]}function HC(...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 C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Vr=globalThis?.document?C.useLayoutEffect:()=>{},jC=Q1[" useId ".trim().toString()]||(()=>{}),zC=0;function Ru(e){const[t,n]=C.useState(jC());return Vr(()=>{n(i=>i??String(zC++))},[e]),e||(t?`radix-${t}`:"")}var WC=Q1[" useInsertionEffect ".trim().toString()]||Vr;function Jf({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,a,l]=VC({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:s;{const g=C.useRef(e!==void 0);C.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=C.useCallback(g=>{if(c){const E=YC(g)?g(e):g;E!==e&&l.current?.(E)}else a(g)},[c,e,a,l]);return[f,p]}function VC({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),a=C.useRef(t);return WC(()=>{a.current=t},[t]),C.useEffect(()=>{s.current!==n&&(a.current?.(n),s.current=n)},[n,s]),[n,i,a]}function YC(e){return typeof e=="function"}var mo=K1();const FE=il(mo);function $C(e){const t=qC(e),n=C.forwardRef((i,s)=>{const{children:a,...l}=i,c=C.Children.toArray(a),f=c.find(QC);if(f){const p=f.props.children,g=c.map(E=>E===f?C.Children.count(p)>1?C.Children.only(null):C.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:C.isValidElement(p)?C.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function qC(e){const t=C.forwardRef((n,i)=>{const{children:s,...a}=n;if(C.isValidElement(s)){const l=XC(s),c=KC(a,s.props);return s.type!==C.Fragment&&(c.ref=i?gl(i,l):l),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GC=Symbol("radix.slottable");function QC(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GC}function KC(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 XC(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 ZC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],At=ZC.reduce((e,t)=>{const n=$C(`Primitive.${t}`),i=C.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 JC(e,t){e&&mo.flushSync(()=>e.dispatchEvent(t))}function ao(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>t.current?.(...n),[])}function eS(e,t=globalThis?.document){const n=ao(e);C.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 tS="DismissableLayer",vf="dismissableLayer.update",nS="dismissableLayer.pointerDownOutside",rS="dismissableLayer.focusOutside",og,BE=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eh=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,p=C.useContext(BE),[g,E]=C.useState(null),b=g?.ownerDocument??globalThis?.document,[,T]=C.useState({}),w=cn(t,W=>E(W)),_=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=_.indexOf(k),I=g?_.indexOf(g):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,F=I>=S,z=sS(W=>{const V=W.target,ee=[...p.branches].some(me=>me.contains(V));!F||ee||(s?.(W),l?.(W),W.defaultPrevented||c?.())},b),B=aS(W=>{const V=W.target;[...p.branches].some(me=>me.contains(V))||(a?.(W),l?.(W),W.defaultPrevented||c?.())},b);return eS(W=>{I===p.layers.size-1&&(i?.(W),!W.defaultPrevented&&c&&(W.preventDefault(),c()))},b),C.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]),C.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),sg())},[g,p]),C.useEffect(()=>{const W=()=>T({});return document.addEventListener(vf,W),()=>document.removeEventListener(vf,W)},[]),x.jsx(At.div,{...f,ref:w,style:{pointerEvents:O?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=tS;var iS="DismissableLayerBranch",oS=C.forwardRef((e,t)=>{const n=C.useContext(BE),i=C.useRef(null),s=cn(t,i);return C.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})});oS.displayName=iS;function sS(e,t=globalThis?.document){const n=ao(e),i=C.useRef(!1),s=C.useRef(()=>{});return C.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let f=function(){UE(nS,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 aS(e,t=globalThis?.document){const n=ao(e),i=C.useRef(!1);return C.useEffect(()=>{const s=a=>{a.target&&!i.current&&UE(rS,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 UE(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?JC(s,a):s.dispatchEvent(a)}var Ld="focusScope.autoFocusOnMount",Pd="focusScope.autoFocusOnUnmount",ag={bubbles:!1,cancelable:!0},uS="FocusScope",th=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=C.useState(null),p=ao(s),g=ao(a),E=C.useRef(null),b=cn(t,_=>f(_)),T=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let _=function(O){if(T.paused||!c)return;const F=O.target;c.contains(F)?E.current=F:Br(E.current,{select:!0})},k=function(O){if(T.paused||!c)return;const F=O.relatedTarget;F!==null&&(c.contains(F)||Br(E.current,{select:!0}))},S=function(O){if(document.activeElement===document.body)for(const z of O)z.removedNodes.length>0&&Br(c)};document.addEventListener("focusin",_),document.addEventListener("focusout",k);const I=new MutationObserver(S);return c&&I.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",k),I.disconnect()}}},[i,c,T.paused]),C.useEffect(()=>{if(c){lg.add(T);const _=document.activeElement;if(!c.contains(_)){const S=new CustomEvent(Ld,ag);c.addEventListener(Ld,p),c.dispatchEvent(S),S.defaultPrevented||(lS(pS(HE(c)),{select:!0}),document.activeElement===_&&Br(c))}return()=>{c.removeEventListener(Ld,p),setTimeout(()=>{const S=new CustomEvent(Pd,ag);c.addEventListener(Pd,g),c.dispatchEvent(S),S.defaultPrevented||Br(_??document.body,{select:!0}),c.removeEventListener(Pd,g),lg.remove(T)},0)}}},[c,p,g,T]);const w=C.useCallback(_=>{if(!n&&!i||T.paused)return;const k=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,S=document.activeElement;if(k&&S){const I=_.currentTarget,[O,F]=cS(I);O&&F?!_.shiftKey&&S===F?(_.preventDefault(),n&&Br(O,{select:!0})):_.shiftKey&&S===O&&(_.preventDefault(),n&&Br(F,{select:!0})):S===I&&_.preventDefault()}},[n,i,T.paused]);return x.jsx(At.div,{tabIndex:-1,...l,ref:b,onKeyDown:w})});th.displayName=uS;function lS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Br(i,{select:t}),document.activeElement!==n)return}function cS(e){const t=HE(e),n=ug(t,e),i=ug(t.reverse(),e);return[n,i]}function HE(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(!dS(n,{upTo:t}))return n}function dS(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 fS(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&&fS(e)&&t&&e.select()}}var lg=hS();function hS(){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 pS(e){return e.filter(t=>t.tagName!=="A")}var mS="Portal",jE=C.forwardRef((e,t)=>{const{container:n,...i}=e,[s,a]=C.useState(!1);Vr(()=>a(!0),[]);const l=n||s&&globalThis?.document?.body;return l?FE.createPortal(x.jsx(At.div,{...i,ref:t}),l):null});jE.displayName=mS;function gS(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}var go=e=>{const{present:t,children:n}=e,i=ES(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),a=cn(i.ref,yS(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:a}):null};go.displayName="Presence";function ES(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),a=C.useRef("none"),l=e?"mounted":"unmounted",[c,f]=gS(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const p=bu(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=bu(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 _=bu(i.current).includes(CSS.escape(T.animationName));if(T.target===t&&_&&(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=bu(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:C.useCallback(p=>{i.current=p?getComputedStyle(p):null,n(p)},[])}}function bu(e){return e?.animationName||"none"}function yS(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 zE(){C.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 WE(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 TS(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 Lu="right-scroll-bar-position",Pu="width-before-scroll-bar",bS="with-scroll-bars-hidden",xS="--removed-body-scroll-bar-size";function Md(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vS(e,t){var n=C.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 _S=typeof window<"u"?C.useLayoutEffect:C.useEffect,fg=new WeakMap;function CS(e,t){var n=vS(null,function(i){return e.forEach(function(s){return Md(s,i)})});return _S(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 SS(e){return e}function wS(e,t){t===void 0&&(t=SS);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 AS(e){e===void 0&&(e={});var t=wS(null);return t.options=Wn({async:!0,ssr:!1},e),t}var VE=function(e){var t=e.sideCar,n=WE(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 C.createElement(i,Wn({},n))};VE.isSideCarExport=!0;function kS(e,t){return e.useMedium(t),VE}var YE=AS(),Fd=function(){},yl=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.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,_=e.inert,k=e.allowPinchZoom,S=e.as,I=S===void 0?"div":S,O=e.gapMode,F=WE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=b,B=CS([n,t]),W=Wn(Wn({},F),s);return C.createElement(C.Fragment,null,g&&C.createElement(z,{sideCar:YE,removeScrollBar:p,shards:E,noRelative:T,noIsolation:w,inert:_,setCallbacks:a,allowPinchZoom:!!k,lockRef:n,gapMode:O}),l?C.cloneElement(C.Children.only(c),Wn(Wn({},W),{ref:B})):C.createElement(I,Wn({},W,{className:f,ref:B}),c))});yl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yl.classNames={fullWidth:Pu,zeroRight:Lu};var NS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=NS();return t&&e.setAttribute("nonce",t),e}function OS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IS())&&(OS(t,n),RS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},PS=function(){var e=LS();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$E=function(){var e=PS(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},DS={left:0,top:0,right:0,gap:0},Bd=function(e){return parseInt(e||"",10)||0},MS=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)]},FS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DS;var t=MS(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])}},BS=$E(),no="data-scroll-locked",US=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(bS,` {
11
+ overflow: hidden `).concat(i,`;
12
+ padding-right: `).concat(c,"px ").concat(i,`;
13
+ }
14
+ body[`).concat(no,`] {
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(Lu,` {
28
+ right: `).concat(c,"px ").concat(i,`;
29
+ }
30
+
31
+ .`).concat(Pu,` {
32
+ margin-right: `).concat(c,"px ").concat(i,`;
33
+ }
34
+
35
+ .`).concat(Lu," .").concat(Lu,` {
36
+ right: 0 `).concat(i,`;
37
+ }
38
+
39
+ .`).concat(Pu," .").concat(Pu,` {
40
+ margin-right: 0 `).concat(i,`;
41
+ }
42
+
43
+ body[`).concat(no,`] {
44
+ `).concat(xS,": ").concat(c,`px;
45
+ }
46
+ `)},hg=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},HS=function(){C.useEffect(function(){return document.body.setAttribute(no,(hg()+1).toString()),function(){var e=hg()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},jS=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;HS();var a=C.useMemo(function(){return FS(s)},[s]);return C.createElement(BS,{styles:US(a,!t,s,n?"":"!important")})},_f=!1;if(typeof window<"u")try{var xu=Object.defineProperty({},"passive",{get:function(){return _f=!0,!0}});window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,xu)}catch{_f=!1}var Gi=_f?{passive:!1}:!1,zS=function(e){return e.tagName==="TEXTAREA"},qE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zS(e)&&n[t]==="visible")},WS=function(e){return qE(e,"overflowY")},VS=function(e){return qE(e,"overflowX")},pg=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=GE(e,i);if(s){var a=QE(e,i),l=a[1],c=a[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},YS=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},$S=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},GE=function(e,t){return e==="v"?WS(t):VS(t)},QE=function(e,t){return e==="v"?YS(t):$S(t)},qS=function(e,t){return e==="h"&&t==="rtl"?-1:1},GS=function(e,t,n,i,s){var a=qS(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=QE(e,c),w=T[0],_=T[1],k=T[2],S=_-k-a*w;(w||S)&&GE(e,c)&&(E+=S,b+=w);var I=c.parentNode;c=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}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},vu=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},QS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KS=function(e){return`
47
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
48
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
49
+ `)},XS=0,Qi=[];function ZS(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(XS++)[0],a=C.useState($E)[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var _=TS([e.lockRef.current],(e.shards||[]).map(gg),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var S=vu(_),I=n.current,O="deltaX"in _?_.deltaX:I[0]-S[0],F="deltaY"in _?_.deltaY:I[1]-S[1],z,B=_.target,W=Math.abs(O)>Math.abs(F)?"h":"v";if("touches"in _&&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 _&&(O||F)&&(i.current=z),!z)return!0;var ee=i.current||z;return GS(ee,k,_,ee==="h"?O:F)},[]),f=C.useCallback(function(_){var k=_;if(!(!Qi.length||Qi[Qi.length-1]!==a)){var S="deltaY"in k?mg(k):vu(k),I=t.current.filter(function(z){return z.name===k.type&&(z.target===k.target||k.target===z.shadowParent)&&QS(z.delta,S)})[0];if(I&&I.should){k.cancelable&&k.preventDefault();return}if(!I){var O=(l.current.shards||[]).map(gg).filter(Boolean).filter(function(z){return z.contains(k.target)}),F=O.length>0?c(k,O[0]):!l.current.noIsolation;F&&k.cancelable&&k.preventDefault()}}},[]),p=C.useCallback(function(_,k,S,I){var O={name:_,delta:k,target:S,should:I,shadowParent:JS(S)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(F){return F!==O})},1)},[]),g=C.useCallback(function(_){n.current=vu(_),i.current=void 0},[]),E=C.useCallback(function(_){p(_.type,mg(_),_.target,c(_,e.lockRef.current))},[]),b=C.useCallback(function(_){p(_.type,vu(_),_.target,c(_,e.lockRef.current))},[]);C.useEffect(function(){return Qi.push(a),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:b}),document.addEventListener("wheel",f,Gi),document.addEventListener("touchmove",f,Gi),document.addEventListener("touchstart",g,Gi),function(){Qi=Qi.filter(function(_){return _!==a}),document.removeEventListener("wheel",f,Gi),document.removeEventListener("touchmove",f,Gi),document.removeEventListener("touchstart",g,Gi)}},[]);var T=e.removeScrollBar,w=e.inert;return C.createElement(C.Fragment,null,w?C.createElement(a,{styles:KS(s)}):null,T?C.createElement(jS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ew=kS(YE,ZS);var nh=C.forwardRef(function(e,t){return C.createElement(yl,Wn({},e,{ref:t,sideCar:ew}))});nh.classNames=yl.classNames;var tw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ki=new WeakMap,_u=new WeakMap,Cu={},Ud=0,KE=function(e){return e&&(e.host||KE(e.parentNode))},nw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=KE(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})},rw=function(e,t,n,i){var s=nw(t,Array.isArray(e)?e:[e]);Cu[n]||(Cu[n]=new WeakMap);var a=Cu[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",_=(Ki.get(b)||0)+1,k=(a.get(b)||0)+1;Ki.set(b,_),a.set(b,k),l.push(b),_===1&&w&&_u.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=Ki.get(E)-1,T=a.get(E)-1;Ki.set(E,b),a.set(E,T),b||(_u.has(E)||E.removeAttribute(i),_u.delete(E)),T||E.removeAttribute(n)}),Ud--,Ud||(Ki=new WeakMap,Ki=new WeakMap,_u=new WeakMap,Cu={})}},XE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=tw(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),rw(i,s,n,"aria-hidden")):function(){return null}};function iw(e){const t=ow(e),n=C.forwardRef((i,s)=>{const{children:a,...l}=i,c=C.Children.toArray(a),f=c.find(aw);if(f){const p=f.props.children,g=c.map(E=>E===f?C.Children.count(p)>1?C.Children.only(null):C.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:C.isValidElement(p)?C.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function ow(e){const t=C.forwardRef((n,i)=>{const{children:s,...a}=n;if(C.isValidElement(s)){const l=lw(s),c=uw(a,s.props);return s.type!==C.Fragment&&(c.ref=i?gl(i,l):l),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sw=Symbol("radix.slottable");function aw(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sw}function uw(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 lw(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",[ZE]=El(Tl),[cw,Ln]=ZE(Tl),JE=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,c=C.useRef(null),f=C.useRef(null),[p,g]=Jf({prop:i,defaultProp:s??!1,onChange:a,caller:Tl});return x.jsx(cw,{scope:t,triggerRef:c,contentRef:f,contentId:Ru(),titleId:Ru(),descriptionId:Ru(),open:p,onOpenChange:g,onOpenToggle:C.useCallback(()=>g(E=>!E),[g]),modal:l,children:n})};JE.displayName=Tl;var ey="DialogTrigger",dw=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(ey,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)})});dw.displayName=ey;var rh="DialogPortal",[fw,ty]=ZE(rh,{forceMount:void 0}),ny=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,a=Ln(rh,t);return x.jsx(fw,{scope:t,forceMount:n,children:C.Children.map(i,l=>x.jsx(go,{present:n||a.open,children:x.jsx(jE,{asChild:!0,container:s,children:l})}))})};ny.displayName=rh;var Yu="DialogOverlay",ry=C.forwardRef((e,t)=>{const n=ty(Yu,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Ln(Yu,e.__scopeDialog);return a.modal?x.jsx(go,{present:i||a.open,children:x.jsx(pw,{...s,ref:t})}):null});ry.displayName=Yu;var hw=iw("DialogOverlay.RemoveScroll"),pw=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(Yu,n);return x.jsx(nh,{as:hw,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",iy=C.forwardRef((e,t)=>{const n=ty(gi,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,a=Ln(gi,e.__scopeDialog);return x.jsx(go,{present:i||a.open,children:a.modal?x.jsx(mw,{...s,ref:t}):x.jsx(gw,{...s,ref:t})})});iy.displayName=gi;var mw=C.forwardRef((e,t)=>{const n=Ln(gi,e.__scopeDialog),i=C.useRef(null),s=cn(t,n.contentRef,i);return C.useEffect(()=>{const a=i.current;if(a)return XE(a)},[]),x.jsx(oy,{...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())})}),gw=C.forwardRef((e,t)=>{const n=Ln(gi,e.__scopeDialog),i=C.useRef(!1),s=C.useRef(!1);return x.jsx(oy,{...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()}})}),oy=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,c=Ln(gi,n),f=C.useRef(null),p=cn(t,f);return zE(),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(Ew,{titleId:c.titleId}),x.jsx(Tw,{contentRef:f,descriptionId:c.descriptionId})]})]})}),ih="DialogTitle",sy=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(ih,n);return x.jsx(At.h2,{id:s.titleId,...i,ref:t})});sy.displayName=ih;var ay="DialogDescription",uy=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(ay,n);return x.jsx(At.p,{id:s.descriptionId,...i,ref:t})});uy.displayName=ay;var ly="DialogClose",cy=C.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Ln(ly,n);return x.jsx(At.button,{type:"button",...i,ref:t,onClick:Ht(e.onClick,()=>s.onOpenChange(!1))})});cy.displayName=ly;function oh(e){return e?"open":"closed"}var dy="DialogTitleWarning",[pD,fy]=UC(dy,{contentName:gi,titleName:ih,docsSlug:"dialog"}),Ew=({titleId:e})=>{const t=fy(dy),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 C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},yw="DialogDescriptionWarning",Tw=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fy(yw).contentName}}.`;return C.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},bw=JE,xw=ny,hy=ry,py=iy,my=sy,gy=uy,vw=cy;const _w=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),Eg=e=>{const t=Cw(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ey=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var Sw={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 ww=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:l,...c},f)=>C.createElement("svg",{ref:f,...Sw,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Ey("lucide",s),...c},[...l.map(([p,g])=>C.createElement(p,g)),...Array.isArray(a)?a:[a]]));const sh=(e,t)=>{const n=C.forwardRef(({className:i,...s},a)=>C.createElement(ww,{ref:a,iconNode:t,className:Ey(`lucide-${_w(Eg(e))}`,`lucide-${e}`,i),...s}));return n.displayName=Eg(e),n};const Aw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yy=sh("check",Aw);const kw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ty=sh("chevron-down",kw);const Nw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ah=sh("x",Nw),Iw=(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},Ow=(e,t)=>({classGroupId:e,validator:t}),by=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),$u="-",yg=[],Rw="arbitrary..",Lw=e=>{const t=Dw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Pw(l);const c=l.split($u),f=c[0]===""&&c.length>1?1:0;return xy(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=i[l],p=n[l];return f?p?Iw(p,f):f:p||yg}return n[l]||yg}}},xy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const p=xy(e,t+1,a);if(p)return p}const l=n.validators;if(l===null)return;const c=t===0?e.join($u):e.slice(t).join($u),f=l.length;for(let p=0;p<f;p++){const g=l[p];if(g.validator(c))return g.classGroupId}},Pw=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?Rw+i:void 0})(),Dw=e=>{const{theme:t,classGroups:n}=e;return Mw(n,t)},Mw=(e,t)=>{const n=by();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];Fw(l,t,n,i)}},Fw=(e,t,n,i)=>{if(typeof e=="string"){Bw(e,t,n);return}if(typeof e=="function"){Uw(e,t,n,i);return}Hw(e,t,n,i)},Bw=(e,t,n)=>{const i=e===""?t:vy(t,e);i.classGroupId=n},Uw=(e,t,n,i)=>{if(jw(e)){uh(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Ow(n,e))},Hw=(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,vy(t,c),n,i)}},vy=(e,t)=>{let n=e;const i=t.split($u),s=i.length;for(let a=0;a<s;a++){const l=i[a];let c=n.nextPart.get(l);c||(c=by(),n.nextPart.set(l,c)),n=c}return n},jw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zw=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=":",Ww=[],bg=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),Vw=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 _=0;_<g;_++){const k=s[_];if(l===0&&c===0){if(k===Tg){a.push(s.slice(f,_)),f=_+1;continue}if(k==="/"){p=_;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(Ww,!1,l,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},Yw=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}},$w=e=>({cache:zw(e.cacheSize),parseClassName:Vw(e),sortModifiers:Yw(e),...Lw(e)}),qw=/\s+/,Gw=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,l=[],c=e.trim().split(qw);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:_}=n(g);if(E){f=g+(f.length>0?" "+f:f);continue}let k=!!_,S=i(k?w.substring(0,_):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 I=b.length===0?"":b.length===1?b[0]:a(b).join(":"),O=T?I+Cf:I,F=O+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(O+W)}f=g+(f.length>0?" "+f:f)}return f},Qw=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=_y(n))&&(s&&(s+=" "),s+=i);return s},_y=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=_y(e[i]))&&(n&&(n+=" "),n+=t);return n},Kw=(e,...t)=>{let n,i,s,a;const l=f=>{const p=t.reduce((g,E)=>E(g),e());return n=$w(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=Gw(f,n);return s(f,g),g};return a=l,(...f)=>a(Qw(...f))},Xw=[],mt=e=>{const t=n=>n[e]||Xw;return t.isThemeGetter=!0,t},Cy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zw=/^\d+\/\d+$/,Jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eA=/\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$/,tA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xi=e=>Zw.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=>Jw.test(e),iA=()=>!0,oA=e=>eA.test(e)&&!tA.test(e),wy=()=>!1,sA=e=>nA.test(e),aA=e=>rA.test(e),uA=e=>!xe(e)&&!ve(e),lA=e=>Eo(e,Ny,wy),xe=e=>Cy.test(e),ui=e=>Eo(e,Iy,oA),jd=e=>Eo(e,pA,Me),xg=e=>Eo(e,Ay,wy),cA=e=>Eo(e,ky,aA),Su=e=>Eo(e,Oy,sA),ve=e=>Sy.test(e),ms=e=>yo(e,Iy),dA=e=>yo(e,mA),vg=e=>yo(e,Ay),fA=e=>yo(e,Ny),hA=e=>yo(e,ky),wu=e=>yo(e,Oy,!0),Eo=(e,t,n)=>{const i=Cy.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},yo=(e,t,n=!1)=>{const i=Sy.exec(e);return i?i[1]?t(i[1]):n:!1},Ay=e=>e==="position"||e==="percentage",ky=e=>e==="image"||e==="url",Ny=e=>e==="length"||e==="size"||e==="bg-size",Iy=e=>e==="length",pA=e=>e==="number",mA=e=>e==="family-name",Oy=e=>e==="shadow",gA=()=>{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"),_=mt("perspective"),k=mt("aspect"),S=mt("ease"),I=mt("animate"),O=()=>["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],ee=()=>[Xi,"full","auto",...V()],me=()=>[Mr,"none","subgrid",ve,xe],oe=()=>["auto",{span:["full",Mr,ve,xe]},Mr,ve,xe],K=()=>[Mr,"auto",ve,xe],ge=()=>["auto","min","max","fr",ve,xe],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...V()],fe=()=>[Xi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],j=()=>[e,ve,xe],he=()=>[...F(),vg,xg,{position:[ve,xe]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",fA,lA,{size:[ve,xe]}],Z=()=>[Hd,ms,ui],L=()=>["","none","full",p,ve,xe],Te=()=>["",Me,ms,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=()=>[Xi,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sr],breakpoint:[sr],color:[iA],container:[sr],"drop-shadow":[sr],ease:["in","out","in-out"],font:[uA],"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",Xi,xe,ve,k]}],container:["container"],columns:[{columns:[Me,xe,ve,c]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",ve,xe]}],basis:[{basis:[Xi,"full","auto",c,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Xi,"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":me()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],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:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"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,ms,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:[dA,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:he()}],"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]},hA,cA]}],"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,ms,ui]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",g,wu,Su]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",E,wu,Su]}],"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,wu,Su]}],"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:he()}],"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,wu,Su]}],"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",I,ve,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,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,ms,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"]}},EA=Kw(gA);function Ft(...e){return EA(lr(e))}const Ry=bw,yA=xw,Ly=C.forwardRef(({className:e,...t},n)=>x.jsx(hy,{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()}));Ly.displayName=hy.displayName;const lh=C.forwardRef(({className:e,children:t,...n},i)=>x.jsxs(yA,{container:document.querySelector(".root-app"),children:[x.jsx(Ly,{}),x.jsxs(py,{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(vw,{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=py.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=C.forwardRef(({className:e,...t},n)=>x.jsx(my,{ref:n,className:Ft("text-3xl font-semibold leading-none tracking-tight",e),...t}));dh.displayName=my.displayName;const TA=C.forwardRef(({className:e,...t},n)=>x.jsx(gy,{ref:n,className:Ft("text-muted-foreground",e),...t}));TA.displayName=gy.displayName;const fh=({item:e})=>{const[t,n]=C.useState(""),[i,s]=C.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(Ry,{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]})]})})]})},Qs=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]=C.useState(null),[i,s]=C.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(Ry,{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)]})]})})]})},bA="w-[64px] h-[64px] bg-[var(--sidebar-b)] border border-solid border-[var(--border)] rounded-sm aspect-square overflow-hidden transition",xA=({val:e,className:t,isShowDeleteIcon:n=!1,handleSelect:i})=>x.jsxs("button",{onClick:()=>{i&&i(e)},className:`relative ${t||bA}`,"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(Qs,{className:"w-[8px] h-2 stroke-[var(--svg-dark)]"})}):null]},e.assetId),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.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:"M2.5 6H9.5M6 2.5V9.5",stroke:"current",strokeLinecap:"round",strokeLinejoin:"round"})}),CA=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"})}),SA=({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(CA,{})}):x.jsx("button",{"aria-label":"Decrease",onClick:i,className:"[&_svg_path]:stroke-[var(--svg-dark)]",children:x.jsx(vA,{})}),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(_A,{})})]})},Py=({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(xA,{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-[12px]",children:e.metadata?.label}),x.jsx("span",{className:"mb-[4px] font-bold text-[10px]",children:e.parentName})]}),x.jsx(SA,{value:e.count,canIncrement:t,onIncrement:i,onDecrement:s,onDelete:n})]}),x.jsxs("div",{className:" absolute text-[12px] top-0 right-0 font-bold",children:["$",e.count*PE]})]})},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"})}),wA=({totalCount:e})=>{const t=jt(),n=()=>{t(kE(!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-[12px] 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]})})},AA=({onSendData:e})=>{const t=jt(),n=je(po),i=C.useMemo(()=>n.flatMap(f=>f.items),[n]),s=({item:f,assetId:p})=>{const{parentName:g,metadata:E}=f,b=E?.label;p&&b&&g&&(t(OC({assetId:p,label:b,parentName:g})),t(pl({selectedMaterial:f})))},a=({item:f,assetId:p})=>{const{parentName:g,metadata:E}=f,b=E?.label;p&&b&&g&&t(NC({assetId:p,label:b,parentName:g}))},l=({item:f,assetId:p})=>{const{parentName:g,metadata:E}=f,b=E?.label;p&&b&&g&&t(IC({assetId:p,label:b,parentName:g}))},c=C.useMemo(()=>i.reduce((f,p)=>f+(p.count??0),0),[i]);return x.jsxs("div",{className:"flex flex-col h-full",children:[x.jsx(wA,{totalCount:c}),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(f=>{const{items:p,name:g,assetId:E}=f;return p.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:g},f.value),x.jsx("ul",{children:p?.map(b=>x.jsx(Py,{item:b,canInc:c<Ut,onDelete:()=>{E&&s({item:b,assetId:E})},onIncrement:()=>{E&&a({item:b,assetId:E})},onDecrement:()=>{E&&l({item:b,assetId:E})}},`${b.value}/${b.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(DE,{materials:i,containerStyles:"flex flex-col gap-[8px] text-[12px]/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(ME,{onClick:()=>e&&e(n),disabled:i.length>Ut+1,children:"GO TO SHIPPING"})})})]})]})]})},kA=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"})]}),NA="/assets/product_thumb-Bn1S8z9K.png",_g={MATERIAL:"material"},IA="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===IA)}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=Vu.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 OA=({productListItem:e})=>{const t=jt(),{name:n,img:i}=e,s=i?`https://admin-fts.threekit.com${i}`:NA,a=async()=>{const{assetId:l,name:c}=e;if(l&&c){const f=await t(ws({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]})},Dy={name:"All",value:"",productId:0,items:[]};class RA{static getCartTotalCount({cartItems:t}){return t.reduce((n,i)=>n+i.count,0)}static getUniqueCategories(t){return[...[...new Set(t.map(s=>s.collection))].map((s,a)=>({name:s,value:s,productId:a+1,items:[]})),Dy].sort((s,a)=>s.productId-a.productId)}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 LA=({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=C.useRef(null),l=C.useRef(null),c=C.useRef(null),[f,p]=C.useState(!1),[g,E]=C.useState(!1),b=C.useCallback(()=>{const w=a.current;if(!w)return;const _=w.scrollWidth-w.clientWidth-w.scrollLeft,k=.5;p(w.scrollLeft>k),E(_>k)},[]);C.useLayoutEffect(()=>(c.current=requestAnimationFrame(b),()=>{c.current&&cancelAnimationFrame(c.current)}),[e.length,b]),C.useEffect(()=>{const w=a.current,_=l.current;if(!w||!_)return;b();const k=new ResizeObserver(()=>b()),S=new ResizeObserver(()=>b());k.observe(w),S.observe(_);const I=()=>b();return w.addEventListener("scroll",I,{passive:!0}),"fonts"in document&&document.fonts?.ready?.then(()=>b()),()=>{k.disconnect(),S.disconnect(),w.removeEventListener("scroll",I)}},[b]);const T=w=>{const _=a.current;if(!_)return;const k=_.clientWidth*s*(w==="left"?-1:1);_.scrollBy({left:k,behavior:"smooth"})};return x.jsxs("div",{className:`flex flex-row items-center gap-[8px] lg:w-[50%] xl:w-auto ${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",paddingLeft:"0.5rem",paddingRight:"0.5rem"},children:x.jsxs("div",{ref:l,className:"flex flex-row gap-[12px] sm:gap-[16px] py-2",children:[e.map(w=>{const _=w.productId,k=t===_;return x.jsx("div",{className:"shrink-0",children:x.jsx(LA,{text:w.name,isActive:k,onClick:()=>n(w)})},_)}),x.jsx("div",{"aria-hidden":!0,className:"shrink-0 w-1 sm:w-[16px]"})]})}),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"})," "]})]})},PA=["top","right","bottom","left"],Yr=Math.min,sn=Math.max,qu=Math.round,Au=Math.floor,$n=e=>({x:e,y:e}),DA={left:"right",right:"left",bottom:"top",top:"bottom"},MA={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 To(e){return e.split("-")[1]}function mh(e){return e==="x"?"y":"x"}function gh(e){return e==="y"?"height":"width"}const FA=new Set(["top","bottom"]);function Yn(e){return FA.has(hr(e))?"y":"x"}function Eh(e){return mh(Yn(e))}function BA(e,t,n){n===void 0&&(n=!1);const i=To(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=Gu(l)),[l,Gu(l)]}function UA(e){const t=Gu(e);return[Af(e),t,Af(t)]}function Af(e){return e.replace(/start|end/g,t=>MA[t])}const wg=["left","right"],Ag=["right","left"],HA=["top","bottom"],jA=["bottom","top"];function zA(e,t,n){switch(e){case"top":case"bottom":return n?t?Ag:wg:t?wg:Ag;case"left":case"right":return t?HA:jA;default:return[]}}function WA(e,t,n,i){const s=To(e);let a=zA(hr(e),n==="start",i);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(Af)))),a}function Gu(e){return e.replace(/left|right|bottom|top/g,t=>DA[t])}function VA(e){return{top:0,right:0,bottom:0,left:0,...e}}function My(e){return typeof e!="number"?VA(e):{top:e,right:e,bottom:e,left:e}}function Qu(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(To(t)){case"start":T[l]-=b*(n&&p?-1:1);break;case"end":T[l]+=b*(n&&p?-1:1);break}return T}const YA=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 _=0;_<c.length;_++){const{name:k,fn:S}=c[_],{x:I,y:O,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=I??g,E=O??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)),_=-1)}return{x:g,y:E,placement:b,strategy:s,middlewareData:T}};async function Hs(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=My(T),k=c[b?E==="floating"?"reference":"floating":E],S=Qu(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})),I=E==="floating"?{x:i,y:s,width:l.floating.width,height:l.floating.height}:l.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),F=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Qu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:I,offsetParent:O,strategy:f}):I);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 $A=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=My(g),b={x:n,y:i},T=Eh(s),w=gh(T),_=await l.getDimensions(p),k=T==="y",S=k?"top":"left",I=k?"bottom":"right",O=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[O]:0;(!W||!await(l.isElement==null?void 0:l.isElement(B)))&&(W=c.floating[O]||a.floating[w]);const V=F/2-z/2,ee=W/2-_[w]/2-1,me=Yr(E[S],ee),oe=Yr(E[I],ee),K=me,ge=W-_[w]-oe,te=W/2-_[w]/2+V,J=wf(K,te,ge),ce=!f.arrow&&To(s)!=null&&te!==J&&a.reference[w]/2-(te<K?me:oe)-_[w]/2<0,fe=ce?te<K?te-K:te-ge:0;return{[T]:b[T]+fe,data:{[T]:J,centerOffset:te-J-fe,...ce&&{alignmentOffset:fe}},reset:ce}}}),qA=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:_=!0,...k}=fr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const S=hr(s),I=Yn(c),O=hr(c)===c,F=await(f.isRTL==null?void 0:f.isRTL(p.floating)),z=b||(O||!_?[Gu(c)]:UA(c)),B=w!=="none";!b&&B&&z.push(...WA(c,_,w,F));const W=[c,...z],V=await Hs(t,k),ee=[];let me=((i=a.flip)==null?void 0:i.overflows)||[];if(g&&ee.push(V[S]),E){const te=BA(s,l,F);ee.push(V[te[0]],V[te[1]])}if(me=[...me,{placement:s,overflows:ee}],!ee.every(te=>te<=0)){var oe,K;const te=(((oe=a.flip)==null?void 0:oe.index)||0)+1,J=W[te];if(J&&(!(E==="alignment"?I!==Yn(J):!1)||me.every(j=>Yn(j.placement)===I?j.overflows[0]>0:!0)))return{data:{index:te,overflows:me},reset:{placement:J}};let ce=(K=me.filter(fe=>fe.overflows[0]<=0).sort((fe,j)=>fe.overflows[1]-j.overflows[1])[0])==null?void 0:K.placement;if(!ce)switch(T){case"bestFit":{var ge;const fe=(ge=me.filter(j=>{if(B){const he=Yn(j.placement);return he===I||he==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(he=>he>0).reduce((he,N)=>he+N,0)]).sort((j,he)=>j[1]-he[1])[0])==null?void 0:ge[0];fe&&(ce=fe);break}case"initialPlacement":ce=c;break}if(s!==ce)return{reset:{placement:ce}}}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 PA.some(t=>e[t]>=0)}const GA=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 Hs(t,{...s,elementContext:"reference"}),l=Ng(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ig(l)}}}case"escaped":{const a=await Hs(t,{...s,altBoundary:!0}),l=Ng(a,n.floating);return{data:{escapedOffsets:l,escaped:Ig(l)}}}default:return{}}}}},Fy=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=To(n),f=Yn(n)==="y",p=Fy.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 KA=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}}}}},XA=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:I}=k;return{x:S,y:I}}},...f}=fr(e,t),p={x:n,y:i},g=await Hs(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",I=T+g[k],O=T-g[S];T=wf(I,T,O)}if(l){const k=E==="y"?"top":"left",S=E==="y"?"bottom":"right",I=w+g[k],O=w-g[S];w=wf(I,w,O)}const _=c.fn({...t,[b]:T,[E]:w});return{..._,data:{x:_.x-n,y:_.y-i,enabled:{[b]:a,[E]:l}}}}}},ZA=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 _=fr(c,t),k=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(f){const O=b==="y"?"height":"width",F=a.reference[b]-a.floating[O]+k.mainAxis,z=a.reference[b]+a.reference[O]-k.mainAxis;T<F?T=F:T>z&&(T=z)}if(p){var S,I;const O=b==="y"?"width":"height",F=Fy.has(hr(s)),z=a.reference[E]-a.floating[O]+(F&&((S=l.offset)==null?void 0:S[E])||0)+(F?0:k.crossAxis),B=a.reference[E]+a.reference[O]+(F?0:((I=l.offset)==null?void 0:I[E])||0)-(F?k.crossAxis:0);w<z?w=z:w>B&&(w=B)}return{[b]:T,[E]:w}}}},JA=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 Hs(t,p),E=hr(s),b=To(s),T=Yn(s)==="y",{width:w,height:_}=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 I=_-g.top-g.bottom,O=w-g.left-g.right,F=Yr(_-g[k],I),z=Yr(w-g[S],O),B=!t.middlewareData.shift;let W=F,V=z;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(V=O),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(W=I),B&&!b){const me=sn(g.left,0),oe=sn(g.right,0),K=sn(g.top,0),ge=sn(g.bottom,0);T?V=w-2*(me!==0||oe!==0?me+oe:sn(g.left,g.right)):W=_-2*(K!==0||ge!==0?K+ge:sn(g.top,g.bottom))}await f({...t,availableWidth:V,availableHeight:W});const ee=await l.getDimensions(c.floating);return w!==ee.width||_!==ee.height?{reset:{rects:!0}}:{}}}};function bl(){return typeof window<"u"}function bo(e){return By(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=(By(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function By(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 e3=new Set(["inline","contents"]);function Ks(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!e3.has(s)}const t3=new Set(["table","td","th"]);function n3(e){return t3.has(bo(e))}const r3=[":popover-open",":modal"];function xl(e){return r3.some(t=>{try{return e.matches(t)}catch{return!1}})}const i3=["transform","translate","scale","rotate","perspective"],o3=["transform","translate","scale","rotate","perspective","filter"],s3=["paint","layout","strict","content"];function yh(e){const t=Th(),n=On(e)?Rn(e):e;return i3.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)||o3.some(i=>(n.willChange||"").includes(i))||s3.some(i=>(n.contain||"").includes(i))}function a3(e){let t=$r(e);for(;qn(t)&&!uo(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 u3=new Set(["html","body","#document"]);function uo(e){return u3.has(bo(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(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Og(e)&&e.host||Qn(e);return Og(t)?t.host:t}function Uy(e){const t=$r(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&Ks(t)?t:Uy(t)}function js(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Uy(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||[],Ks(s)?s:[],c&&n?js(c):[])}return t.concat(s,js(s,[],n))}function kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hy(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=qu(n)!==a||qu(i)!==l;return c&&(n=a,i=l),{width:n,height:i,$:c}}function bh(e){return On(e)?e:e.contextElement}function ro(e){const t=bh(e);if(!qn(t))return $n(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:a}=Hy(t);let l=(a?qu(n.width):n.width)/i,c=(a?qu(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const l3=$n(0);function jy(e){const t=un(e);return!Th()||!t.visualViewport?l3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c3(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=ro(i)):l=ro(e));const c=c3(a,n,i)?jy(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,_=kf(w);for(;_&&i&&T!==w;){const k=ro(_),S=_.getBoundingClientRect(),I=Rn(_),O=S.left+(_.clientLeft+parseFloat(I.paddingLeft))*k.x,F=S.top+(_.clientTop+parseFloat(I.paddingTop))*k.y;f*=k.x,p*=k.y,g*=k.x,E*=k.y,f+=O,p+=F,w=un(_),_=kf(w)}}return Qu({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 zy(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 d3(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)&&((bo(i)!=="body"||Ks(l))&&(f=vl(i)),qn(i))){const T=Ei(i);p=ro(i),g.x=T.x+i.clientLeft,g.y=T.y+i.clientTop}const b=l&&!E&&!a?zy(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 f3(e){return Array.from(e.getClientRects())}function h3(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 p3(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 m3=new Set(["absolute","fixed"]);function g3(e,t){const n=Ei(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,a=qn(e)?ro(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=p3(e,n);else if(t==="document")i=h3(Qn(e));else if(On(t))i=g3(t,n);else{const s=jy(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Qu(i)}function Wy(e,t){const n=$r(e);return n===t||!On(n)||uo(n)?!1:Rn(n).position==="fixed"||Wy(n,t)}function E3(e,t){const n=t.get(e);if(n)return n;let i=js(e,[],!1).filter(c=>On(c)&&bo(c)!=="body"),s=null;const a=Rn(e).position==="fixed";let l=a?$r(e):e;for(;On(l)&&!uo(l);){const c=Rn(l),f=yh(l);!f&&c.position==="fixed"&&(s=null),(a?!f&&!s:!f&&c.position==="static"&&!!s&&m3.has(s.position)||Ks(l)&&!f&&Wy(e,l))?i=i.filter(g=>g!==l):s=c,l=$r(l)}return t.set(e,i),i}function y3(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const l=[...n==="clippingAncestors"?xl(t)?[]:E3(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 T3(e){const{width:t,height:n}=Hy(e);return{width:t,height:n}}function b3(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((bo(t)!=="body"||Ks(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?zy(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 Vy(e,t){const n=un(e);if(xl(e))return n;if(!qn(e)){let s=$r(e);for(;s&&!uo(s);){if(On(s)&&!zd(s))return s;s=$r(s)}return n}let i=Pg(e,t);for(;i&&n3(i)&&zd(i);)i=Pg(i,t);return i&&uo(i)&&zd(i)&&!yh(i)?n:i||a3(e)||n}const x3=async function(e){const t=this.getOffsetParent||Vy,n=this.getDimensions,i=await n(e.floating);return{reference:b3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function v3(e){return Rn(e).direction==="rtl"}const _3={convertOffsetParentRelativeRectToViewportRelativeRect:d3,getDocumentElement:Qn,getClippingRect:y3,getOffsetParent:Vy,getElementRects:x3,getClientRects:f3,getDimensions:T3,getScale:ro,isElement:On,isRTL:v3};function Yy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C3(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=Au(E),_=Au(s.clientWidth-(g+b)),k=Au(s.clientHeight-(E+T)),S=Au(g),O={rootMargin:-w+"px "+-_+"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&&!Yy(p,e.getBoundingClientRect())&&l(),F=!1}try{n=new IntersectionObserver(z,{...O,root:s.ownerDocument})}catch{n=new IntersectionObserver(z,O)}n.observe(e)}return l(!0),a}function S3(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?js(p):[],...js(t)]:[];g.forEach(S=>{s&&S.addEventListener("scroll",n,{passive:!0}),a&&S.addEventListener("resize",n)});const E=p&&c?C3(p,n):null;let b=-1,T=null;l&&(T=new ResizeObserver(S=>{let[I]=S;I&&I.target===p&&T&&(T.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var O;(O=T)==null||O.observe(t)})),n()}),p&&!f&&T.observe(p),T.observe(t));let w,_=f?Ei(e):null;f&&k();function k(){const S=Ei(e);_&&!Yy(_,S)&&n(),_=S,w=requestAnimationFrame(k)}return n(),()=>{var S;g.forEach(I=>{s&&I.removeEventListener("scroll",n),a&&I.removeEventListener("resize",n)}),E?.(),(S=T)==null||S.disconnect(),T=null,f&&cancelAnimationFrame(w)}}const w3=KA,A3=XA,k3=qA,N3=JA,I3=GA,Dg=$A,O3=ZA,R3=(e,t,n)=>{const i=new Map,s={platform:_3,...n},a={...s.platform,_c:i};return YA(e,t,{...s,platform:a})};var L3=typeof document<"u",P3=function(){},Du=L3?C.useLayoutEffect:P3;function Ku(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(!Ku(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)&&!Ku(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function $y(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mg(e,t){const n=$y(e);return Math.round(t*n)/n}function Wd(e){const t=C.useRef(e);return Du(()=>{t.current=e}),t}function D3(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]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,T]=C.useState(i);Ku(b,i)||T(i);const[w,_]=C.useState(null),[k,S]=C.useState(null),I=C.useCallback(j=>{j!==B.current&&(B.current=j,_(j))},[]),O=C.useCallback(j=>{j!==W.current&&(W.current=j,S(j))},[]),F=a||w,z=l||k,B=C.useRef(null),W=C.useRef(null),V=C.useRef(g),ee=f!=null,me=Wd(f),oe=Wd(s),K=Wd(p),ge=C.useCallback(()=>{if(!B.current||!W.current)return;const j={placement:t,strategy:n,middleware:b};oe.current&&(j.platform=oe.current),R3(B.current,W.current,j).then(he=>{const N={...he,isPositioned:K.current!==!1};te.current&&!Ku(V.current,N)&&(V.current=N,mo.flushSync(()=>{E(N)}))})},[b,t,n,oe,K]);Du(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,E(j=>({...j,isPositioned:!1})))},[p]);const te=C.useRef(!1);Du(()=>(te.current=!0,()=>{te.current=!1}),[]),Du(()=>{if(F&&(B.current=F),z&&(W.current=z),F&&z){if(me.current)return me.current(F,z,ge);ge()}},[F,z,ge,me,ee]);const J=C.useMemo(()=>({reference:B,floating:W,setReference:I,setFloating:O}),[I,O]),ce=C.useMemo(()=>({reference:F,floating:z}),[F,z]),fe=C.useMemo(()=>{const j={position:n,left:0,top:0};if(!ce.floating)return j;const he=Mg(ce.floating,g.x),N=Mg(ce.floating,g.y);return c?{...j,transform:"translate("+he+"px, "+N+"px)",...$y(ce.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:N}},[n,c,ce.floating,g.x,g.y]);return C.useMemo(()=>({...g,update:ge,refs:J,elements:ce,floatingStyles:fe}),[g,ge,J,ce,fe])}const M3=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):{}}}},F3=(e,t)=>({...w3(e),options:[e,t]}),B3=(e,t)=>({...A3(e),options:[e,t]}),U3=(e,t)=>({...O3(e),options:[e,t]}),H3=(e,t)=>({...k3(e),options:[e,t]}),j3=(e,t)=>({...N3(e),options:[e,t]}),z3=(e,t)=>({...I3(e),options:[e,t]}),W3=(e,t)=>({...M3(e),options:[e,t]});var V3="Arrow",qy=C.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"})})});qy.displayName=V3;var Y3=qy;function Gy(e){const[t,n]=C.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",[Qy,Ky]=El(xh),[$3,Xy]=Qy(xh),Zy=e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null);return x.jsx($3,{scope:t,anchor:i,onAnchorChange:s,children:n})};Zy.displayName=xh;var Jy="PopperAnchor",eT=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,a=Xy(Jy,n),l=C.useRef(null),c=cn(t,l),f=C.useRef(null);return C.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})});eT.displayName=Jy;var vh="PopperContent",[q3,G3]=Qy(vh),tT=C.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,..._}=e,k=Xy(vh,n),[S,I]=C.useState(null),O=cn(t,Se=>I(Se)),[F,z]=C.useState(null),B=Gy(F),W=B?.width??0,V=B?.height??0,ee=i+(a!=="center"?"-"+a:""),me=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},oe=Array.isArray(p)?p:[p],K=oe.length>0,ge={padding:me,boundary:oe.filter(K3),altBoundary:K},{refs:te,floatingStyles:J,placement:ce,isPositioned:fe,middlewareData:j}=D3({strategy:"fixed",placement:ee,whileElementsMounted:(...Se)=>S3(...Se,{animationFrame:T==="always"}),elements:{reference:k.anchor},middleware:[F3({mainAxis:s+V,alignmentAxis:l}),f&&B3({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?U3():void 0,...ge}),f&&H3({...ge}),j3({...ge,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&&W3({element:F,padding:c}),X3({arrowWidth:W,arrowHeight:V}),b&&z3({strategy:"referenceHidden",...ge})]}),[he,N]=iT(ce),H=ao(w);Vr(()=>{fe&&H?.()},[fe,H]);const Z=j.arrow?.x,L=j.arrow?.y,Te=j.arrow?.centerOffset!==0,[Ie,we]=C.useState();return Vr(()=>{S&&we(window.getComputedStyle(S).zIndex)},[S]),x.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:fe?J.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(q3,{scope:n,placedSide:he,onArrowChange:z,arrowX:Z,arrowY:L,shouldHideArrow:Te,children:x.jsx(At.div,{"data-side":he,"data-align":N,..._,ref:O,style:{..._.style,animation:fe?void 0:"none"}})})})});tT.displayName=vh;var nT="PopperArrow",Q3={top:"bottom",right:"left",bottom:"top",left:"right"},rT=C.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,a=G3(nT,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(Y3,{...s,ref:n,style:{...s.style,display:"block"}})})});rT.displayName=nT;function K3(e){return e!==null}var X3=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]=iT(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="",_="";return p==="bottom"?(w=l?E:`${b}px`,_=`${-f}px`):p==="top"?(w=l?E:`${b}px`,_=`${i.floating.height+f}px`):p==="right"?(w=`${-f}px`,_=l?E:`${T}px`):p==="left"&&(w=`${i.floating.width+f}px`,_=l?E:`${T}px`),{data:{x:w,y:_}}}});function iT(e){const[t,n="center"]=e.split("-");return[t,n]}var Z3=Zy,oT=eT,J3=tT,ek=rT;function tk(e){const t=nk(e),n=C.forwardRef((i,s)=>{const{children:a,...l}=i,c=C.Children.toArray(a),f=c.find(ik);if(f){const p=f.props.children,g=c.map(E=>E===f?C.Children.count(p)>1?C.Children.only(null):C.isValidElement(p)?p.props.children:null:E);return x.jsx(t,{...l,ref:s,children:C.isValidElement(p)?C.cloneElement(p,void 0,g):null})}return x.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}function nk(e){const t=C.forwardRef((n,i)=>{const{children:s,...a}=n;if(C.isValidElement(s)){const l=sk(s),c=ok(a,s.props);return s.type!==C.Fragment&&(c.ref=i?gl(i,l):l),C.cloneElement(s,c)}return C.Children.count(s)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rk=Symbol("radix.slottable");function ik(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rk}function ok(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 sk(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",[sT]=El(Cl,[Ky]),Xs=Ky(),[ak,yi]=sT(Cl),_h=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=Xs(t),f=C.useRef(null),[p,g]=C.useState(!1),[E,b]=Jf({prop:i,defaultProp:s??!1,onChange:a,caller:Cl});return x.jsx(Z3,{...c,children:x.jsx(ak,{scope:t,contentId:Ru(),triggerRef:f,open:E,onOpenChange:b,onOpenToggle:C.useCallback(()=>b(T=>!T),[b]),hasCustomAnchor:p,onCustomAnchorAdd:C.useCallback(()=>g(!0),[]),onCustomAnchorRemove:C.useCallback(()=>g(!1),[]),modal:l,children:n})})};_h.displayName=Cl;var aT="PopoverAnchor",uk=C.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=yi(aT,n),a=Xs(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=s;return C.useEffect(()=>(l(),()=>c()),[l,c]),x.jsx(oT,{...a,...i,ref:t})});uk.displayName=aT;var uT="PopoverTrigger",Ch=C.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=yi(uT,n),a=Xs(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":dT(s.open),...i,ref:l,onClick:Ht(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?c:x.jsx(oT,{asChild:!0,...a,children:c})});Ch.displayName=uT;var lk="PopoverPortal",[mD,ck]=sT(lk,{forceMount:void 0}),lo="PopoverContent",Sh=C.forwardRef((e,t)=>{const n=ck(lo,e.__scopePopover),{forceMount:i=n.forceMount,...s}=e,a=yi(lo,e.__scopePopover);return x.jsx(go,{present:i||a.open,children:a.modal?x.jsx(fk,{...s,ref:t}):x.jsx(hk,{...s,ref:t})})});Sh.displayName=lo;var dk=tk("PopoverContent.RemoveScroll"),fk=C.forwardRef((e,t)=>{const n=yi(lo,e.__scopePopover),i=C.useRef(null),s=cn(t,i),a=C.useRef(!1);return C.useEffect(()=>{const l=i.current;if(l)return XE(l)},[]),x.jsx(nh,{as:dk,allowPinchZoom:!0,children:x.jsx(lT,{...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})})})}),hk=C.forwardRef((e,t)=>{const n=yi(lo,e.__scopePopover),i=C.useRef(!1),s=C.useRef(!1);return x.jsx(lT,{...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()}})}),lT=C.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=yi(lo,n),T=Xs(n);return zE(),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(J3,{"data-state":dT(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)"}})})})}),cT="PopoverClose",pk=C.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=yi(cT,n);return x.jsx(At.button,{type:"button",...i,ref:t,onClick:Ht(e.onClick,()=>s.onOpenChange(!1))})});pk.displayName=cT;var mk="PopoverArrow",gk=C.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,s=Xs(n);return x.jsx(ek,{...s,...i,ref:t})});gk.displayName=mk;function dT(e){return e?"open":"closed"}var fT=_h,hT=Ch,pT=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 mT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ek=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tk={};function Bg(e,t){return(Tk.jsx?yk:Ek).test(e)}const bk=/[ \t\n\f\r]/g;function xk(e){return typeof e=="object"?e.type==="text"?Ug(e.value):!1:Ug(e)}function Ug(e){return e.replace(bk,"")===""}let Zs=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};Zs.prototype.normal={};Zs.prototype.property={};Zs.prototype.space=void 0;function gT(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Zs(n,i,t)}function zs(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 vk=0;const De=Ti(),dt=Ti(),Nf=Ti(),ue=Ti(),Ke=Ti(),io=Ti(),rn=Ti();function Ti(){return 2**++vk}const If=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:dt,commaOrSpaceSeparated:rn,commaSeparated:io,number:ue,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 xo(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[zs(i)]=i,n[zs(a.attribute)]=i}return new Zs(t,n,e.space)}const ET=xo({properties:{ariaActiveDescendant:null,ariaAtomic:dt,ariaAutoComplete:null,ariaBusy:dt,ariaChecked:dt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,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:ue,ariaLive:null,ariaModal:dt,ariaMultiLine:dt,ariaMultiSelectable:dt,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:dt,ariaReadOnly:dt,ariaRelevant:null,ariaRequired:dt,ariaRoleDescription:Ke,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:dt,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yT(e,t){return t in e?e[t]:t}function TT(e,t){return yT(e,t.toLowerCase())}const _k=xo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:io,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:ue,colSpan:null,content:null,contentEditable:dt,controls:De,controlsList:Ke,coords:ue|io,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:ue,hidden:Nf,high:ue,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:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,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:ue,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:ue,rowSpan:ue,sandbox:Ke,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:dt,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,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:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:dt,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:TT}),Ck=xo({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:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:io,g2:io,glyphName:io,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,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:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yT}),bT=xo({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()}}),xT=xo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:TT}),vT=xo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sk={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"},wk=/[A-Z]/g,jg=/-[a-z]/g,Ak=/^data[-\w.:]+$/i;function Ah(e,t){const n=zs(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"&&Ak.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(jg,Nk);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!jg.test(a)){let l=a.replace(wk,kk);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}s=wh}return new s(i,t)}function kk(e){return"-"+e.toLowerCase()}function Nk(e){return e.charAt(1).toUpperCase()}const Sl=gT([ET,_k,bT,xT,vT],"html"),vo=gT([ET,Ck,bT,xT,vT],"svg");function zg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _T(e){return e.join(" ").trim()}var Zi={},Yd,Wg;function Ik(){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 I=1,O=1;function F(te){var J=te.match(t);J&&(I+=J.length);var ce=te.lastIndexOf(f);O=~ce?te.length-ce:O+te.length}function z(){var te={line:I,column:O};return function(J){return J.position=new B(te),ee(),J}}function B(te){this.start=te,this.end={line:I,column:O},this.source=S.source}B.prototype.content=k;function W(te){var J=new Error(S.source+":"+I+":"+O+": "+te);if(J.reason=te,J.filename=S.source,J.line=I,J.column=O,J.source=k,!S.silent)throw J}function V(te){var J=te.exec(k);if(J){var ce=J[0];return F(ce),k=k.slice(ce.length),J}}function ee(){V(n)}function me(te){var J;for(te=te||[];J=oe();)J!==!1&&te.push(J);return te}function oe(){var te=z();if(!(p!=k.charAt(0)||g!=k.charAt(1))){for(var J=2;E!=k.charAt(J)&&(g!=k.charAt(J)||p!=k.charAt(J+1));)++J;if(J+=2,E===k.charAt(J-1))return W("End of comment missing");var ce=k.slice(2,J-2);return O+=2,F(ce),k=k.slice(J),O+=2,te({type:b,comment:ce})}}function K(){var te=z(),J=V(i);if(J){if(oe(),!V(s))return W("property missing ':'");var ce=V(a),fe=te({type:T,property:_(J[0].replace(e,E)),value:ce?_(ce[0].replace(e,E)):E});return V(l),fe}}function ge(){var te=[];me(te);for(var J;J=K();)J!==!1&&(te.push(J),me(te));return te}return ee(),ge()}function _(k){return k?k.replace(c,E):E}return Yd=w,Yd}var Vg;function Ok(){if(Vg)return Zi;Vg=1;var e=Zi&&Zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=n;const t=e(Ik());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 Zi}var gs={},Yg;function Rk(){if(Yg)return gs;Yg=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.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 gs.camelCase=f,gs}var Es,$g;function Lk(){if($g)return Es;$g=1;var e=Es&&Es.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Ok()),n=Rk();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,Es=i,Es}var Pk=Lk();const Dk=il(Pk),wl=CT("end"),Kn=CT("start");function CT(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 Mk(e){const t=Kn(e),n=wl(e);if(t&&n)return{start:t,end:n}}function ks(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=ks(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,Fk=new Map,Bk=/[A-Z]/g,Uk=new Set(["table","tbody","thead","tfoot","tr"]),Hk=new Set(["td","th"]),ST="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jk(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=Gk(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"?vo:Sl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=wT(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function wT(e,t,n){if(t.type==="element")return zk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Wk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Yk(e,t,n);if(t.type==="mdxjsEsm")return Vk(e,t);if(t.type==="root")return $k(e,t,n);if(t.type==="text")return qk(e,t)}function zk(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=vo,e.schema=s),e.ancestors.push(t);const a=kT(e,t.tagName,!1),l=Kk(e,t);let c=Ih(e,t);return Uk.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!xk(f):!0})),AT(e,l,a,t),Nh(l,c),e.ancestors.pop(),e.schema=i,e.create(t,a,l,n)}function Wk(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)}Ws(e,t.position)}function Vk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ws(e,t.position)}function Yk(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=vo,e.schema=s),e.ancestors.push(t);const a=t.name===null?e.Fragment:kT(e,t.name,!0),l=Xk(e,t),c=Ih(e,t);return AT(e,l,a,t),Nh(l,c),e.ancestors.pop(),e.schema=i,e.create(t,a,l,n)}function $k(e,t,n){const i={};return Nh(i,Ih(e,t)),e.create(t,e.Fragment,i,n)}function qk(e,t){return t.value}function AT(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 Gk(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 Kk(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&kh.call(t.properties,s)){const a=Zk(e,s,t.properties[s]);if(a){const[l,c]=a;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&Hk.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 Xk(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 Ws(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 Ws(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:Fk;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=wT(e,a,l);c!==void 0&&n.push(c)}return n}function Zk(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?mT(n):_T(n)),i.property==="style"){let s=typeof n=="object"?n:Jk(e,String(n));return e.stylePropertyNameCase==="css"&&(s=eN(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?Sk[i.property]||i.property:i.attribute,n]}}function Jk(e,t){try{return Dk(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=ST+"#cannot-parse-style-attribute",s}}function kT(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);Ws(e)}function Ws(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=ST+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eN(e){const t={};let n;for(n in e)kh.call(e,n)&&(t[tN(n)]=e[n]);return t}function tN(e){let t=e.replace(Bk,nN);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nN(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"]},rN={};function iN(e,t){const n=rN,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return NT(e,i,s)}function NT(e,t,n){if(oN(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]=NT(e[s],t,n);return i.join("")}function oN(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 sN(e){const t={};let n=-1;for(;++n<e.length;)aN(t,e[n]);return t}function aN(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];uN(s[l],Array.isArray(c)?c:c?[c]:[])}}}function uN(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 IT(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 oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vn=qr(/[A-Za-z]/),an=qr(/[\dA-Za-z]/),lN=qr(/[#-'*+\--9=?A-Z^-~]/);function Rf(e){return e!==null&&(e<32||e===127)}const Lf=qr(/\d/),cN=qr(/[\dA-Fa-f]/),dN=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 fN=qr(new RegExp("\\p{P}|\\p{S}","u")),hN=qr(/\s/);function qr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _o(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 pN={tokenize:mN};function mN(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 gN={tokenize:EN},Zg={tokenize:yN};function EN(e){const t=this,n=[];let i=0,s,a,l;return c;function c(O){if(i<n.length){const F=n[i];return t.containerState=F[1],e.attempt(F[0].continuation,f,p)(O)}return p(O)}function f(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&I();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(O)}return c(O)}function p(O){if(i===n.length){if(!s)return b(O);if(s.currentConstruct&&s.currentConstruct.concrete)return w(O);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zg,g,E)(O)}function g(O){return s&&I(),S(i),b(O)}function E(O){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,w(O)}function b(O){return t.containerState={},e.attempt(Zg,T,w)(O)}function T(O){return i++,n.push([t.currentConstruct,t.containerState]),b(O)}function w(O){if(O===null){s&&I(),S(0),e.consume(O);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),_(O)}function _(O){if(O===null){k(e.exit("chunkFlow"),!0),S(0),e.consume(O);return}return Re(O)?(e.consume(O),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(O),_)}function k(O,F){const z=t.sliceStream(O);if(F&&z.push(null),O.previous=a,a&&(a.next=O),a=O,s.defineSkip(O.start),s.write(z),t.parser.lazy[O.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,ee,me;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(ee){me=t.events[V][1].end;break}ee=!0}for(S(i),B=W;B<t.events.length;)t.events[B][1].end={...me},B++;Gn(t.events,V+1,0,t.events.slice(W)),t.events.length=B}}function S(O){let F=n.length;for(;F-- >O;){const z=n[F];t.containerState=z[1],z[0].exit.call(t,e)}n.length=O}function I(){s.write([null]),a=void 0,s=void 0,t.containerState._closeFlow=void 0}}function yN(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)||hN(e))return 1;if(fN(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:TN,tokenize:bN};function TN(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 bN(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 xN={name:"autolink",tokenize:vN};function vN(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):lN(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:_N};function _N(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 OT={continuation:{tokenize:SN},exit:wN,name:"blockQuote",tokenize:CN};function CN(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 SN(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(OT,t,n)(l)}}function wN(e){e.exit("blockQuote")}const RT={name:"characterEscape",tokenize:AN};function AN(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 dN(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const LT={name:"characterReference",tokenize:kN};function kN(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=cN,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:IN},n1={concrete:!0,name:"codeFenced",tokenize:NN};function NN(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,_,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 _(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,I,"linePrefix",a+1)(B):I(B)}function I(B){return B===null||Re(B)?e.check(t1,_,F)(B):(e.enter("codeFlowValue"),O(B))}function O(B){return B===null||Re(B)?(e.exit("codeFlowValue"),I(B)):(e.consume(B),O)}function F(B){return e.exit("codeFenced"),t(B)}function z(B,W,V){let ee=0;return me;function me(J){return B.enter("lineEnding"),B.consume(J),B.exit("lineEnding"),oe}function oe(J){return B.enter("codeFencedFence"),Ye(J)?Ze(B,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):K(J)}function K(J){return J===c?(B.enter("codeFencedFenceSequence"),ge(J)):V(J)}function ge(J){return J===c?(ee++,B.consume(J),ge):ee>=l?(B.exit("codeFencedFenceSequence"),Ye(J)?Ze(B,te,"whitespace")(J):te(J)):V(J)}function te(J){return J===null||Re(J)?(B.exit("codeFencedFence"),W(J)):V(J)}}}function IN(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:RN},ON={partial:!0,tokenize:LN};function RN(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(ON,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 LN(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 PN={name:"codeText",previous:MN,resolve:DN,tokenize:FN};function DN(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 MN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function FN(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 BN{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&&ys(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),ys(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ys(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);ys(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ys(this.left,n.reverse())}}}function ys(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 PT(e){const t={};let n=-1,i,s,a,l,c,f,p;const g=new BN(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,UN(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 UN(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,_=0;const k=[_];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&&(_=b+1,k.push(_),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]),I=a.pop();f.push([I,I+S.length-1]),e.splice(I,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 HN={resolve:zN,tokenize:WN},jN={partial:!0,tokenize:VN};function zN(e){return PT(e),e}function WN(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(jN,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 VN(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 DT(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"}),_(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 _(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++,_):S===41?(e.consume(S),g--,_):S===null||S===32||S===40||Rf(S)?n(S):(e.consume(S),S===92?k:_)}function k(S){return S===40||S===41||S===92?(e.consume(S),_):_(S)}}function MT(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 FT(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 Ns(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 YN={name:"definition",tokenize:qN},$N={partial:!0,tokenize:GN};function qN(e,t,n){const i=this;let s;return a;function a(T){return e.enter("definition"),l(T)}function l(T){return MT.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function c(T){return s=oo(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)?Ns(e,p)(T):p(T)}function p(T){return DT(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function g(T){return e.attempt($N,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 GN(e,t,n){return i;function i(c){return Kt(c)?Ns(e,s)(c):n(c)}function s(c){return FT(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:KN};function KN(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 XN={name:"headingAtx",resolve:ZN,tokenize:JN};function ZN(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 JN(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 eI=["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"],tI={concrete:!0,name:"htmlFlow",resolveTo:iI,tokenize:oI},nI={partial:!0,tokenize:aI},rI={partial:!0,tokenize:sI};function iI(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 oI(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,_):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:K:w):n(L)}function _(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):K(L)):eI.includes(l.toLowerCase())?(s=6,Te?(e.consume(L),S):i.interrupt?t(L):K(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(L):a?I(L):O(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:K):n(L)}function I(L){return Ye(L)?(e.consume(L),I):me(L)}function O(L){return L===47?(e.consume(L),me):L===58||L===95||Vn(L)?(e.consume(L),F):Ye(L)?(e.consume(L),O):me(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):O(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,ee):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 ee(L){return L===47||L===62||Ye(L)?O(L):n(L)}function me(L){return L===62?(e.consume(L),oe):n(L)}function oe(L){return L===null||Re(L)?K(L):Ye(L)?(e.consume(L),oe):n(L)}function K(L){return L===45&&s===2?(e.consume(L),ce):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),he):Re(L)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(nI,Z,ge)(L)):L===null||Re(L)?(e.exit("htmlFlowData"),ge(L)):(e.consume(L),K)}function ge(L){return e.check(rI,te,Z)(L)}function te(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),J}function J(L){return L===null||Re(L)?ge(L):(e.enter("htmlFlowData"),K(L))}function ce(L){return L===45?(e.consume(L),N):K(L)}function fe(L){return L===47?(e.consume(L),l="",j):K(L)}function j(L){if(L===62){const Te=l.toLowerCase();return r1.includes(Te)?(e.consume(L),H):K(L)}return Vn(L)&&l.length<8?(e.consume(L),l+=String.fromCharCode(L),j):K(L)}function he(L){return L===93?(e.consume(L),N):K(L)}function N(L){return L===62?(e.consume(L),H):L===45&&s===2?(e.consume(L),N):K(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 sI(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 aI(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Al,t,n)}}const uI={name:"htmlText",tokenize:lI};function lI(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),O):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),I):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?ce(N):N===45?b(N):E(N)}function w(N){const H="CDATA[";return N===H.charCodeAt(a++)?(e.consume(N),a===H.length?_:w):n(N)}function _(N){return N===null?n(N):N===93?(e.consume(N),k):Re(N)?(l=_,fe(N)):(e.consume(N),_)}function k(N){return N===93?(e.consume(N),S):_(N)}function S(N){return N===62?ce(N):N===93?(e.consume(N),S):_(N)}function I(N){return N===null||N===62?ce(N):Re(N)?(l=I,fe(N)):(e.consume(N),I)}function O(N){return N===null?n(N):N===63?(e.consume(N),F):Re(N)?(l=O,fe(N)):(e.consume(N),O)}function F(N){return N===62?ce(N):O(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):ce(N)}function V(N){return N===45||an(N)?(e.consume(N),V):N===47||N===62||Kt(N)?ee(N):n(N)}function ee(N){return N===47?(e.consume(N),ce):N===58||N===95||Vn(N)?(e.consume(N),me):Re(N)?(l=ee,fe(N)):Ye(N)?(e.consume(N),ee):ce(N)}function me(N){return N===45||N===46||N===58||N===95||an(N)?(e.consume(N),me):oe(N)}function oe(N){return N===61?(e.consume(N),K):Re(N)?(l=oe,fe(N)):Ye(N)?(e.consume(N),oe):ee(N)}function K(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),s=N,ge):Re(N)?(l=K,fe(N)):Ye(N)?(e.consume(N),K):(e.consume(N),te)}function ge(N){return N===s?(e.consume(N),s=void 0,J):N===null?n(N):Re(N)?(l=ge,fe(N)):(e.consume(N),ge)}function te(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Kt(N)?ee(N):(e.consume(N),te)}function J(N){return N===47||N===62||Kt(N)?ee(N):n(N)}function ce(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,he,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):he(N)}function he(N){return e.enter("htmlTextData"),l(N)}}const Lh={name:"labelEnd",resolveAll:hI,resolveTo:pI,tokenize:mI},cI={tokenize:gI},dI={tokenize:EI},fI={tokenize:yI};function hI(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 pI(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 mI(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(oo(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(cI,g,l?g:E)(b):b===91?e.attempt(dI,g,l?p:E)(b):l?g(b):E(b)}function p(b){return e.attempt(fI,g,E)(b)}function g(b){return t(b)}function E(b){return a._balanced=!0,n(b)}}function gI(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)?Ns(e,a)(E):a(E)}function a(E){return E===41?g(E):DT(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function l(E){return Kt(E)?Ns(e,f)(E):g(E)}function c(E){return n(E)}function f(E){return E===34||E===39||E===40?FT(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):g(E)}function p(E){return Kt(E)?Ns(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 EI(e,t,n){const i=this;return s;function s(c){return MT.call(i,e,a,l,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(oo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function yI(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 TI={name:"labelStartImage",resolveAll:Lh.resolveAll,tokenize:bI};function bI(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 xI={name:"labelStartLink",resolveAll:Lh.resolveAll,tokenize:vI};function vI(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:_I};function _I(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ze(e,t,"linePrefix")}}const Mu={name:"thematicBreak",tokenize:CI};function CI(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:kI},exit:II,name:"list",tokenize:AI},SI={partial:!0,tokenize:OI},wI={partial:!0,tokenize:NI};function AI(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(Mu,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(SI,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 kI(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(wI,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 NI(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 II(e){e.exit(this.containerState.type)}function OI(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:RI,tokenize:LI};function RI(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 LI(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 PI={tokenize:DI};function DI(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(HN,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 MI={resolveAll:UT()},FI=BT("string"),BI=BT("text");function BT(e){return{resolveAll:UT(e==="text"?UI: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 UT(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 UI(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 HI={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:OT},jI={91:YN},zI={[-2]:qd,[-1]:qd,32:qd},WI={35:XN,42:Mu,45:[i1,Mu],60:tI,61:i1,95:Mu,96:n1,126:n1},VI={38:LT,92:RT},YI={[-5]:Gd,[-4]:Gd,[-3]:Gd,33:TI,38:LT,42:Pf,60:[xN,uI],91:xI,92:[QN,RT],93:Lh,95:Pf,96:PN},$I={null:[Pf,MI]},qI={null:[42,95]},GI={null:[]},QI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qI,contentInitial:jI,disable:GI,document:HI,flow:WI,flowInitial:zI,insideSpan:$I,string:VI,text:YI},Symbol.toStringTag,{value:"Module"}));function KI(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:I,enter:O,exit:F,interrupt:W(B,{interrupt:!0})},p={code:null,containerState:{},defineSkip:_,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(oe){return l=yn(l,oe),k(),l[l.length-1]!==null?[]:(V(t,0),p.events=Rh(a,p.events,p),p.events)}function b(oe,K){return ZI(T(oe),K)}function T(oe){return XI(l,oe)}function w(){const{_bufferIndex:oe,_index:K,line:ge,column:te,offset:J}=i;return{_bufferIndex:oe,_index:K,line:ge,column:te,offset:J}}function _(oe){s[oe.line]=oe.column,me()}function k(){let oe;for(;i._index<l.length;){const K=l[i._index];if(typeof K=="string")for(oe=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===oe&&i._bufferIndex<K.length;)S(K.charCodeAt(i._bufferIndex));else S(K)}}function S(oe){g=g(oe)}function I(oe){Re(oe)?(i.line++,i.column=1,i.offset+=oe===-3?2:1,me()):oe!==-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=oe}function O(oe,K){const ge=K||{};return ge.type=oe,ge.start=w(),p.events.push(["enter",ge,p]),c.push(ge),ge}function F(oe){const K=c.pop();return K.end=w(),p.events.push(["exit",K,p]),K}function z(oe,K){V(oe,K.from)}function B(oe,K){K.restore()}function W(oe,K){return ge;function ge(te,J,ce){let fe,j,he,N;return Array.isArray(te)?Z(te):"tokenize"in te?Z([te]):H(te);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?ce:L(we[j])}function L(we){return Se;function Se(Le){return N=ee(),he=we,we.partial||(p.currentConstruct=we),we.name&&p.parser.constructs.disable.null.includes(we.name)?Ie():we.tokenize.call(K?Object.assign(Object.create(p),K):p,f,Te,Ie)(Le)}}function Te(we){return oe(he,N),J}function Ie(we){return N.restore(),++j<fe.length?L(fe[j]):ce}}}function V(oe,K){oe.resolveAll&&!a.includes(oe)&&a.push(oe),oe.resolve&&Gn(p.events,K,p.events.length-K,oe.resolve(p.events.slice(K),p)),oe.resolveTo&&(p.events=oe.resolveTo(p.events,p))}function ee(){const oe=w(),K=p.previous,ge=p.currentConstruct,te=p.events.length,J=Array.from(c);return{from:te,restore:ce};function ce(){i=oe,p.previous=K,p.currentConstruct=ge,p.events.length=te,c=J,me()}}function me(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function XI(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 ZI(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 JI(e){const i={constructs:sN([QI,...(e||{}).extensions||[]]),content:s(pN),defined:[],document:s(gN),flow:s(PI),lazy:{},string:s(FI),text:s(BI)};return i;function s(a){return l;function l(c){return KI(i,a,c)}}}function e6(e){for(;!PT(e););return e}const o1=/[\0\t\n\r]/g;function t6(){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 n6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r6(e){return e.replace(n6,i6)}function i6(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),a=s===120||s===88;return IT(n.slice(a?2:1),a?16:10)}return Oh(n)||e}const HT={}.hasOwnProperty;function o6(e,t,n){return typeof t!="string"&&(n=t,t=void 0),s6(n)(e6(JI(n).document().write(t6()(e,t,!0))))}function s6(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(_i),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:a(No),blockQuote:a(Ge),characterEscape:ee,characterReference:ee,codeFenced:a(Pt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Pt,l),codeText:a(xn,l),codeTextData:ee,data:ee,codeFlowValue:ee,definition:a(vn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(ko),hardBreakEscape:a(Io),hardBreakTrailing:a(Io),htmlFlow:a(vi,l),htmlFlowData:ee,htmlText:a(vi,l),htmlTextData:ee,image:a(ia),label:l,link:a(_i),listItem:a(mr),listItemValue:b,listOrdered:a(pr,E),listUnordered:a(pr),paragraph:a(Oo),reference:L,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(No),strong:a(oa),thematicBreak:a(aa)},exit:{atxHeading:f(),atxHeadingSequence:z,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Le,blockQuote:f(),characterEscapeValue:me,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:we,characterReference:Se,codeFenced:f(k),codeFencedFence:_,codeFencedFenceInfo:T,codeFencedFenceMeta:w,codeFlowValue:me,codeIndented:f(S),codeText:f(J),codeTextData:me,data:me,definition:f(),definitionDestinationString:F,definitionLabelString:I,definitionTitleString:O,emphasis:f(),hardBreakEscape:f(K),hardBreakTrailing:f(K),htmlFlow:f(ge),htmlFlowData:me,htmlText:f(te),htmlTextData:me,image:f(fe),label:he,labelText:j,lineEnding:oe,link:f(ce),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()}};jT(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(X){let pe={type:"root",children:[]};const Ne={stack:[pe],tokenStack:[],config:t,enter:c,exit:p,buffer:l,resume:g,data:n},Be=[];let ze=-1;for(;++ze<X.length;)if(X[ze][1].type==="listOrdered"||X[ze][1].type==="listUnordered")if(X[ze][0]==="enter")Be.push(ze);else{const xt=Be.pop();ze=s(X,xt,ze)}for(ze=-1;++ze<X.length;){const xt=t[X[ze][0]];HT.call(xt,X[ze][1].type)&&xt[X[ze][1].type].call(Object.assign({sliceSerialize:X[ze][2].sliceSerialize},Ne),X[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(pe.position={start:Fr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Fr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<t.transforms.length;)pe=t.transforms[ze](pe)||pe;return pe}function s(X,pe,Ne){let Be=pe-1,ze=-1,xt=!1,Xn,dn,gr,Gr;for(;++Be<=Ne;){const vt=X[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=X[Dn];if(Zt[1].type==="lineEnding"||Zt[1].type==="lineEndingBlank"){if(Zt[0]==="exit")continue;dn&&(X[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?X[dn][1].start:vt[1].end),X.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,X.splice(Be,0,["enter",Dn,vt[2]]),Be++,Ne++,gr=void 0,Gr=!0}}}return X[pe][1]._spread=xt,Ne}function a(X,pe){return Ne;function Ne(Be){c.call(this,X(Be),Be),pe&&pe.call(this,Be)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(X,pe,Ne){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([pe,Ne||void 0]),X.position={start:Fr(pe.start),end:void 0}}function f(X){return pe;function pe(Ne){X&&X.call(this,Ne),p.call(this,Ne)}}function p(X,pe){const Ne=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==X.type&&(pe?pe.call(this,X,Be[0]):(Be[1]||s1).call(this,X,Be[0]));else throw new Error("Cannot close `"+X.type+"` ("+ks({start:X.start,end:X.end})+"): it’s not open");Ne.position.end=Fr(X.end)}function g(){return iN(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function b(X){if(this.data.expectingFirstListItemValue){const pe=this.stack[this.stack.length-2];pe.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function T(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.lang=X}function w(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.meta=X}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.value=X.replace(/(\r?\n|\r)$/g,"")}function I(X){const pe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=pe,Ne.identifier=oo(this.sliceSerialize(X)).toLowerCase()}function O(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.title=X}function F(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.url=X}function z(X){const pe=this.stack[this.stack.length-1];if(!pe.depth){const Ne=this.sliceSerialize(X).length;pe.depth=Ne}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function W(X){const pe=this.stack[this.stack.length-1];pe.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(X){const Ne=this.stack[this.stack.length-1].children;let Be=Ne[Ne.length-1];(!Be||Be.type!=="text")&&(Be=sa(),Be.position={start:Fr(X.start),end:void 0},Ne.push(Be)),this.stack.push(Be)}function me(X){const pe=this.stack.pop();pe.value+=this.sliceSerialize(X),pe.position.end=Fr(X.end)}function oe(X){const pe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=pe.children[pe.children.length-1];Ne.position.end=Fr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(pe.type)&&(ee.call(this,X),me.call(this,X))}function K(){this.data.atHardBreak=!0}function ge(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.value=X}function te(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.value=X}function J(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.value=X}function ce(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=pe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function fe(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=pe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function j(X){const pe=this.sliceSerialize(X),Ne=this.stack[this.stack.length-2];Ne.label=r6(pe),Ne.identifier=oo(pe).toLowerCase()}function he(){const X=this.stack[this.stack.length-1],pe=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const Be=X.children;Ne.children=Be}else Ne.alt=pe}function N(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.url=X}function H(){const X=this.resume(),pe=this.stack[this.stack.length-1];pe.title=X}function Z(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function Te(X){const pe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=pe,Ne.identifier=oo(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function Ie(X){this.data.characterReferenceType=X.type}function we(X){const pe=this.sliceSerialize(X),Ne=this.data.characterReferenceType;let Be;Ne?(Be=IT(pe,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=Oh(pe);const ze=this.stack[this.stack.length-1];ze.value+=Be}function Se(X){const pe=this.stack.pop();pe.position.end=Fr(X.end)}function Le(X){me.call(this,X);const pe=this.stack[this.stack.length-1];pe.url=this.sliceSerialize(X)}function Fe(X){me.call(this,X);const pe=this.stack[this.stack.length-1];pe.url="mailto:"+this.sliceSerialize(X)}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 ko(){return{type:"emphasis",children:[]}}function No(){return{type:"heading",depth:0,children:[]}}function Io(){return{type:"break"}}function vi(){return{type:"html",value:""}}function ia(){return{type:"image",title:null,url:"",alt:null}}function _i(){return{type:"link",title:null,url:"",children:[]}}function pr(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function mr(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Oo(){return{type:"paragraph",children:[]}}function oa(){return{type:"strong",children:[]}}function sa(){return{type:"text",value:""}}function aa(){return{type:"thematicBreak"}}}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function jT(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?jT(e,i):a6(e,i)}}function a6(e,t){let n;for(n in t)if(HT.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+"` ("+ks({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ks({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ks({start:t.start,end:t.end})+") is still open")}function u6(e){const t=this;t.parser=n;function n(i){return o6(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function l6(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 c6(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
72
+ `}]}function d6(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 f6(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function h6(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p6(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=_o(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 m6(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 g6(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zT(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 E6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return zT(e,t);const s={src:_o(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 y6(e,t){const n={src:_o(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 T6(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 b6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return zT(e,t);const s={href:_o(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 x6(e,t){const n={href:_o(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 v6(e,t,n){const i=e.all(t),s=n?_6(n):WT(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 _6(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=WT(n[i])}return t}function WT(e){const t=e.spread;return t??e.children.length>1}function C6(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 S6(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function w6(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function A6(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k6(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 N6(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 I6(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 O6(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 R6(e,t){const n={type:"text",value:O6(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function L6(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const P6={blockquote:l6,break:c6,code:d6,delete:f6,emphasis:h6,footnoteReference:p6,heading:m6,html:g6,imageReference:E6,image:y6,inlineCode:T6,linkReference:b6,link:x6,listItem:v6,list:C6,paragraph:S6,root:w6,strong:A6,table:k6,tableCell:I6,tableRow:N6,text:R6,thematicBreak:L6,toml:ku,yaml:ku,definition:ku,footnoteDefinition:ku};function ku(){}const VT=-1,kl=0,Is=1,Xu=2,Ph=3,Dh=4,Mh=5,Fh=6,YT=7,$T=8,c1=typeof self=="object"?self:globalThis,D6=(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 VT:return n(l,s);case Is:{const c=n([],s);for(const f of l)c.push(i(f));return c}case Xu:{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 YT:{const{name:c,message:f}=l;return n(new c1[c](f),s)}case $T: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=>D6(new Map,e)(0),Ji="",{toString:M6}={},{keys:F6}=Object,Ts=e=>{const t=typeof e;if(t!=="object"||!e)return[kl,t];const n=M6.call(e).slice(8,-1);switch(n){case"Array":return[Is,Ji];case"Object":return[Xu,Ji];case"Date":return[Ph,Ji];case"RegExp":return[Dh,Ji];case"Map":return[Mh,Ji];case"Set":return[Fh,Ji];case"DataView":return[Is,n]}return n.includes("Array")?[Is,n]:n.includes("Error")?[YT,n]:[Xu,n]},Nu=([e,t])=>e===kl&&(t==="function"||t==="symbol"),B6=(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]=Ts(l);switch(c){case kl:{let g=l;switch(f){case"bigint":c=$T,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return s([VT],l)}return s([c,g],l)}case Is:{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 Xu:{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 F6(l))(e||!Nu(Ts(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||!(Nu(Ts(b))||Nu(Ts(T))))&&g.push([a(b),a(T)]);return E}case Fh:{const g=[],E=s([c,g],l);for(const b of l)(e||!Nu(Ts(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 B6(!(t||n),!!t,new Map,i)(e),i},co=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 U6(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 H6(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function j6(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||U6,i=e.options.footnoteBackLabel||H6,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=_o(E.toLowerCase());let T=0;const w=[],_=e.footnoteCounts.get(E);for(;_!==void 0&&++T<=_;){w.length>0&&w.push({type:"text",value:" "});let I=typeof n=="string"?n:n(f,T);typeof I=="string"&&(I={type:"text",value:I}),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(I)?I:[I]})}const k=g[g.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const I=k.children[k.children.length-1];I&&I.type==="text"?I.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:{...co(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 qT=(function(e){if(e==null)return Y6;if(typeof e=="function")return Nl(e);if(typeof e=="object")return Array.isArray(e)?z6(e):W6(e);if(typeof e=="string")return V6(e);throw new Error("Expected function, string, or object as test")});function z6(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qT(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 W6(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 V6(e){return Nl(t);function t(n){return n&&n.type===e}}function Nl(e){return t;function t(n,i,s){return!!($6(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function Y6(){return!0}function $6(e){return e!==null&&typeof e=="object"&&"type"in e}const GT=[],q6=!0,h1=!1,G6="skip";function Q6(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const a=qT(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=GT,w,_,k;if((!t||a(f,p,g[g.length-1]||void 0))&&(T=K6(n(f,g)),T[0]===h1))return T;if("children"in f&&f.children){const S=f;if(S.children&&T[0]!==G6)for(_=(i?S.children.length:-1)+l,k=g.concat(S);_>-1&&_<S.children.length;){const I=S.children[_];if(w=c(I,_,k)(),w[0]===h1)return w;_=typeof w[1]=="number"?w[1]:_+l}}return T}}}function K6(e){return Array.isArray(e)?e:typeof e=="number"?[q6,e]:e==null?GT:[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,X6={};function Z6(e,t){const n=t||X6,i=new Map,s=new Map,a=new Map,l={...P6,...n.handlers},c={all:p,applyData:eO,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:l,one:f,options:n,patch:J6,wrap:nO};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:_,...k}=g,S=co(k);return S.children=c.all(g),S}return co(g)}return(c.options.unknownHandler||tO)(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 _=w.children[0];_&&_.type==="text"&&(_.value=p1(_.value))}Array.isArray(w)?E.push(...w):E.push(w)}}}return E}}function J6(e,t){e.position&&(t.position=Mk(e))}function eO(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,co(a)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function tO(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 nO(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=Z6(e,t),i=n.one(e,void 0),s=j6(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 rO(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 iO(){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,_=arguments[0],k=1,S=arguments.length,I=!1;for(typeof _=="boolean"&&(I=_,_=arguments[1]||{},k=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});k<S;++k)if(p=arguments[k],p!=null)for(g in p)E=c(_,g),b=c(p,g),_!==b&&(I&&b&&(a(b)||(T=s(b)))?(T?(T=!1,w=E&&s(E)?E:[]):w=E&&a(E)?E:{},l(_,{name:g,newValue:f(I,w,b)})):typeof b<"u"&&l(_,{name:g,newValue:b}));return _},Qd}var oO=iO();const Kd=il(oO);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 sO(){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?aO(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 aO(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:uO,dirname:lO,extname:cO,join:dO,sep:"/"};function uO(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Js(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 lO(e){if(Js(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 cO(e){Js(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 dO(...e){let t=-1,n;for(;++t<e.length;)Js(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":fO(n)}function fO(e){Js(e);const t=e.codePointAt(0)===47;let n=hO(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function hO(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 Js(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pO={cwd:mO};function mO(){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 gO(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 EO(e)}function EO(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 QT{constructor(t){let n;t?Ff(t)?n={path:t}:typeof t=="string"||yO(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":pO.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=gO(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 yO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const TO=(function(e){const i=this.constructor.prototype,s=i[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),bO={}.hasOwnProperty;class Uh extends TO{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=sO()}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):bO.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=Iu(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=Iu(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);_O(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=Iu(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=Iu(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 _=i[b][1];Mf(_)&&Mf(T)&&(T=Kd(!0,_,T)),i[b]=[p,T,...w]}}}}const xO=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 Iu(e){return vO(e)?e:new QT(e)}function vO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _O(e){return typeof e=="string"||CO(e)}function CO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",x1=[],v1={allowDangerousHtml:!0},wO=/^(https?|ircs?|mailto|xmpp)$/i,AO=[{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 kO(e){const t=NO(e),n=IO(e);return OO(t.runSync(t.parse(n),n),e)}function NO(e){const t=e.rehypePlugins||x1,n=e.remarkPlugins||x1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...v1}:v1;return xO().use(u6).use(n).use(rO,i).use(t)}function IO(e){const t=e.children||"",n=new QT;return typeof t=="string"&&(n.value=t),n}function OO(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,a=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||RO;for(const g of AO)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+SO+g.id,void 0);return Bh(e,p),jk(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],_=$d[T];(_===null||_.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 RO(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||wO.test(e.slice(0,t))?e:""}const _1=/[#.]/g;function LO(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 KT(e,t,n){const i=n?FO(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=LO(a,t);const p=f.tagName.toLowerCase(),g=i?i.get(p):void 0;if(f.tagName=g||p,PO(l))c.unshift(l);else for(const[E,b]of Object.entries(l))DO(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 PO(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 DO(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"?MO(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===""||zs(n)===zs(t)))return!0}return n}function MO(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function FO(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const BO=["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"],UO=KT(Sl,"div"),HO=KT(vo,"g",BO);function jO(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/"},XT={}.hasOwnProperty,zO=Object.prototype;function WO(e,t){const n=t||{};return Hh({file:n.file||void 0,location:!1,schema:n.space==="svg"?vo: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},Fu(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:ZT(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const a=String(e.file),l=jO(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"},Fu(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},Fu(e,i,n),n}default:return n=VO(e,t),n}}function ZT(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=Hh(e,t[n]);i.push(s)}return i}function VO(e,t){const n=e.schema;e.schema=t.namespaceURI===ci.svg?vo:Sl;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],f=(c.prefix?c.prefix+":":"")+c.name;XT.call(zO,f)||(s[f]=c.value)}const l=(e.schema.space==="svg"?HO:UO)(t.tagName,s,ZT(e,t.childNodes));if(Fu(e,t,l),l.tagName==="template"){const c=t,f=c.sourceCodeLocation,p=f&&f.startTag&&to(f.startTag),g=f&&f.endTag&&to(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 Fu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=YO(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function YO(e,t,n){const i=to(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)XT.call(n.attrs,l)&&(a[Ah(e.schema,l).property]=to(n.attrs[l]));n.startTag;const c=to(n.startTag),f=n.endTag?to(n.endTag):void 0,p={opening:c};f&&(p.closing=f),p.properties=a,t.data={position:p}}}return i}function to(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 ea{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}ea.prototype.property={};ea.prototype.normal={};ea.prototype.space=null;function JT(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 ea(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 $O=0;const Pe=bi(),ft=bi(),eb=bi(),le=bi(),Xe=bi(),so=bi(),on=bi();function bi(){return 2**++$O}const Hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:ft,commaOrSpaceSeparated:on,commaSeparated:so,number:le,overloadedBoolean:eb,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 qO={}.hasOwnProperty;function Co(e){const t={},n={};let i;for(i in e.properties)if(qO.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 ea(t,n,e.space)}const tb=Co({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}}),nb=Co({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rb(e,t){return t in e?e[t]:t}function ib(e,t){return rb(e,t.toLowerCase())}const ob=Co({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ib,properties:{xmlns:null,xmlnsXLink:null}}),sb=Co({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,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:le,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Xe,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:ft,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null}}),GO=Co({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ib,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:so,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:le,colSpan:null,content:null,contentEditable:ft,controls:Pe,controlsList:Xe,coords:le|so,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:eb,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Xe,height:le,hidden:Pe,high:le,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:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,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:le,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:le,rowSpan:le,sandbox:Xe,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:ft,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,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:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:le,security:null,unselectable:null}}),QO=Co({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:rb,properties:{about:on,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:so,g2:so,glyphName:so,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:on,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:on,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:on,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,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:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),KO=/^data[-\w.:]+$/i,k1=/-[a-z]/g,XO=/[A-Z]/g;function ZO(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"&&KO.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(k1,eR);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!k1.test(a)){let l=a.replace(XO,JO);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}s=jh}return new s(i,t)}function JO(e){return"-"+e.toLowerCase()}function eR(e){return e.charAt(1).toUpperCase()}const tR=JT([nb,tb,ob,sb,GO],"html"),ab=JT([nb,tb,ob,sb,QO],"svg"),N1={}.hasOwnProperty;function ub(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 nR={},rR={}.hasOwnProperty,lb=ub("type",{handlers:{root:oR,element:cR,text:uR,comment:lR,doctype:aR}});function iR(e,t){const i=(t||nR).space;return lb(e,i==="svg"?ab:tR)}function oR(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=zh(e.children,n,t),So(e,n),n}function sR(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=zh(e.children,n,t),So(e,n),n}function aR(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return So(e,t),t}function uR(e){const t={nodeName:"#text",value:e.value,parentNode:null};return So(e,t),t}function lR(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return So(e,t),t}function cR(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=ab);const s=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rR.call(e.properties,a)){const f=dR(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),So(e,c),e.tagName==="template"&&e.content&&(c.content=sR(e.content,i)),c}function dR(e,t,n){const i=ZO(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?mT(n):_T(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=lb(e[i],n);a.parentNode=t,s.push(a)}return s}function So(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 fR=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],hR=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 cb(e){return e>=55296&&e<=57343}function pR(e){return e>=56320&&e<=57343}function mR(e,t){return(e-55296)*1024+9216+t}function db(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function fb(e){return e>=64976&&e<=65007||hR.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 gR=65536;class ER{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=gR,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(pR(n))return this.pos++,this._addGap(),mR(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,cb(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){db(t)?this._err(Q.controlCharacterInInputStream):fb(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 hb(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 yR=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),TR=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 bR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TR.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 xR=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 vR(e){return e>=bt.UPPER_A&&e<=bt.UPPER_F||e>=bt.LOWER_A&&e<=bt.LOWER_F}function _R(e){return e>=bt.UPPER_A&&e<=bt.UPPER_Z||e>=bt.LOWER_A&&e<=bt.LOWER_Z||jf(e)}function CR(e){return e===bt.EQUALS||_R(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 SR{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)|xR)===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)||vR(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(bR(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=wR(i,s,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return this.result===0||this.decodeMode===ar.Attribute&&(a===0||CR(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 wR(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 AR=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 wo(e){var t;return(t=AR.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const ae=h,kR={[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 NR(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Cs(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function IR(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Ur(e){return IR(e)||Cs(e)}function I1(e){return Ur(e)||NR(e)}function Ou(e){return e+32}function pb(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function O1(e){return pb(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function OR(e){return e===A.NULL?Q.nullCharacterReference:e>1114111?Q.characterReferenceOutsideUnicodeRange:cb(e)?Q.surrogateCharacterReference:fb(e)?Q.noncharacterCharacterReference:db(e)||e===A.CARRIAGE_RETURN?Q.controlCharacterReference:null}class RR{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 ER(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new SR(yR,(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=OR(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(hb(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=wo(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=pb(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(Cs(t)?Ou(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(Cs(t)?Ou(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(Cs(t))this._createDoctypeToken(String.fromCharCode(Ou(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(Cs(t)?Ou(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 mb=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([...mb,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Zu=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),LR=new Set([...Zu,h.OL,h.UL]),PR=new Set([...Zu,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]),DR=new Set([h.TR,h.TEMPLATE,h.HTML]),MR=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),FR=new Set([h.TABLE,h.TEMPLATE,h.HTML]),BR=new Set([h.TD,h.TH]);class UR{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(BR,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(FR,re.HTML)}clearBackToTableBodyContext(){this.clearBackTo(MR,re.HTML)}clearBackToTableRowContext(){this.clearBackTo(DR,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,Zu)}hasInListItemScope(t){return this.hasInDynamicScope(t,LR)}hasInButtonScope(t){return this.hasInDynamicScope(t,PR)}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(Zu.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&&mb.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 HR{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}}},gb="html",jR="about:legacy-compat",zR="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Eb=["+//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//"],WR=[...Eb,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],VR=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yb=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],YR=[...yb,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function M1(e,t){return t.some(n=>e.startsWith(n))}function $R(e){return e.name===gb&&e.publicId===null&&(e.systemId===null||e.systemId===jR)}function qR(e){if(e.name!==gb)return Tn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===zR)return Tn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),VR.has(n))return Tn.QUIRKS;let i=t===null?WR:Eb;if(M1(n,i))return Tn.QUIRKS;if(i=t===null?yb:YR,M1(n,i))return Tn.LIMITED_QUIRKS}return Tn.NO_QUIRKS}const F1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GR="definitionurl",QR="definitionURL",KR=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])),XR=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}]]),ZR=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])),JR=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 eL(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:i})=>i===di.COLOR||i===di.SIZE||i===di.FACE)||JR.has(t)}function Tb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===GR){e.attrs[t].name=QR;break}}function bb(e){for(let t=0;t<e.attrs.length;t++){const n=KR.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=XR.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 tL(e){const t=ZR.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=wo(e.tagName))}function nL(e,t){return t===re.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function rL(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 iL(e,t,n,i){return(!i||i===re.HTML)&&rL(e,t,n)||(!i||i===re.MATHML)&&nL(e,t)}const oL="hidden",sL=8,aL=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 uL={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},xb=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 RR(this.options,this),this.activeFormattingElements=new HR(this.treeAdapter),this.fragmentContextID=i?wo(this.treeAdapter.getTagName(i)):h.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new UR(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:uL,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 iL(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 xb.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 kR[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){BP(this,t);return}switch(this.insertionMode){case D.INITIAL:{bs(this,t);break}case D.BEFORE_HTML:{Os(this,t);break}case D.BEFORE_HEAD:{Rs(this,t);break}case D.IN_HEAD:{Ls(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ps(this,t);break}case D.AFTER_HEAD:{Ds(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{_b(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:{Nb(this,t);break}case D.IN_COLUMN_GROUP:{Ju(this,t);break}case D.AFTER_BODY:{el(this,t);break}case D.AFTER_AFTER_BODY:{Bu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FP(this,t);return}switch(this.insertionMode){case D.INITIAL:{bs(this,t);break}case D.BEFORE_HTML:{Os(this,t);break}case D.BEFORE_HEAD:{Rs(this,t);break}case D.IN_HEAD:{Ls(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ps(this,t);break}case D.AFTER_HEAD:{Ds(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:{Ju(this,t);break}case D.AFTER_BODY:{el(this,t);break}case D.AFTER_AFTER_BODY:{Bu(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:{xs(this,t);break}case D.AFTER_BODY:{mL(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{gL(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{EL(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:{xs(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)?UP(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{bs(this,t);break}case D.BEFORE_HTML:{yL(this,t);break}case D.BEFORE_HEAD:{bL(this,t);break}case D.IN_HEAD:{Pn(this,t);break}case D.IN_HEAD_NO_SCRIPT:{_L(this,t);break}case D.AFTER_HEAD:{SL(this,t);break}case D.IN_BODY:{Lt(this,t);break}case D.IN_TABLE:{fo(this,t);break}case D.IN_TABLE_TEXT:{xs(this,t);break}case D.IN_CAPTION:{xP(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:{CP(this,t);break}case D.IN_SELECT:{Rb(this,t);break}case D.IN_SELECT_IN_TABLE:{wP(this,t);break}case D.IN_TEMPLATE:{kP(this,t);break}case D.AFTER_BODY:{IP(this,t);break}case D.IN_FRAMESET:{OP(this,t);break}case D.AFTER_FRAMESET:{LP(this,t);break}case D.AFTER_AFTER_BODY:{DP(this,t);break}case D.AFTER_AFTER_FRAMESET:{MP(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?HP(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{bs(this,t);break}case D.BEFORE_HTML:{TL(this,t);break}case D.BEFORE_HEAD:{xL(this,t);break}case D.IN_HEAD:{vL(this,t);break}case D.IN_HEAD_NO_SCRIPT:{CL(this,t);break}case D.AFTER_HEAD:{wL(this,t);break}case D.IN_BODY:{Ol(this,t);break}case D.TEXT:{dP(this,t);break}case D.IN_TABLE:{Vs(this,t);break}case D.IN_TABLE_TEXT:{xs(this,t);break}case D.IN_CAPTION:{vP(this,t);break}case D.IN_COLUMN_GROUP:{_P(this,t);break}case D.IN_TABLE_BODY:{Vf(this,t);break}case D.IN_ROW:{Ob(this,t);break}case D.IN_CELL:{SP(this,t);break}case D.IN_SELECT:{Lb(this,t);break}case D.IN_SELECT_IN_TABLE:{AP(this,t);break}case D.IN_TEMPLATE:{NP(this,t);break}case D.AFTER_BODY:{Db(this,t);break}case D.IN_FRAMESET:{RP(this,t);break}case D.AFTER_FRAMESET:{PP(this,t);break}case D.AFTER_AFTER_BODY:{Bu(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{bs(this,t);break}case D.BEFORE_HTML:{Os(this,t);break}case D.BEFORE_HEAD:{Rs(this,t);break}case D.IN_HEAD:{Ls(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Ps(this,t);break}case D.AFTER_HEAD:{Ds(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:{Ab(this,t);break}case D.TEXT:{fP(this,t);break}case D.IN_TABLE_TEXT:{xs(this,t);break}case D.IN_TEMPLATE:{Pb(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:{vb(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:{kb(this,t);break}}}}function lL(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):wb(e,t),n}function cL(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 dL(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>=aL;!c||f?(f&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=fL(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(l,i),i=l)}return i}function fL(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 hL(e,t,n){const i=e.treeAdapter.getTagName(t),s=wo(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 pL(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<sL;n++){const i=lL(e,t);if(!i)break;const s=cL(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const a=dL(e,s,i.element),l=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(a),l&&hL(e,l,a),pL(e,s,i)}}function Wf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function mL(e,t){e._appendCommentNode(t,e.openElements.items[0])}function gL(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 EL(e,t){e._setDocumentType(t);const n=t.forceQuirks?Tn.QUIRKS:qR(t);$R(t)||e._err(t,Q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function bs(e,t){e._err(t,Q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tn.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function yL(e,t){t.tagID===h.HTML?(e._insertElement(t,re.HTML),e.insertionMode=D.BEFORE_HEAD):Os(e,t)}function TL(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Os(e,t)}function Os(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function bL(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:Rs(e,t)}}function xL(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Rs(e,t):e._err(t,Q.endTagWithoutMatchingOpenElement)}function Rs(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:Ls(e,t)}}function vL(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:{Ls(e,t);break}case h.TEMPLATE:{xi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function xi(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 Ls(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function _L(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:Ps(e,t)}}function CL(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case h.BR:{Ps(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ps(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 SL(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:Ds(e,t)}}function wL(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Ds(e,t);break}case h.TEMPLATE:{xi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ds(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:{_b(e,t);break}case He.WHITESPACE_CHARACTER:{vb(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:{Ab(e,t);break}}}function vb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _b(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function AL(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function kL(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function NL(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 IL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML)}function OL(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 RL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function LL(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 PL(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 DL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,re.HTML),e.tokenizer.state=lt.PLAINTEXT}function ML(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 FL(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 BL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UL(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 HL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jL(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 Cb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Sb(e){const t=hb(e,di.TYPE);return t!=null&&t.toLowerCase()===oL}function zL(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,re.HTML),Sb(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function WL(e,t){e._appendElement(t,re.HTML),t.ackSelfClosing=!0}function VL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,re.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YL(e,t){t.tagName=$.IMG,t.tagID=h.IMG,Cb(e,t)}function $L(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 qL(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,lt.RAWTEXT)}function GL(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 KL(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,re.HTML)}function XL(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,re.HTML)}function ZL(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,re.HTML)}function JL(e,t){e._reconstructActiveFormattingElements(),Tb(t),Wh(t),t.selfClosing?e._appendElement(t,re.MATHML):e._insertElement(t,re.MATHML),t.ackSelfClosing=!0}function eP(e,t){e._reconstructActiveFormattingElements(),bb(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:{BL(e,t);break}case h.A:{FL(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{OL(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:{IL(e,t);break}case h.LI:case h.DD:case h.DT:{PL(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{Cb(e,t);break}case h.HR:{VL(e,t);break}case h.RB:case h.RTC:{XL(e,t);break}case h.RT:case h.RP:{ZL(e,t);break}case h.PRE:case h.LISTING:{RL(e,t);break}case h.XMP:{qL(e,t);break}case h.SVG:{eP(e,t);break}case h.HTML:{AL(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:{kL(e,t);break}case h.FORM:{LL(e,t);break}case h.NOBR:{UL(e,t);break}case h.MATH:{JL(e,t);break}case h.TABLE:{jL(e,t);break}case h.INPUT:{zL(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{WL(e,t);break}case h.IMAGE:{YL(e,t);break}case h.BUTTON:{ML(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{HL(e,t);break}case h.IFRAME:{GL(e,t);break}case h.SELECT:{QL(e,t);break}case h.OPTION:case h.OPTGROUP:{KL(e,t);break}case h.NOEMBED:case h.NOFRAMES:{H1(e,t);break}case h.FRAMESET:{NL(e,t);break}case h.TEXTAREA:{$L(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?H1(e,t):j1(e,t);break}case h.PLAINTEXT:{DL(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 tP(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 nP(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=D.AFTER_BODY,Db(e,t))}function rP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function iP(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 oP(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement($.P,h.P),e._closePElement()}function sP(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function aP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function uP(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function lP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function cP(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function wb(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:{oP(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:{rP(e,t);break}case h.LI:{sP(e);break}case h.DD:case h.DT:{aP(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{uP(e);break}case h.BR:{cP(e);break}case h.BODY:{tP(e,t);break}case h.HTML:{nP(e,t);break}case h.FORM:{iP(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{lP(e,t);break}case h.TEMPLATE:{xi(e,t);break}default:wb(e,t)}}function Ab(e,t){e.tmplInsertionModeStack.length>0?Pb(e,t):Yh(e,t)}function dP(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 fP(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&&xb.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:{Nb(e,t);break}case He.WHITESPACE_CHARACTER:{kb(e,t);break}}else ta(e,t)}function hP(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_CAPTION}function pP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function mP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,h.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,$h(e,t)}function gP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,re.HTML),e.insertionMode=D.IN_TABLE_BODY}function EP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,h.TBODY),e.insertionMode=D.IN_TABLE_BODY,Rl(e,t)}function yP(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TP(e,t){Sb(t)?e._appendElement(t,re.HTML):ta(e,t),t.ackSelfClosing=!0}function bP(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,re.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function fo(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{EP(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}case h.COL:{mP(e,t);break}case h.FORM:{bP(e,t);break}case h.TABLE:{yP(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{gP(e,t);break}case h.INPUT:{TP(e,t);break}case h.CAPTION:{hP(e,t);break}case h.COLGROUP:{pP(e,t);break}default:ta(e,t)}}function Vs(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{xi(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:ta(e,t)}}function ta(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Il(e,t),e.fosterParentingEnabled=n}function kb(e,t){e.pendingCharacterTokens.push(t)}function Nb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ta(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ib=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function xP(e,t){const n=t.tagID;Ib.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,fo(e,t)):Lt(e,t)}function vP(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&&Vs(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:Ju(e,t)}}function _P(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:{xi(e,t);break}case h.COL:break;default:Ju(e,t)}}function Ju(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,fo(e,t));break}default:fo(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,Vs(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:Vs(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:fo(e,t)}}function Ob(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:Vs(e,t)}}function CP(e,t){const n=t.tagID;Ib.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),Ll(e,t)):Lt(e,t)}function SP(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(),Ob(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:Ol(e,t)}}function Rb(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 Lb(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:{xi(e,t);break}}}function wP(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)):Rb(e,t)}function AP(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)):Lb(e,t)}function kP(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,fo(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 NP(e,t){t.tagID===h.TEMPLATE&&xi(e,t)}function Pb(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 IP(e,t){t.tagID===h.HTML?Lt(e,t):el(e,t)}function Db(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 el(e,t)}function el(e,t){e.insertionMode=D.IN_BODY,Il(e,t)}function OP(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 RP(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 LP(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function PP(e,t){t.tagID===h.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function DP(e,t){t.tagID===h.HTML?Lt(e,t):Bu(e,t)}function Bu(e,t){e.insertionMode=D.IN_BODY,Il(e,t)}function MP(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function FP(e,t){t.chars=rt,e._insertCharacters(t)}function BP(e,t){e._insertCharacters(t),e.framesetOk=!1}function Mb(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 UP(e,t){if(eL(t))Mb(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===re.MATHML?Tb(t):i===re.SVG&&(tL(t),bb(t)),Wh(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function HP(e,t){if(t.tagID===h.P||t.tagID===h.BR){Mb(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 jP=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,zP=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),z1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Fb(e,t){const n=ZP(e),i=ub("type",{handlers:{root:WP,element:VP,text:YP,comment:Ub,doctype:$P,raw:GP},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),Ao(s,Kn());const a=n?s.parser.document:s.parser.getFragment(),l=WO(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 Bb(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function WP(e,t){Bb(e.children,t)}function VP(e,t){KP(e,t),Bb(e.children,t),XP(e,t)}function YP(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:na(e)};Ao(t,Kn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function $P(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:na(e)};Ao(t,Kn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function qP(e,t){t.stitches=!0;const n=JP(e);if("children"in e&&"children"in n){const i=Fb({type:"root",children:e.children},t.options);n.children=i.children}Ub({type:"comment",value:{stitch:n}},t)}function Ub(e,t){const n=e.value,i={type:He.COMMENT,data:n,location:na(e)};Ao(t,Kn(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function GP(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,Hb(t,Kn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jP,"&lt;$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))qP(n,t);else{let i="";throw zP.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 Ao(e,t){Hb(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 Hb(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 KP(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===lt.PLAINTEXT)return;Ao(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=iR({...e,children:[]},{space:s===ci.svg?"svg":"html"}),l={type:He.START_TAG,tagName:n,tagID:wo(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:na(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function XP(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&fR.includes(n)||t.parser.tokenizer.state===lt.PLAINTEXT)return;Ao(t,wl(e));const i={type:He.END_TAG,tagName:n,tagID:wo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:na(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 ZP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function na(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 JP(e){return"children"in e?co({...e,children:[]}):co(e)}function e4(e){return function(t,n){return Fb(t,{...e,file:n})}}const t4="_prose_1l8lv_1",n4="_mdAccordion_1l8lv_16",jb={prose:t4,mdAccordion:n4};function r4(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="${jb.mdAccordion}"${c}>
84
+ <summary>${String(a).trim()}</summary>
85
+ <div class="p-4">
86
+ ${String(l).trim()}
87
+ </div>
88
+ </details>`})}function i4({children:e,className:t="",openFirst:n=!1}){const s=r4(typeof e=="string"?e:"",{openFirst:n});return x.jsx("div",{className:["prose",jb.prose,t].filter(Boolean).join(" "),children:x.jsx(kO,{rehypePlugins:[e4],children:s})})}function o4(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={},zb=({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(o4,{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(i4,{openFirst:t,children:e})})]})},Wb=C.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]=C.useState(!1),w=C.useRef(null);C.useEffect(()=>{if(!b)return;const I=F=>{const z=F.target,B=w.current;B&&(B.contains(z)||z===B)||T(!1)},O=F=>F.key==="Escape"&&T(!1);return window.addEventListener("scroll",I,!0),window.addEventListener("resize",I),document.addEventListener("keydown",O),()=>{window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I),document.removeEventListener("keydown",O)}},[b]);const _=t?e.find(I=>I.value===t):void 0,k=I=>{n(I),T(!1)},S=()=>n(null);return x.jsxs(fT,{open:b,onOpenChange:T,children:[x.jsxs(hT,{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-[12px] 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(!_&&"text-[12px] text-gray-700 ms:text-sm"),children:_?.label??i}),x.jsx(Ty,{className:Ft("h-4 w-[16px] transition-transform",b&&"rotate-180")})]}),x.jsxs(pT,{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:I=>I.stopPropagation(),onTouchMove:I=>I.stopPropagation(),onWheel:I=>I.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":_?`option-${_.value}`:void 0,className:"py-1",children:e.map(I=>{const O=t===I.value;return x.jsxs("div",{id:`option-${I.value}`,role:"option","aria-selected":O,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(I.value),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),k(I.value))},children:[x.jsxs("div",{className:"flex flex-row items-center gap-[8px]",children:[x.jsx("span",{className:"text-[1.05rem]",children:I.label}),(()=>{if(!p||!g)return null;const F=p(I.value,g);return F?.Description?x.jsx(zb,{tooltipData:F.Description}):null})()]}),O?x.jsx(yy,{className:"h-4 w-[16px]"}):null]},I.value)})})]})]})});Wb.displayName="SingleSelect";const Vb=({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…"})]})}),s4=({open:e,target:t,children:n,offset:i=12,maxWidthPx:s=420,forceOverflowVisible:a=!0})=>{const l=C.useRef(null),[c,f]=C.useState({top:0,left:0,arrowLeft:16});return C.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]),C.useLayoutEffect(()=>{if(!e||!t)return;const p=10,g=8,E=()=>{const _=l.current;if(!_)return;const k={vis:_.style.visibility,top:_.style.top,left:_.style.left,maxW:_.style.maxWidth,transform:_.style.transform};_.style.visibility="hidden",_.style.top="0px",_.style.left="0px",_.style.transform="none",_.style.maxWidth=`min(${s}px, calc(100vw - ${g*2}px))`;const S=_.getBoundingClientRect(),I=S.width,O=S.height,F=t.getBoundingClientRect(),z=F.left,B=Math.max(g,Math.min(z,window.innerWidth-g-I)),W=Math.max(g,F.top-(O+i+p)),V=z-B+16,ee=Math.max(8,Math.min(V,I-8));_.style.visibility=k.vis,_.style.top=k.top,_.style.left=k.left,_.style.maxWidth=k.maxW,_.style.transform=k.transform,f({top:W,left:B,arrowLeft:ee})};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:mo.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.body)},Yb=({val:e,onDelete:t})=>{const[n,i]=C.useState(null),[s,a]=C.useState(!1),[l,c]=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(Qs,{className:"w-[8px] h-2 stroke-[var(--svg-dark)]"})})]}),x.jsx(s4,{open:s,target:n,offset:8,children:x.jsxs(x.Fragment,{children:[l.materialName," | ",l.parentName]})})]})},a4=()=>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}),u4=({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(po),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(Yb,{val:c,onDelete:a},`${p?.label||f}/${c.parentName}`)}),Array.from({length:l}).map((c,f)=>x.jsx(a4,{},`mock-${f}`))]})]})},$b=()=>{const e=jt(),t=je(po),n=C.useMemo(()=>t.flatMap(s=>s.items.map(a=>({...a,productName:s.name}))),[t]),i=()=>{n.length&&e(kE(!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(u4,{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(ME,{onClick:i,children:"ADD SWATCHES TO CART"})})})]})},l4="/assets/header_image-BZoSlAHj.png",c4=[{label:"A-Z",value:"asc"},{label:"Z-A",value:"dsc"}],d4=()=>{const e=jt(),t=je(BC),n=je(LE),i=je(FC),s=je(po),[a,l]=C.useState(Dy),[c,f]=C.useState(""),[p,g]=C.useState(""),[E,b]=C.useState(null);C.useEffect(()=>{const S=setTimeout(()=>{g(c.trim().toLowerCase())},300);return()=>clearTimeout(S)},[c]),C.useEffect(()=>{e(As())},[e]);const T=C.useMemo(()=>RA.getUniqueCategories(i),[i]),w=S=>S.toLowerCase(),_=C.useMemo(()=>new Intl.Collator(void 0,{sensitivity:"base",numeric:!1}),[]),k=C.useMemo(()=>{let S=i;if(a?.value){const I=w(a.value);S=S.filter(O=>w(O.collection??"")===I)}return p&&(S=S.filter(I=>w(I.name).includes(p))),E==="asc"?S=[...S].sort((I,O)=>_.compare(I.name,O.name)):E==="dsc"&&(S=[...S].sort((I,O)=>_.compare(O.name,I.name))),S},[i,a,p,E,_]);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:l4,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("span",{className:"p-[var(--sm-padding)] text-base font-medium",children:"Swatches store"}),x.jsx("div",{className:"border-t border-[var(--border)] p-[var(--sm-padding)] text-[12px] 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(Vb,{}),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(kA,{width:20,height:20})})]}),x.jsx(Wb,{title:"Sort by",placeholder:"Sort by",values:c4,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(OA,{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($b,{}):null]})]})};function f4(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Pl="Checkbox",[h4]=El(Pl),[p4,qh]=h4(Pl);function m4(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]=C.useState(null),I=C.useRef(!1),O=w?!!l||!!w.closest("form"):!0,F={checked:b,disabled:a,setChecked:T,control:w,setControl:_,name:c,form:l,value:g,hasConsumerStoppedPropagationRef:I,required:p,defaultChecked:zr(s)?!1:s,isFormControl:O,bubbleInput:k,setBubbleInput:S};return x.jsx(p4,{scope:t,...F,children:g4(E)?E(F):i})}var qb="CheckboxTrigger",Gb=C.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(qb,e),_=cn(s,g),k=C.useRef(f);return C.useEffect(()=>{const S=a?.form;if(S){const I=()=>E(k.current);return S.addEventListener("reset",I),()=>S.removeEventListener("reset",I)}},[a,E]),x.jsx(At.button,{type:"button",role:"checkbox","aria-checked":zr(f)?"mixed":f,"aria-required":p,"data-state":ex(f),"data-disabled":c?"":void 0,disabled:c,value:l,...i,ref:_,onKeyDown:Ht(t,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ht(n,S=>{E(I=>zr(I)?!0:!I),w&&T&&(b.current=S.isPropagationStopped(),b.current||S.stopPropagation())})})});Gb.displayName=qb;var Qb=C.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(m4,{__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(Gb,{...E,ref:t,__scopeCheckbox:n}),b&&x.jsx(Jb,{__scopeCheckbox:n})]})})});Qb.displayName=Pl;var Kb="CheckboxIndicator",Xb=C.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:i,...s}=e,a=qh(Kb,n);return x.jsx(go,{present:i||zr(a.checked)||a.checked===!0,children:x.jsx(At.span,{"data-state":ex(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});Xb.displayName=Kb;var Zb="CheckboxBubbleInput",Jb=C.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(Zb,e),w=cn(n,T),_=f4(a),k=Gy(i);C.useEffect(()=>{const I=b;if(!I)return;const O=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(O,"checked").set,B=!s.current;if(_!==a&&z){const W=new Event("click",{bubbles:B});I.indeterminate=zr(a),z.call(I,zr(a)?!1:a),I.dispatchEvent(W)}},[b,_,a,s]);const S=C.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%)"}})});Jb.displayName=Zb;function g4(e){return typeof e=="function"}function zr(e){return e==="indeterminate"}function ex(e){return zr(e)?"indeterminate":e?"checked":"unchecked"}function E4({className:e,...t}){return x.jsx(Qb,{"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(Xb,{"data-slot":"checkbox-indicator",className:"flex flex-row items-center justify-center text-current transition-none",children:x.jsx(yy,{className:"size-3"})})})}const ra=C.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]=C.useState(!1),b=C.useRef(null);C.useEffect(()=>{if(!g)return;const S=O=>{const F=O.target,z=b.current;z&&(z.contains(F)||F===z)||E(!1)},I=O=>{O.key==="Escape"&&E(!1)};return window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),document.addEventListener("keydown",I),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S),document.removeEventListener("keydown",I)}},[g]);const T=(S,I)=>{n(I?[...t,S]:t.filter(O=>O!==S))},w=()=>{n([])},_=t.length,k=_===0?i:_===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-[10px] leading-none
127
+ select-none pointer-events-none
128
+ overflow-hidden
129
+ `,children:_})]});if(e.length)return x.jsxs(fT,{open:g,onOpenChange:E,children:[x.jsxs(hT,{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-[12px] truncate text-left leading-[20px] sm:text-sm",children:k}),x.jsx(Ty,{className:Ft("h-4 w-[16px] transition-transform",g&&"rotate-180")})]}),x.jsxs(pT,{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:[_>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 I=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,!I),children:[x.jsx(E4,{checked:I,className:"size-6",onCheckedChange:O=>T(S.value,O)}),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 O=c(S.value,f);return O&&O.Description?x.jsx(zb,{tooltipData:O?.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)})})]})]})});ra.displayName="MultiSelect";const tx=({containerStyles:e,selectStyles:t})=>{const n=jt(),i=je(DC),s=je(ho),[a,l]=C.useState([]),[c,f]=C.useState([]);C.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=mE(E);if(b.length){const T=i.filter(k=>k.metadata?b.includes(k.metadata?.Label):b.includes(k.value));f(b);const w=Vu.mapFiltersFromValues(T,s),_=Vu.getPositiveSelectedFilers(w);_.length&&_.forEach(k=>{const{filterName:S,filterKeys:I}=k;n(hl({filterName:S,values:I}))}),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(ra,{options:a,values:c,onValueChange:g=>p("PanelElement",g),placeholder:"All product elements",className:t,dropdownWidth:"w-80"})]})},y4=()=>{const e=jt(),t=je(ho),n=je(Gs),[i,s]=C.useState([]);C.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(ra,{options:i,values:t.Finish,onValueChange:l=>a("Finish",l),placeholder:"Material",dropdownWidth:"w-80"})},T4=()=>{const e=jt(),t=je(ho),n=je(Gs),[i,s]=C.useState([]);C.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(ra,{options:i,values:t.Color,onValueChange:l=>a("Color",l),placeholder:"Color",dropdownWidth:"w-80"})},b4=()=>{const e=jt(),t=je(ho),n=je(Gs),[i,s]=C.useState([]);C.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(ra,{options:i,values:t.Look,onValueChange:l=>a("Look",l),placeholder:"Look",dropdownWidth:"w-80"})},nx=()=>x.jsxs("div",{className:"flex flex-row items-center gap-[16px] p-[var(--sm-padding)] ",children:[x.jsx(y4,{}),x.jsx(T4,{}),x.jsx(b4,{})]}),x4=()=>x.jsxs("div",{className:`flex flex-col justify-between border-b border-[var(--border)]
130
+ sm:flex-row
131
+ `,children:[x.jsx(tx,{containerStyles:`flex flex-row justify-between items-center gap-[8px] p-[var(--sm-padding)] w-full text-[12px]
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-[160px] font-normal"}),x.jsx(nx,{})]});function eo(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,_)=>i[_]!==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,_=Math.round((Date.now()-T)*100)/100,k=_/16,S=(I,O)=>{for(I=String(I);I.length<O;)I=" "+I;return I};console.info(`%c⏱ ${S(_,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 v4=(e,t)=>Math.abs(e-t)<1.01,_4=(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}},C4=e=>e,S4=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},w4=(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,A4=(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?()=>{}:_4(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)}},k4=(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"]},N4=(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 I4{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:C4,rangeExtractor:S4,onChange:()=>{},measureElement:k4,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=eo(()=>(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=eo(()=>[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=eo(()=>[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),_=typeof w=="number"?w:this.options.estimateSize(g),k=T+_,S=b?b.lane:g%this.options.lanes;p[g]={index:g,start:T,size:_,end:k,key:E,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=eo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,s,a)=>this.range=n.length>0&&i>0?O4({measurements:n,outerSize:i,scrollOffset:s,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=eo(()=>{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=eo(()=>[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[rx(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}v4(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 rx=(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 O4({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=rx(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"?C.useLayoutEffect:C.useEffect;function R4(e){const t=C.useReducer(()=>({}),{})[1],n={...e,onChange:(s,a)=>{var l;a?mo.flushSync(t):t(),(l=e.onChange)==null||l.call(e,s,a)}},[i]=C.useState(()=>new I4(n));return i.setOptions(n),G1(()=>i._didMount(),[]),G1(()=>i._willUpdate()),i}function ix(e){return R4({observeElementRect:w4,observeElementOffset:A4,scrollToFn:N4,...e})}const L4=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"})}),tl=({val:e,onClick:t})=>{const n=je(Zf),i=je(po),s=C.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(L4,{})})]},e.assetId),x.jsxs("div",{className:"mb-[12px] flex flex-col",children:[x.jsxs("span",{className:"mb-[4px] text-[14px] font-semibold leading-[16px]",children:[e.metadata?.label||e.label," "]}),x.jsxs("span",{className:"text-[12px] font-medium leading-[14px]",children:[e.parentName," "]})]})]})},P4=({isOpen:e,onClose:t,title:n="Message",width:i,height:s,children:a})=>{const l=C.useRef(null);return C.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?FE.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(Qs,{className:"text-[var(--text)] ",width:10,hanging:10})})]}),x.jsx("div",{className:"flex flex-col gap-[12px] text-[var(--text-muted)]",children:a})]})}),document.body):null},ox=({isOpen:e,onClose:t})=>x.jsx(P4,{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 exsiting swach 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"})})]})}),D4=({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=C.useRef(null),a=je(Gs),l=je(ho),c=je(ml),f=je(po),[p,g]=C.useState(!1),E=C.useMemo(()=>f.flatMap(K=>K.items),[f]),b=C.useMemo(()=>a.filter(K=>{const ge=l.Finish.length===0||l.Finish.some(fe=>K.metadata?.Finish===fe||K.metadata?.Material===fe),te=l.Color.length===0||K.metadata?.Color&&l.Color.some(fe=>K.metadata?.Color?.split(",").map(j=>j.trim()).includes(fe)),J=K.metadata?.Look,ce=!l.Look||l.Look.length===0||l.Look.some(fe=>J&&J.includes(fe));return ge&&te&&ce}),[l,a]),T=typeof window<"u"?window.matchMedia("(min-width: 640px)").matches:!1,w=T?n:1,_=Math.ceil(b.length/w),k=T?300:200,S=ix({count:_,getScrollElement:()=>s.current,estimateSize:()=>k,overscan:24,measureElement:K=>K?.getBoundingClientRect().height}),I=S.getVirtualItems(),O=S.getTotalSize(),F=I[0]?.index??0,z=I[I.length-1]?.index??-1,B=F*w,W=Math.min((z+1)*w,b.length),V=b.slice(B,W),ee=I[0]?.start??0,me=O-(I[I.length-1]?.end??0),oe=K=>{if(!c)return;const ge=f.find(ce=>c.assetId===ce.assetId),te=ce=>ce.metadata?.label===K.metadata?.label&&ce.parentName===K.parentName,J=E.some(te);if(!J&&E.length>=5&&g(!0),J){const ce=E.filter(he=>!te(he)),j={assetId:f.find(he=>he.items.some(N=>N.metadata?.label===K.metadata?.label&&N.parentName===K.parentName))?.assetId||c.assetId,name:c.name,items:ce};i(bf(j)),i(xf(j))}else if(E.length<5){const ce={...K,count:1},fe=ge?[...ge.items,ce]:[ce],j={assetId:c.assetId,name:c.name,items:fe};i(bf(j)),i(xf(j))}};return x.jsxs("div",{ref:s,className:e,children:[x.jsx(ox,{isOpen:p,onClose:()=>g(!1)}),x.jsx("div",{style:{height:ee},"aria-hidden":!0}),x.jsx("div",{className:t,children:V.map((K,ge)=>{const te=B+ge,J=`${K.metadata?.label||te}/${K.parentName}`;return(te+1)%w===0||te===b.length-1?x.jsx("div",{ref:S.measureElement,children:x.jsx(tl,{val:K,onClick:oe})},J):x.jsx(tl,{val:K,onClick:oe},J)})}),x.jsx("div",{style:{height:me},"aria-hidden":!0})]})},M4=()=>{const e=jt(),t=je(ml);C.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(x4,{})}),x.jsx(D4,{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($b,{})]})]})},F4=({onSendData:e})=>{const t=je(MC),n=je(ml);return x.jsx(x.Fragment,{children:t?x.jsx(AA,{onSendData:e}):n?x.jsx(M4,{}):x.jsx(d4,{})})},nl={SWATCH:"swatch",CART:"cart"},B4="_overlay_1aet8_1",U4="_panel_1aet8_10",H4="_enter_1aet8_38",j4="_exit_1aet8_42",vs={overlay:B4,panel:U4,enter:H4,exit:j4},sx=({children:e,isOpen:t,setIsOpen:n})=>{const i=C.useRef(null),s=C.useRef(null),a=()=>n(!1);return C.useLayoutEffect(()=>{t&&typeof document<"u"&&(s.current=document.activeElement)},[t]),C.useEffect(()=>{t?i.current?.focus():s.current?.focus?.()},[t]),C.useEffect(()=>{if(!t)return;const l=c=>{c.key==="Escape"&&a()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]),C.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?mo.createPortal(x.jsx("div",{className:lr(vs.overlay),onMouseDown:a,onTouchStart:a,children:x.jsx("div",{ref:i,tabIndex:-1,className:Ft(vs.panel,vs.right,t?vs.enter:vs.exit,"bg-[var(--sidebar-bg)]"),onMouseDown:l=>l.stopPropagation(),onTouchStart:l=>l.stopPropagation(),children:e})}),document.body):null};class z4{static getCartPreparedOption(t){return t?.length?t.map(n=>({...n,count:1})):[]}}const W4=()=>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}),V4=({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}))},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(Yb,{val:a,onDelete:i},`${c?.label||l}/${a.parentName}`)}),Array.from({length:s}).map((a,l)=>x.jsx(W4,{},`mock-${l}`))]})]})},Y4=()=>{const e=je(Zf)??[];return x.jsx(V4,{selectedMaterials:e})},$4=({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=Xf(),s=C.useRef(null),a=je(Gs),l=je(ho),[c,f]=C.useState(!1),p=C.useMemo(()=>a.filter(ee=>{const me=l.Finish.length===0||l.Finish.some(te=>ee.metadata?.Finish===te||ee.metadata?.Material===te),oe=l.Color.length===0||ee.metadata?.Color&&l.Color.some(te=>ee.metadata?.Color?.split(",").map(J=>J.trim()).includes(te)),K=ee.metadata?.Look,ge=!l.Look||l.Look.length===0||l.Look.some(te=>K&&K.includes(te));return me&&oe&&ge}),[l,a]),g=typeof window<"u"?window.matchMedia("(min-width: 640px)").matches:!1,E=g?n:1,b=Math.ceil(p.length/E),T=g?300:200,w=ix({count:b,getScrollElement:()=>s.current,estimateSize:()=>T,overscan:24,measureElement:ee=>ee?.getBoundingClientRect().height}),_=w.getVirtualItems(),k=w.getTotalSize(),S=_[0]?.index??0,I=_[_.length-1]?.index??-1,O=S*E,F=Math.min((I+1)*E,p.length),z=p.slice(O,F),B=_[0]?.start??0,W=k-(_[_.length-1]?.end??0),V=ee=>{i(pl({selectedMaterial:ee,limitCb:()=>f(!0)}))};return x.jsxs("div",{ref:s,className:e,children:[x.jsx(ox,{isOpen:c,onClose:()=>f(!1)}),x.jsx("div",{style:{height:B},"aria-hidden":!0}),x.jsx("div",{className:t,children:z.map((ee,me)=>{const oe=O+me,K=`${ee.metadata?.label||oe}/${ee.parentName}`;return(oe+1)%E===0||oe===p.length-1?x.jsx("div",{ref:w.measureElement,children:x.jsx(tl,{val:ee,onClick:V})},K):x.jsx(tl,{val:ee,onClick:V},K)})}),x.jsx("div",{style:{height:W},"aria-hidden":!0})]})},q4=({isOpen:e,onToggleSidebar:t,onSetActiveTab:n})=>{const i=jt(),s=je(Zf)??[],a=je(LE),l=()=>{const c=z4.getCartPreparedOption(s);c&&i(_C(c)),n(nl.CART)};return x.jsxs(sx,{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(Qs,{width:10,height:10})})]}),x.jsxs("div",{className:"flex flex-col h-full min-h-0 relative",children:[a&&x.jsx(Vb,{}),x.jsx(tx,{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(nx,{}),x.jsx($4,{}),x.jsx(Y4,{}),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"})})]})]})},rl=e=>e.cart.items,ax=ll(rl,e=>e.reduce((t,n)=>t+n.count,0)),G4=ll(ax,e=>Math.max(0,Ut-e)),Q4=ll(G4,e=>e>0),K4=({onSetActiveTab:e,onToggleSidebar:t})=>{const n=je(ax);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(nl.SWATCH),children:x.jsx(ph,{})}),x.jsx("h2",{className:"m-0! text-base leading-[1.6] font-medium ",children:"Your cart"})]}),n>=Ut?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-[var(--main-accent-color)] hidden text-[12px] 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(Qs,{width:10,height:10})})]})},X4=()=>{const e=jt(),t=je(rl)??[],n=je(Q4),i=l=>{e(CC({selectedMaterial:l})),e(pl({selectedMaterial:l}))},s=l=>{e(SC({selectedMaterial:l}))},a=l=>{e(wC({selectedMaterial:l}))};return x.jsx("ul",{className:"flex flex-col flex-1 min-h-0 overflow-y-auto",children:t?.map(l=>x.jsx(Py,{item:l,canInc:n,onDelete:()=>i(l),onIncrement:()=>s(l),onDecrement:()=>a(l)},`${l.assetId}/${l.parentName}`))})},Z4=({isOpen:e,onToggleSidebar:t,onSetActiveTab:n,onSendData:i})=>{const s=je(rl),a=je(rl)??[];return x.jsxs(sx,{isOpen:e,setIsOpen:t,children:[x.jsx(K4,{onSetActiveTab:n,onToggleSidebar:t}),x.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[x.jsx(X4,{}),x.jsx(DE,{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"})})]})]})},J4=({isOpen:e,onToggleSidebar:t,onSendData:n})=>{const[i,s]=C.useState(nl.SWATCH),a=l=>{s(l)};return x.jsx(x.Fragment,{children:i===nl.SWATCH?x.jsx(q4,{isOpen:e,onToggleSidebar:t,onSetActiveTab:a}):x.jsx(Z4,{isOpen:e,onToggleSidebar:t,onSetActiveTab:a,onSendData:n})})},eD=$f({swatches:AE,cart:IE,multiProductCart:RE});let af=null;function tD(){return lE({reducer:eD,devTools:!1,middleware:e=>e({thunk:!0})})}const nD=()=>(af||(af=tD()),af),rD=Xf.withTypes();pE.withTypes();function ux({children:e}){return x.jsx(A2,{store:nD(),children:e})}const iD=({isOpen:e,uiDataType:t,data:n,assetId:i,onToggleSidebar:s,onSendData:a})=>{const c=[wt.UI,wt.FETCH_DATA_PRODUCT].includes(t),f=rD();return C.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(ws({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(As()).unwrap()}catch(g){console.error("Failed to load product",g)}})()},[t,n,i]),x.jsxs(ux,{children:[x.jsx(gC,{position:"top-center",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"dark",transition:SE}),e?x.jsxs(x.Fragment,{children:[c?null:x.jsx(F4,{onSendData:a,onToggleSidebar:s}),c?x.jsx(J4,{isOpen:e,uiDataType:t,data:n,assetId:i,onToggleSidebar:s,onSendData:a}):null]}):null]})};function oD(e){const t=n=>x.jsx(ux,{children:x.jsx(e,{...n})});return t.displayName=`withStore(${e.displayName||e.name||"Component"})`,t}const sD=oD(iD);function aD(){const[e,t]=C.useState(!0),[n,i]=C.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;console.log(c),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-[600px] min-h-0 overflow-hidden flex flex-col border border-[var(--border)]":""}`,children:x.jsx(sD,{isOpen:e,uiDataType:n,assetId:"9aa4a6cc-05a2-4de0-b376-ef3ef2271bfe",onToggleSidebar:s,onSendData:a})})]})}d_.createRoot(document.getElementById("root")).render(x.jsx(C.StrictMode,{children:x.jsx(aD,{})}));