@epic-web/workshop-app 4.2.8 → 4.3.0

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 (109) hide show
  1. package/build/client/assets/{_-CsdFvUbA.js → _-ByTWgb53.js} +2 -2
  2. package/build/client/assets/{_-CsdFvUbA.js.map → _-ByTWgb53.js.map} +1 -1
  3. package/build/client/assets/_exerciseNumber-9RwIhGRW.js +2 -0
  4. package/build/client/assets/{_exerciseNumber-DWZNkWZM.js.map → _exerciseNumber-9RwIhGRW.js.map} +1 -1
  5. package/build/client/assets/{_exerciseNumber_._stepNumber-P76hDsE6.js → _exerciseNumber_._stepNumber-D1wwEMQx.js} +2 -2
  6. package/build/client/assets/{_exerciseNumber_._stepNumber-P76hDsE6.js.map → _exerciseNumber_._stepNumber-D1wwEMQx.js.map} +1 -1
  7. package/build/client/assets/_exerciseNumber_.finished-BhpKVn4e.js +2 -0
  8. package/build/client/assets/{_exerciseNumber_.finished-CpC-flTW.js.map → _exerciseNumber_.finished-BhpKVn4e.js.map} +1 -1
  9. package/build/client/assets/{_layout-DEZ-aTmx.js → _layout-BaPtC79F.js} +2 -2
  10. package/build/client/assets/{_layout-DEZ-aTmx.js.map → _layout-BaPtC79F.js.map} +1 -1
  11. package/build/client/assets/_layout-Bj9PyQQD.js +2 -0
  12. package/build/client/assets/{_layout-D1A2zp9y.js.map → _layout-Bj9PyQQD.js.map} +1 -1
  13. package/build/client/assets/_layout-DPfeFZ1b.js +2 -0
  14. package/build/client/assets/{_layout-BSoUgboG.js.map → _layout-DPfeFZ1b.js.map} +1 -1
  15. package/build/client/assets/_layout-PTTX5RMb.js +2 -0
  16. package/build/client/assets/_layout-PTTX5RMb.js.map +1 -0
  17. package/build/client/assets/account-C6GYxzo4.js +2 -0
  18. package/build/client/assets/{account-BeKnQB9r.js.map → account-C6GYxzo4.js.map} +1 -1
  19. package/build/client/assets/{button-Da1iG51o.js → button-DnQOyJAN.js} +2 -2
  20. package/build/client/assets/{button-Da1iG51o.js.map → button-DnQOyJAN.js.map} +1 -1
  21. package/build/client/assets/{client-hints-B2pbEa_9.js → client-hints-BsCjbOX0.js} +3 -3
  22. package/build/client/assets/client-hints-BsCjbOX0.js.map +1 -0
  23. package/build/client/assets/{components-BM_XUa9h.js → components-Dj3sm47B.js} +15 -15
  24. package/build/client/assets/{components-BM_XUa9h.js.map → components-Dj3sm47B.js.map} +1 -1
  25. package/build/client/assets/{diff-BQhWtDyS.js → diff-BQB9RSaR.js} +2 -2
  26. package/build/client/assets/{diff-BQhWtDyS.js.map → diff-BQB9RSaR.js.map} +1 -1
  27. package/build/client/assets/diff-SN_GIbcP.js +2 -0
  28. package/build/client/assets/{diff-BDeBUdSw.js.map → diff-SN_GIbcP.js.map} +1 -1
  29. package/build/client/assets/discord-CK7yz4w6.js +2 -0
  30. package/build/client/assets/discord-CK7yz4w6.js.map +1 -0
  31. package/build/client/assets/{discord-BMNnObT9.js → discord-CsluX01E.js} +2 -2
  32. package/build/client/assets/{discord-BMNnObT9.js.map → discord-CsluX01E.js.map} +1 -1
  33. package/build/client/assets/{entry.client-XC5tKTFs.js → entry.client-DBBrAxtJ.js} +2 -2
  34. package/build/client/assets/{entry.client-XC5tKTFs.js.map → entry.client-DBBrAxtJ.js.map} +1 -1
  35. package/build/client/assets/{epic-video-CxRPT-8l.js → epic-video-21h2ikhz.js} +2 -2
  36. package/build/client/assets/{epic-video-CxRPT-8l.js.map → epic-video-21h2ikhz.js.map} +1 -1
  37. package/build/client/assets/{error-boundary-tJSWbP6w.js → error-boundary-Bg54_knF.js} +2 -2
  38. package/build/client/assets/{error-boundary-tJSWbP6w.js.map → error-boundary-Bg54_knF.js.map} +1 -1
  39. package/build/client/assets/finished-BcwIbl76.js +2 -0
  40. package/build/client/assets/{finished-CMGRmsnb.js.map → finished-BcwIbl76.js.map} +1 -1
  41. package/build/client/assets/{index-B8G3eD8F.js → index-BL4aE6WC.js} +2 -2
  42. package/build/client/assets/{index-B8G3eD8F.js.map → index-BL4aE6WC.js.map} +1 -1
  43. package/build/client/assets/{index-BymJEf3X.js → index-BfoHqrT5.js} +2 -2
  44. package/build/client/assets/{index-BymJEf3X.js.map → index-BfoHqrT5.js.map} +1 -1
  45. package/build/client/assets/index-CsvysmWA.js +2 -0
  46. package/build/client/assets/{index-CQZ5FyEE.js.map → index-CsvysmWA.js.map} +1 -1
  47. package/build/client/assets/index-D1WEsmVZ.js +36 -0
  48. package/build/client/assets/{index-BDqSZ0-h.js.map → index-D1WEsmVZ.js.map} +1 -1
  49. package/build/client/assets/index-HBgMKyVf.js +2 -0
  50. package/build/client/assets/{index-Dc59VwXx.js.map → index-HBgMKyVf.js.map} +1 -1
  51. package/build/client/assets/{loading-DsjO-T0W.js → loading-Ba880UMD.js} +2 -2
  52. package/build/client/assets/{loading-DsjO-T0W.js.map → loading-Ba880UMD.js.map} +1 -1
  53. package/build/client/assets/login-BQY-a6kw.js +2 -0
  54. package/build/client/assets/{login-CcuvIoiW.js.map → login-BQY-a6kw.js.map} +1 -1
  55. package/build/client/assets/manifest-0d62be17.js +1 -0
  56. package/build/client/assets/mdx-wWk4dtHt.js +2 -0
  57. package/build/client/assets/{mdx-CZ_BPVoS.js.map → mdx-wWk4dtHt.js.map} +1 -1
  58. package/build/client/assets/misc-CXGQ7VS9.js +2 -0
  59. package/build/client/assets/{misc-C1rq7sPa.js.map → misc-CXGQ7VS9.js.map} +1 -1
  60. package/build/client/assets/{nav-chevrons-C-dN3WfT.js → nav-chevrons-D8c9lJW6.js} +2 -2
  61. package/build/client/assets/{nav-chevrons-C-dN3WfT.js.map → nav-chevrons-D8c9lJW6.js.map} +1 -1
  62. package/build/client/assets/onboarding-gD8f59tE.js +2 -0
  63. package/build/client/assets/{onboarding-CfXLKsN3.js.map → onboarding-gD8f59tE.js.map} +1 -1
  64. package/build/client/assets/presence-B2xpI37C.js +28 -0
  65. package/build/client/assets/presence-B2xpI37C.js.map +1 -0
  66. package/build/client/assets/{progress-mfa_5CZx.js → progress-CBZt2pmu.js} +2 -2
  67. package/build/client/assets/{progress-mfa_5CZx.js.map → progress-CBZt2pmu.js.map} +1 -1
  68. package/build/client/assets/{progress-bar-BmszwN_j.js → progress-bar-DX6yYES2.js} +2 -2
  69. package/build/client/assets/{progress-bar-BmszwN_j.js.map → progress-bar-DX6yYES2.js.map} +1 -1
  70. package/build/client/assets/request-info-BHMoxBaT.js +2 -0
  71. package/build/client/assets/request-info-BHMoxBaT.js.map +1 -0
  72. package/build/client/assets/{root-1Cc21xa6.js → root-BcFXTrBQ.js} +2 -2
  73. package/build/client/assets/{root-1Cc21xa6.js.map → root-BcFXTrBQ.js.map} +1 -1
  74. package/build/client/assets/{support--jou3sWH.js → support-QTdmLyE7.js} +2 -2
  75. package/build/client/assets/{support--jou3sWH.js.map → support-QTdmLyE7.js.map} +1 -1
  76. package/build/client/assets/{tooltip-BlVFw-is.js → tooltip-CVFWPOu0.js} +2 -2
  77. package/build/client/assets/{tooltip-BlVFw-is.js.map → tooltip-CVFWPOu0.js.map} +1 -1
  78. package/build/client/assets/{use-event-source-DPLyo0Bh.js → use-event-source-DXlRuRq2.js} +2 -2
  79. package/build/client/assets/{use-event-source-DPLyo0Bh.js.map → use-event-source-DXlRuRq2.js.map} +1 -1
  80. package/build/client/assets/{user-p2QVtDZI.js → user-DiGtbaa7.js} +2 -2
  81. package/build/client/assets/{user-p2QVtDZI.js.map → user-DiGtbaa7.js.map} +1 -1
  82. package/build/client/img/tiffany.png +0 -0
  83. package/build/server/index.js +10 -4
  84. package/build/server/index.js.map +1 -1
  85. package/package.json +3 -3
  86. package/build/client/assets/_exerciseNumber-DWZNkWZM.js +0 -2
  87. package/build/client/assets/_exerciseNumber_.finished-CpC-flTW.js +0 -2
  88. package/build/client/assets/_layout-BSoUgboG.js +0 -2
  89. package/build/client/assets/_layout-C8fK4Z98.js +0 -2
  90. package/build/client/assets/_layout-C8fK4Z98.js.map +0 -1
  91. package/build/client/assets/_layout-D1A2zp9y.js +0 -2
  92. package/build/client/assets/account-BeKnQB9r.js +0 -2
  93. package/build/client/assets/client-hints-B2pbEa_9.js.map +0 -1
  94. package/build/client/assets/diff-BDeBUdSw.js +0 -2
  95. package/build/client/assets/discord-DdAReDkL.js +0 -2
  96. package/build/client/assets/discord-DdAReDkL.js.map +0 -1
  97. package/build/client/assets/finished-CMGRmsnb.js +0 -2
  98. package/build/client/assets/index-B8k-Gd1G.js +0 -2
  99. package/build/client/assets/index-B8k-Gd1G.js.map +0 -1
  100. package/build/client/assets/index-BDqSZ0-h.js +0 -36
  101. package/build/client/assets/index-CQZ5FyEE.js +0 -2
  102. package/build/client/assets/index-Dc59VwXx.js +0 -2
  103. package/build/client/assets/login-CcuvIoiW.js +0 -2
  104. package/build/client/assets/manifest-1656ae4d.js +0 -1
  105. package/build/client/assets/mdx-CZ_BPVoS.js +0 -2
  106. package/build/client/assets/misc-C1rq7sPa.js +0 -2
  107. package/build/client/assets/onboarding-CfXLKsN3.js +0 -2
  108. package/build/client/assets/presence-BF7lWuVd.js +0 -28
  109. package/build/client/assets/presence-BF7lWuVd.js.map +0 -1
@@ -1,36 +0,0 @@
1
- function Ue(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(o,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve={exports:{}},Y={},te={exports:{}},h={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var fe;function Be(){if(fe)return h;fe=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;function x(n){return n===null||typeof n!="object"?null:(n=f&&n[f]||n["@@iterator"],typeof n=="function"?n:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,S={};function y(n,i,m){this.props=n,this.context=i,this.refs=S,this.updater=m||R}y.prototype.isReactComponent={},y.prototype.setState=function(n,i){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,i,"setState")},y.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function L(){}L.prototype=y.prototype;function D(n,i,m){this.props=n,this.context=i,this.refs=S,this.updater=m||R}var U=D.prototype=new L;U.constructor=D,O(U,y.prototype),U.isPureReactComponent=!0;var le=Array.isArray,ie=Object.prototype.hasOwnProperty,X={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function se(n,i,m){var E,g={},C=null,P=null;if(i!=null)for(E in i.ref!==void 0&&(P=i.ref),i.key!==void 0&&(C=""+i.key),i)ie.call(i,E)&&!ue.hasOwnProperty(E)&&(g[E]=i[E]);var b=arguments.length-2;if(b===1)g.children=m;else if(1<b){for(var _=Array(b),$=0;$<b;$++)_[$]=arguments[$+2];g.children=_}if(n&&n.defaultProps)for(E in b=n.defaultProps,b)g[E]===void 0&&(g[E]=b[E]);return{$$typeof:e,type:n,key:C,ref:P,props:g,_owner:X.current}}function je(n,i){return{$$typeof:e,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function Z(n){return typeof n=="object"&&n!==null&&n.$$typeof===e}function ke(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(m){return i[m]})}var ce=/\/+/g;function ee(n,i){return typeof n=="object"&&n!==null&&n.key!=null?ke(""+n.key):i.toString(36)}function q(n,i,m,E,g){var C=typeof n;(C==="undefined"||C==="boolean")&&(n=null);var P=!1;if(n===null)P=!0;else switch(C){case"string":case"number":P=!0;break;case"object":switch(n.$$typeof){case e:case t:P=!0}}if(P)return P=n,g=g(P),n=E===""?"."+ee(P,0):E,le(g)?(m="",n!=null&&(m=n.replace(ce,"$&/")+"/"),q(g,i,m,"",function($){return $})):g!=null&&(Z(g)&&(g=je(g,m+(!g.key||P&&P.key===g.key?"":(""+g.key).replace(ce,"$&/")+"/")+n)),i.push(g)),1;if(P=0,E=E===""?".":E+":",le(n))for(var b=0;b<n.length;b++){C=n[b];var _=E+ee(C,b);P+=q(C,i,m,_,g)}else if(_=x(n),typeof _=="function")for(n=_.call(n),b=0;!(C=n.next()).done;)C=C.value,_=E+ee(C,b++),P+=q(C,i,m,_,g);else if(C==="object")throw i=String(n),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return P}function V(n,i,m){if(n==null)return n;var E=[],g=0;return q(n,E,"","",function(C){return i.call(m,C,g++)}),E}function $e(n){if(n._status===-1){var i=n._result;i=i(),i.then(function(m){(n._status===0||n._status===-1)&&(n._status=1,n._result=m)},function(m){(n._status===0||n._status===-1)&&(n._status=2,n._result=m)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)return n._result.default;throw n._result}var j={current:null},J={transition:null},Ie={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:J,ReactCurrentOwner:X};return h.Children={map:V,forEach:function(n,i,m){V(n,function(){i.apply(this,arguments)},m)},count:function(n){var i=0;return V(n,function(){i++}),i},toArray:function(n){return V(n,function(i){return i})||[]},only:function(n){if(!Z(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},h.Component=y,h.Fragment=r,h.Profiler=a,h.PureComponent=D,h.StrictMode=o,h.Suspense=c,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,h.cloneElement=function(n,i,m){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var E=O({},n.props),g=n.key,C=n.ref,P=n._owner;if(i!=null){if(i.ref!==void 0&&(C=i.ref,P=X.current),i.key!==void 0&&(g=""+i.key),n.type&&n.type.defaultProps)var b=n.type.defaultProps;for(_ in i)ie.call(i,_)&&!ue.hasOwnProperty(_)&&(E[_]=i[_]===void 0&&b!==void 0?b[_]:i[_])}var _=arguments.length-2;if(_===1)E.children=m;else if(1<_){b=Array(_);for(var $=0;$<_;$++)b[$]=arguments[$+2];E.children=b}return{$$typeof:e,type:n.type,key:g,ref:C,props:E,_owner:P}},h.createContext=function(n){return n={$$typeof:u,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:l,_context:n},n.Consumer=n},h.createElement=se,h.createFactory=function(n){var i=se.bind(null,n);return i.type=n,i},h.createRef=function(){return{current:null}},h.forwardRef=function(n){return{$$typeof:d,render:n}},h.isValidElement=Z,h.lazy=function(n){return{$$typeof:p,_payload:{_status:-1,_result:n},_init:$e}},h.memo=function(n,i){return{$$typeof:v,type:n,compare:i===void 0?null:i}},h.startTransition=function(n){var i=J.transition;J.transition={};try{n()}finally{J.transition=i}},h.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},h.useCallback=function(n,i){return j.current.useCallback(n,i)},h.useContext=function(n){return j.current.useContext(n)},h.useDebugValue=function(){},h.useDeferredValue=function(n){return j.current.useDeferredValue(n)},h.useEffect=function(n,i){return j.current.useEffect(n,i)},h.useId=function(){return j.current.useId()},h.useImperativeHandle=function(n,i,m){return j.current.useImperativeHandle(n,i,m)},h.useInsertionEffect=function(n,i){return j.current.useInsertionEffect(n,i)},h.useLayoutEffect=function(n,i){return j.current.useLayoutEffect(n,i)},h.useMemo=function(n,i){return j.current.useMemo(n,i)},h.useReducer=function(n,i,m){return j.current.useReducer(n,i,m)},h.useRef=function(n){return j.current.useRef(n)},h.useState=function(n){return j.current.useState(n)},h.useSyncExternalStore=function(n,i,m){return j.current.useSyncExternalStore(n,i,m)},h.useTransition=function(){return j.current.useTransition()},h.version="18.2.0",h}var de;function ye(){return de||(de=1,te.exports=Be()),te.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Le=ye(),De=Symbol.for("react.element"),Me=Symbol.for("react.fragment"),Fe=Object.prototype.hasOwnProperty,Te=Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,We={key:!0,ref:!0,__self:!0,__source:!0};function ge(e,t,r){var o,a={},l=null,u=null;r!==void 0&&(l=""+r),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(u=t.ref);for(o in t)Fe.call(t,o)&&!We.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)a[o]===void 0&&(a[o]=t[o]);return{$$typeof:De,type:e,key:l,ref:u,props:a,_owner:Te.current}}Y.Fragment=Me;Y.jsx=ge;Y.jsxs=ge;ve.exports=Y;var It=ve.exports,s=ye();const Ae=Ne(s),Ut=Ue({__proto__:null,default:Ae},[s]);/**
18
- * @remix-run/router v1.15.3
19
- *
20
- * Copyright (c) Remix Software Inc.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE.md file in the root directory of this source tree.
24
- *
25
- * @license MIT
26
- */function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},z.apply(this,arguments)}var G;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(G||(G={}));function w(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ee(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nt(e){let{pathname:t="/",search:r="",hash:o=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function W(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pe||(pe={}));function qe(e,t,r){r===void 0&&(r="/");let o=typeof t=="string"?W(t):t,a=Ce(o.pathname||"/",r);if(a==null)return null;let l=xe(e);Je(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let c=nt(a);u=et(l[d],c)}return u}function Ve(e,t){let{route:r,pathname:o,params:a}=e;return{id:r.id,pathname:o,params:a,data:t[r.id],handle:r.handle}}function xe(e,t,r,o){t===void 0&&(t=[]),r===void 0&&(r=[]),o===void 0&&(o="");let a=(l,u,d)=>{let c={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};c.relativePath.startsWith("/")&&(w(c.relativePath.startsWith(o),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(o.length));let v=B([o,c.relativePath]),p=r.concat(c);l.children&&l.children.length>0&&(w(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),xe(l.children,t,p,v)),!(l.path==null&&!l.index)&&t.push({path:v,score:Xe(v,l.index),routesMeta:p})};return e.forEach((l,u)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,u);else for(let c of _e(l.path))a(l,u,c)}),t}function _e(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(o.length===0)return a?[l,""]:[l];let u=_e(o.join("/")),d=[];return d.push(...u.map(c=>c===""?l:[l,c].join("/"))),a&&d.push(...u),d.map(c=>e.startsWith("/")&&c===""?"/":c)}function Je(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ze(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const ze=/^:[\w-]+$/,Ge=3,He=2,Ye=1,Ke=10,Qe=-2,he=e=>e==="*";function Xe(e,t){let r=e.split("/"),o=r.length;return r.some(he)&&(o+=Qe),t&&(o+=He),r.filter(a=>!he(a)).reduce((a,l)=>a+(ze.test(l)?Ge:l===""?Ye:Ke),o)}function Ze(e,t){return e.length===t.length&&e.slice(0,-1).every((o,a)=>o===t[a])?e[e.length-1]-t[t.length-1]:0}function et(e,t){let{routesMeta:r}=e,o={},a="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],c=u===r.length-1,v=a==="/"?t:t.slice(a.length)||"/",p=tt({path:d.relativePath,caseSensitive:d.caseSensitive,end:c},v);if(!p)return null;Object.assign(o,p.params);let f=d.route;l.push({params:o,pathname:B([a,p.pathname]),pathnameBase:it(B([a,p.pathnameBase])),route:f}),p.pathnameBase!=="/"&&(a=B([a,p.pathnameBase]))}return l}function tt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=rt(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:o.reduce((v,p,f)=>{let{paramName:x,isOptional:R}=p;if(x==="*"){let S=d[f]||"";u=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const O=d[f];return R&&!O?v[x]=void 0:v[x]=(O||"").replace(/%2F/g,"/"),v},{}),pathname:l,pathnameBase:u,pattern:e}}function rt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ee(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,c)=>(o.push({paramName:d,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),o]}function nt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ee(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ce(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function ot(e,t){t===void 0&&(t="/");let{pathname:r,search:o="",hash:a=""}=typeof e=="string"?W(e):e;return{pathname:r?r.startsWith("/")?r:at(r,t):t,search:ut(o),hash:st(a)}}function at(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function re(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function be(e,t){let r=lt(e);return t?r.map((o,a)=>a===e.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function Pe(e,t,r,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=W(e):(a=z({},e),w(!a.pathname||!a.pathname.includes("?"),re("?","pathname","search",a)),w(!a.pathname||!a.pathname.includes("#"),re("#","pathname","hash",a)),w(!a.search||!a.search.includes("#"),re("#","search","hash",a)));let l=e===""||a.pathname==="",u=l?"/":a.pathname,d;if(u==null)d=r;else{let f=t.length-1;if(!o&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),f-=1;a.pathname=x.join("/")}d=f>=0?t[f]:"/"}let c=ot(a,d),v=u&&u!=="/"&&u.endsWith("/"),p=(l||u===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(v||p)&&(c.pathname+="/"),c}const B=e=>e.join("/").replace(/\/\/+/g,"/"),it=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,st=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ct extends Error{}const Bt=function(t,r){r===void 0&&(r=302);let o=r;typeof o=="number"?o={status:o}:typeof o.status>"u"&&(o.status=302);let a=new Headers(o.headers);return a.set("Location",t),new Response(null,z({},o,{headers:a}))};function ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Re=["post","put","patch","delete"];new Set(Re);const dt=["get",...Re];new Set(dt);/**
27
- * React Router v6.22.3
28
- *
29
- * Copyright (c) Remix Software Inc.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE.md file in the root directory of this source tree.
33
- *
34
- * @license MIT
35
- */function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},T.apply(this,arguments)}const ne=s.createContext(null),pt=s.createContext(null),H=s.createContext(null),M=s.createContext(null),K=s.createContext(null),N=s.createContext({outlet:null,matches:[],isDataRoute:!1}),Oe=s.createContext(null);function Lt(e,t){let{relative:r}=t===void 0?{}:t;A()||w(!1);let{basename:o,navigator:a}=s.useContext(M),{hash:l,pathname:u,search:d}=yt(e,{relative:r}),c=u;return o!=="/"&&(c=u==="/"?o:B([o,u])),a.createHref({pathname:c,search:d,hash:l})}function A(){return s.useContext(K)!=null}function oe(){return A()||w(!1),s.useContext(K).location}function we(e){s.useContext(M).static||s.useLayoutEffect(e)}function Dt(){let{isDataRoute:e}=s.useContext(N);return e?Ot():ht()}function ht(){A()||w(!1);let e=s.useContext(ne),{basename:t,future:r,navigator:o}=s.useContext(M),{matches:a}=s.useContext(N),{pathname:l}=oe(),u=JSON.stringify(be(a,r.v7_relativeSplatPath)),d=s.useRef(!1);return we(()=>{d.current=!0}),s.useCallback(function(v,p){if(p===void 0&&(p={}),!d.current)return;if(typeof v=="number"){o.go(v);return}let f=Pe(v,JSON.parse(u),l,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:B([t,f.pathname])),(p.replace?o.replace:o.push)(f,p.state,p)},[t,o,u,l,e])}const mt=s.createContext(null);function vt(e){let t=s.useContext(N).outlet;return t&&s.createElement(mt.Provider,{value:e},t)}function Mt(){let{matches:e}=s.useContext(N),t=e[e.length-1];return t?t.params:{}}function yt(e,t){let{relative:r}=t===void 0?{}:t,{future:o}=s.useContext(M),{matches:a}=s.useContext(N),{pathname:l}=oe(),u=JSON.stringify(be(a,o.v7_relativeSplatPath));return s.useMemo(()=>Pe(e,JSON.parse(u),l,r==="path"),[e,u,l,r])}function Ft(e,t,r,o){A()||w(!1);let{navigator:a}=s.useContext(M),{matches:l}=s.useContext(N),u=l[l.length-1],d=u?u.params:{};u&&u.pathname;let c=u?u.pathnameBase:"/";u&&u.route;let v=oe(),p;if(t){var f;let y=typeof t=="string"?W(t):t;c==="/"||(f=y.pathname)!=null&&f.startsWith(c)||w(!1),p=y}else p=v;let x=p.pathname||"/",R=x;if(c!=="/"){let y=c.replace(/^\//,"").split("/");R="/"+x.replace(/^\//,"").split("/").slice(y.length).join("/")}let O=qe(e,{pathname:R}),S=Ct(O&&O.map(y=>Object.assign({},y,{params:Object.assign({},d,y.params),pathname:B([c,a.encodeLocation?a.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:B([c,a.encodeLocation?a.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),l,r,o);return t&&S?s.createElement(K.Provider,{value:{location:T({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:G.Pop}},S):S}function gt(){let e=Pt(),t=ft(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),r?s.createElement("pre",{style:a},r):null,null)}const Et=s.createElement(gt,null);class xt extends s.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?s.createElement(N.Provider,{value:this.props.routeContext},s.createElement(Oe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _t(e){let{routeContext:t,match:r,children:o}=e,a=s.useContext(ne);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),s.createElement(N.Provider,{value:t},o)}function Ct(e,t,r,o){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),o===void 0&&(o=null),e==null){var l;if((l=r)!=null&&l.errors)e=r.matches;else return null}let u=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let p=u.findIndex(f=>f.route.id&&(d==null?void 0:d[f.route.id]));p>=0||w(!1),u=u.slice(0,Math.min(u.length,p+1))}let c=!1,v=-1;if(r&&o&&o.v7_partialHydration)for(let p=0;p<u.length;p++){let f=u[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(v=p),f.route.id){let{loaderData:x,errors:R}=r,O=f.route.loader&&x[f.route.id]===void 0&&(!R||R[f.route.id]===void 0);if(f.route.lazy||O){c=!0,v>=0?u=u.slice(0,v+1):u=[u[0]];break}}}return u.reduceRight((p,f,x)=>{let R,O=!1,S=null,y=null;r&&(R=d&&f.route.id?d[f.route.id]:void 0,S=f.route.errorElement||Et,c&&(v<0&&x===0?(wt("route-fallback",!1),O=!0,y=null):v===x&&(O=!0,y=f.route.hydrateFallbackElement||null)));let L=t.concat(u.slice(0,x+1)),D=()=>{let U;return R?U=S:O?U=y:f.route.Component?U=s.createElement(f.route.Component,null):f.route.element?U=f.route.element:U=p,s.createElement(_t,{match:f,routeContext:{outlet:p,matches:L,isDataRoute:r!=null},children:U})};return r&&(f.route.ErrorBoundary||f.route.errorElement||x===0)?s.createElement(xt,{location:r.location,revalidation:r.revalidation,component:S,error:R,children:D(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):D()},null)}var ae=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ae||{}),I=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(I||{});function Se(e){let t=s.useContext(ne);return t||w(!1),t}function F(e){let t=s.useContext(pt);return t||w(!1),t}function bt(e){let t=s.useContext(N);return t||w(!1),t}function Q(e){let t=bt(),r=t.matches[t.matches.length-1];return r.route.id||w(!1),r.route.id}function Tt(){return Q(I.UseRouteId)}function Wt(){return F(I.UseNavigation).navigation}function At(){let e=Se(ae.UseRevalidator),t=F(I.UseRevalidator);return s.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function qt(){let{matches:e,loaderData:t}=F(I.UseMatches);return s.useMemo(()=>e.map(r=>Ve(r,t)),[e,t])}function Vt(){let e=F(I.UseLoaderData),t=Q(I.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Jt(e){return F(I.UseRouteLoaderData).loaderData[e]}function Pt(){var e;let t=s.useContext(Oe),r=F(I.UseRouteError),o=Q(I.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[o]}function Rt(){let e=s.useContext(H);return e==null?void 0:e._data}function zt(){let e=s.useContext(H);return e==null?void 0:e._error}function Ot(){let{router:e}=Se(ae.UseNavigateStable),t=Q(I.UseNavigateStable),r=s.useRef(!1);return we(()=>{r.current=!0}),s.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,T({fromRouteId:t},l)))},[e,t])}const me={};function wt(e,t,r){!t&&!me[e]&&(me[e]=!0)}function Gt(e){return vt(e.context)}function Ht(e){let{basename:t="/",children:r=null,location:o,navigationType:a=G.Pop,navigator:l,static:u=!1,future:d}=e;A()&&w(!1);let c=t.replace(/^\/*/,"/"),v=s.useMemo(()=>({basename:c,navigator:l,static:u,future:T({v7_relativeSplatPath:!1},d)}),[c,d,l,u]);typeof o=="string"&&(o=W(o));let{pathname:p="/",search:f="",hash:x="",state:R=null,key:O="default"}=o,S=s.useMemo(()=>{let y=Ce(p,c);return y==null?null:{location:{pathname:y,search:f,hash:x,state:R,key:O},navigationType:a}},[c,p,f,x,R,O,a]);return S==null?null:s.createElement(M.Provider,{value:v},s.createElement(K.Provider,{children:r,value:S}))}function Yt(e){let{children:t,errorElement:r,resolve:o}=e;return s.createElement(jt,{resolve:o,errorElement:r},s.createElement(kt,null,t))}var k=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(k||{});const St=new Promise(()=>{});class jt extends s.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:o}=this.props,a=null,l=k.pending;if(!(o instanceof Promise))l=k.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>o});else if(this.state.error){l=k.error;let u=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>u})}else o._tracked?(a=o,l=a._error!==void 0?k.error:a._data!==void 0?k.success:k.pending):(l=k.pending,Object.defineProperty(o,"_tracked",{get:()=>!0}),a=o.then(u=>Object.defineProperty(o,"_data",{get:()=>u}),u=>Object.defineProperty(o,"_error",{get:()=>u})));if(l===k.error&&a._error instanceof ct)throw St;if(l===k.error&&!r)throw a._error;if(l===k.error)return s.createElement(H.Provider,{value:a,children:r});if(l===k.success)return s.createElement(H.Provider,{value:a,children:t});throw a}}function kt(e){let{children:t}=e,r=Rt(),o=typeof t=="function"?t(r):t;return s.createElement(s.Fragment,null,o)}function Kt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:s.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:s.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:s.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{Ut as $,Yt as A,Jt as B,zt as C,ne as D,M as N,Gt as O,Ae as R,Pt as a,Mt as b,Wt as c,Dt as d,At as e,ye as f,Bt as g,Kt as h,ft as i,It as j,$t as k,qt as l,qe as m,Ne as n,Tt as o,N as p,yt as q,s as r,Nt as s,pt as t,oe as u,Ht as v,Ft as w,Lt as x,W as y,Vt as z};
36
- //# sourceMappingURL=index-BDqSZ0-h.js.map
@@ -1,2 +0,0 @@
1
- import{j as e}from"./index-BDqSZ0-h.js";import{E as t}from"./index-BymJEf3X.js";import{P as a,u as l}from"./progress-mfa_5CZx.js";import{E as i}from"./epic-video-CxRPT-8l.js";import{G as m}from"./error-boundary-tJSWbP6w.js";import{M as n,E as c}from"./mdx-CZ_BPVoS.js";import{c as d}from"./misc-C1rq7sPa.js";import{u as p,L as x}from"./components-BM_XUa9h.js";import"./clsx-B-dksMZM.js";import"./loading-DsjO-T0W.js";import"./client-hints-B2pbEa_9.js";import"./index-Dc59VwXx.js";import"./index-B8k-Gd1G.js";import"./tooltip-BlVFw-is.js";import"./progress-bar-BmszwN_j.js";function h({exercise:r}){const s=l(r.exerciseNumber);return e.jsx("li",{children:e.jsxs(x,{className:d("relative flex items-center gap-4 px-4 py-3 text-lg font-semibold transition after:absolute after:right-10 after:-translate-x-2 after:opacity-0 after:transition after:content-['→'] hover:bg-gray-50 hover:after:translate-x-0 hover:after:opacity-100 dark:hover:bg-white/5",s),to:`${r.exerciseNumber.toString().padStart(2,"0")}`,children:[e.jsx("span",{className:"text-xs font-normal tabular-nums opacity-50",children:r.exerciseNumber}),e.jsx("span",{children:r.title})]})},r.exerciseNumber)}const f={h1:()=>null};function G(){const r=p(),s=e.jsxs("ul",{className:"flex flex-col divide-y divide-border dark:divide-border/50",children:[e.jsx("strong",{className:"px-10 pb-3 font-mono text-xs uppercase",children:"Exercises"}),r.exercises.map(o=>e.jsx(h,{exercise:o},o.exerciseNumber))]});return e.jsxs("main",{className:"relative flex h-full w-full max-w-5xl flex-col justify-between border-r md:w-3/4 xl:w-2/3",children:[e.jsxs("article",{id:r.articleId,className:"shadow-on-scrollbox flex w-full flex-1 flex-col gap-12 overflow-y-scroll px-3 py-4 pt-6 scrollbar-thin scrollbar-thumb-scrollbar md:px-10 md:py-12 md:pt-16",children:[e.jsx("div",{children:e.jsx("h1",{className:"px-10 text-[clamp(3rem,6vw,8.5rem)] font-extrabold leading-none",children:r.title})}),e.jsxs("div",{className:"w-full max-w-none scroll-pt-6 border-t px-3 pt-3 md:px-10 md:pt-8",children:[e.jsx("h2",{className:"pb-5 font-mono text-xs font-semibold uppercase",children:"Intro"}),r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code?e.jsx(i,{epicVideoInfosPromise:r.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(n,{code:r.workshopReadme.compiled.code,components:f})})}):r.workshopReadme.compiled.status==="error"?e.jsxs("div",{className:"text-red-500",children:["There was an error:",e.jsx("pre",{children:r.workshopReadme.compiled.error})]}):"No instructions yet..."]}),e.jsx("div",{className:"pb-5 pt-10",children:r.workshopReadme.compiled.status==="success"&&r.workshopReadme.compiled.code&&r.workshopReadme.compiled.code.length>500?s:null})]}),e.jsx(t,{elementQuery:`#${r.articleId}`}),e.jsx(a,{type:"workshop-instructions",className:"h-14 border-t px-6"}),e.jsx("div",{className:"flex h-16 justify-center border-t",children:e.jsx(c,{file:r.workshopReadme.file,relativePath:r.workshopReadme.relativePath})})]})}function S(){return e.jsx(m,{})}export{S as ErrorBoundary,G as default};
2
- //# sourceMappingURL=index-CQZ5FyEE.js.map
@@ -1,2 +0,0 @@
1
- import{r as j,j as V}from"./index-BDqSZ0-h.js";import{Z as Ge,a as Xe,b as Qe,c as Ye,d as I,e as xe,f as er,g as rr,h as tr,i as ye,j as ge,k as be,l as he,m as Oe,n as Se,o as we,p as Pe,q as Ee,r as Ae,s as Ve,t as je,u as nr,v as ar,w as ir,z as te}from"./index-B8k-Gd1G.js";import{I as ne}from"./misc-C1rq7sPa.js";import{S as or}from"./tooltip-BlVFw-is.js";import{a as Ce,u as ur}from"./client-hints-B2pbEa_9.js";import{a as sr,e as lr}from"./components-BM_XUa9h.js";function Ie(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function O(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ie(Object(t),!0).forEach(function(n){dr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function dr(e,r,t){return r=cr(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function fr(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cr(e){var r=fr(e,"string");return typeof r=="symbol"?r:String(r)}function vr(e,r){var t=new FormData(e,r);if(r&&r.type==="submit"&&r.name!==""){var n=t.getAll(r.name);n.includes(r.value)||t.append(r.name,r.value)}return t}function F(e){return e?e.split(/\.|(\[\d*\])/).reduce((r,t)=>{if(typeof t<"u"&&t!=="")if(t.startsWith("[")&&t.endsWith("]")){var n=t.slice(1,-1);r.push(Number(n))}else r.push(t);return r},[]):[]}function Z(e){return e.reduce((r,t)=>typeof t=="number"?"".concat(r,"[").concat(Number.isNaN(t)?"":t,"]"):r===""||t===""?[r,t].join(""):[r,t].join("."),"")}function J(e,r){return typeof r<"u"?Z([...F(e),r]):e??""}function Y(e,r){var t=F(e),n=F(r);return t.length>=n.length&&n.every((i,a)=>t[a]===i)}function D(e,r,t){for(var n=F(r),i=n.length,a=i-1,u=-1,o=e;o!=null&&++u<i;){var l,c=n[u],m=n[u+1],p=u!=a?(l=o[c])!==null&&l!==void 0?l:typeof m=="number"?[]:{}:t(o[c]);o[c]=p,o=o[c]}}function x(e,r){var t=e;for(var n of F(r)){if(typeof t>"u"||t==null)break;if(T(t)&&typeof n=="string")t=t[n];else if(Array.isArray(t)&&typeof n=="number")t=t[n];else return}return t}function T(e){return!!e&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function mr(e){return typeof File>"u"?!1:e instanceof File}function M(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(T(e)){var t=Object.keys(e).sort().reduce((n,i)=>{var a=M(e[i],r);return typeof a<"u"&&(n[i]=a),n},{});return Object.keys(t).length===0?void 0:t}if(Array.isArray(e))return e.length===0?void 0:e.map(n=>M(n,r));if(!(typeof e=="string"&&e===""||e===null||mr(e)&&(!r||e.size===0)))return e}function fe(e,r){var t,n={},i=(t=r==null?void 0:r.resolve)!==null&&t!==void 0?t:m=>m;function a(m,p){var b=M(i(m));typeof b<"u"&&(n[p]=b)}function u(m,p){a(m,p);for(var[b,g]of Object.entries(m)){var h=p?"".concat(p,".").concat(b):b;Array.isArray(g)?o(g,h):g&&T(g)?u(g,h):a(g,h)}}function o(m,p){a(m,p);for(var b=0;b<m.length;b++){var g=m[b],h="".concat(p,"[").concat(b,"]");Array.isArray(g)?o(g,h):g&&T(g)?u(g,h):a(g,h)}}if(e){var l,c=(l=r==null?void 0:r.prefix)!==null&&l!==void 0?l:"";Array.isArray(e)?o(e,c):u(e,c)}return n}function ee(e,r){if(!e)throw new Error(r)}function q(){return(Date.now()*Math.random()).toString(36)}function K(e){return JSON.parse(JSON.stringify(e))}function pr(e){return e instanceof Element&&(e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||e.tagName==="BUTTON")}function ae(e){return pr(e)&&e.type!=="submit"&&e.type!=="button"&&e.type!=="reset"}function yr(e){var r,t,n=e.target,i=e.submitter;return(r=(t=i==null?void 0:i.getAttribute("formaction"))!==null&&t!==void 0?t:n.getAttribute("action"))!==null&&r!==void 0?r:"".concat(location.pathname).concat(location.search)}function gr(e){var r,t=e.target,n=e.submitter,i=(r=n==null?void 0:n.getAttribute("formenctype"))!==null&&r!==void 0?r:t.enctype;return i==="multipart/form-data"?i:"application/x-www-form-urlencoded"}function br(e){var r,t,n=e.target,i=e.submitter,a=(r=(t=i==null?void 0:i.getAttribute("formmethod"))!==null&&t!==void 0?t:n.getAttribute("method"))===null||r===void 0?void 0:r.toUpperCase();switch(a){case"POST":case"PUT":case"PATCH":case"DELETE":return a}return"GET"}function hr(e,r){if(ee(!!e,"Failed to submit the form. The element provided is null or undefined."),typeof e.requestSubmit=="function")e.requestSubmit(r);else{var t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:r});e.dispatchEvent(t)}}var z="__intent__",ie="__state__";function Re(e){var r=e.get(z),t=e.get(ie);ee((typeof r=="string"||r===null)&&(typeof t=="string"||t===null),'The input name "'.concat(z,'" and "').concat(ie,'" are reserved by Conform. Please use another name for your input.'));var n={payload:{},fields:new Set,intent:wr(r)};t&&(n.state=JSON.parse(t));var i=function(l){if(a===z||a===ie)return 1;n.fields.add(a),D(n.payload,a,c=>c?Array.isArray(c)?c.concat(l):[c,l]:l)};for(var[a,u]of e.entries())i(u);return n}function Or(e,r){var t=Re(e),n=t.intent;if(n)switch(n.type){case"update":{var i=J(n.payload.name,n.payload.index),a=B(n.payload.value);typeof a<"u"&&(i?D(t.payload,i,()=>a):t.payload=a);break}case"reset":{var u=J(n.payload.name,n.payload.index);u?D(t.payload,u,()=>{}):t.payload={};break}case"insert":{se(t.payload,{type:n.type,payload:O(O({},n.payload),{},{defaultValue:B(n.payload.defaultValue)})});break}case"remove":case"reorder":{se(t.payload,n);break}}var o=r.resolve(t.payload,n),l=c=>Sr(O(O({},t),{},{value:c.value,error:c.error}));return o instanceof Promise?o.then(l):l(o)}function Sr(e){return e.intent||!e.value||e.error?{status:e.intent?void 0:"error",payload:e.payload,error:typeof e.error<"u"?e.error:{},reply(r){return Ne(e,r)}}:{status:"success",payload:e.payload,value:e.value,reply(r){return Ne(e,r)}}}function Ne(e){var r,t,n,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if("resetForm"in a&&a.resetForm||((r=e.intent)===null||r===void 0?void 0:r.type)==="reset"&&((t=e.intent.payload.name)!==null&&t!==void 0?t:"")==="")return{initialValue:null};if("hideFields"in a&&a.hideFields)for(var u of a.hideFields){var o=x(e.payload,u);typeof o<"u"&&D(e.payload,u,()=>{})}var l="formErrors"in a||"fieldErrors"in a?M(O({"":(n=a.formErrors)!==null&&n!==void 0?n:null},a.fieldErrors)):null,c=e.error||l?O(O({},e.error),l):void 0;return{status:e.intent?void 0:c?"error":"success",intent:e.intent?e.intent:void 0,initialValue:(i=M(e.payload,typeof document<"u"))!==null&&i!==void 0?i:{},error:c,state:e.state,fields:Array.from(e.fields)}}function wr(e){if(!e)return null;var r=JSON.parse(e);if(typeof r.type!="string"||typeof r.payload>"u")throw new Error("Unknown form control intent");return r}function Pr(e){return JSON.stringify(e)}function ue(e,r){var t;switch(ee(Array.isArray(e),"Failed to update list. The value is not an array."),r.type){case"insert":e.splice((t=r.payload.index)!==null&&t!==void 0?t:e.length,0,r.payload.defaultValue);break;case"remove":e.splice(r.payload.index,1);break;case"reorder":e.splice(r.payload.to,0,...e.splice(r.payload.from,1));break;default:throw new Error("Unknown list intent received")}}function se(e,r){D(e,r.payload.name,t=>{var n=t??[];return ue(n,r),n})}var le=Symbol.for("root");function Q(e,r,t){var n=Object.keys(e).sort((l,c)=>c.localeCompare(l)),i={},a=function(){var c=e[u];Y(u,r)&&u!==r&&(D(i,u,m=>typeof m>"u"?c:(m[le]=c,m)),delete e[u])};for(var u of n)a();var o=t(x(i,r));Object.assign(e,fe(o,{resolve(l){if(T(l)||Array.isArray(l)){var c;return(c=l[le])!==null&&c!==void 0?c:null}return l},prefix:r}))}function Fe(e,r,t){Q(e,r.payload.name,n=>{var i=n??[];switch(r.type){case"insert":ue(i,{type:r.type,payload:O(O({},r.payload),{},{defaultValue:t==null?void 0:t(r.payload.defaultValue)})});break;default:ue(i,r);break}return i})}function B(e){return T(e)?Object.entries(e).reduce((r,t)=>{var[n,i]=t;return r[n]=B(i),r},{}):Array.isArray(e)?e.map(B):e instanceof Date?e.toISOString():typeof e=="boolean"?e?"on":void 0:typeof e=="number"?e.toString():e??void 0}function Te(e,r){var t,n,i,a,u,o=r?void 0:e.lastResult,l=e.defaultValue?B(e.defaultValue):{},c=(t=o==null?void 0:o.initialValue)!==null&&t!==void 0?t:l,m={formId:e.formId,isValueUpdated:!1,submissionStatus:o==null?void 0:o.status,defaultValue:l,initialValue:c,value:c,constraint:(n=e.constraint)!==null&&n!==void 0?n:{},validated:(i=o==null||(a=o.state)===null||a===void 0?void 0:a.validated)!==null&&i!==void 0?i:{},key:r?O({"":q()},H(l)):H(l),error:(u=o==null?void 0:o.error)!==null&&u!==void 0?u:{}};return Ue(m,o==null?void 0:o.intent,o==null?void 0:o.fields),m}function H(e,r){return Object.entries(fe(e,{prefix:r})).reduce((t,n)=>{var[i,a]=n;if(Array.isArray(a))for(var u=0;u<a.length;u++)t[J(i,u)]=q();return t},{})}function ke(e,r){for(var t of Object.keys(e.error).concat(r??[]))e.validated[t]=!0}function Ue(e,r,t,n){if(!r){ke(e,t);return}switch(r.type){case"validate":{r.payload.name?e.validated[r.payload.name]=!0:ke(e,t);break}case"update":{var{validated:i,value:a}=r.payload,u=J(r.payload.name,r.payload.index);typeof a<"u"&&De(e,u??"",B(a)),typeof i<"u"&&(u?Q(e.validated,u,()=>{}):e.validated={},i?((T(a)||Array.isArray(a))&&Object.assign(e.validated,fe(a,{resolve(){return!0},prefix:u})),e.validated[u??""]=!0):u&&delete e.validated[u]);break}case"reset":{var o=J(r.payload.name,r.payload.index),l=x(e.defaultValue,o);De(e,o,l),o?(Q(e.validated,o,()=>{}),delete e.validated[o]):e.validated={};break}case"insert":case"remove":case"reorder":{n&&(e.initialValue=K(e.initialValue),e.key=K(e.key),Fe(e.key,r,c=>!Array.isArray(c)&&!T(c)?q():Object.assign(H(c),{[le]:q()})),se(e.initialValue,r)),Fe(e.validated,r),e.validated[r.payload.name]=!0;break}}e.error=Object.entries(e.error).reduce((c,m)=>{var[p,b]=m;return e.validated[p]&&(c[p]=b),c},{})}function De(e,r,t){if(r===""){e.initialValue=t,e.value=t,e.key=H(t);return}e.initialValue=K(e.initialValue),e.value=K(e.value),e.key=K(e.key),D(e.initialValue,r,()=>t),D(e.value,r,()=>t),(T(t)||Array.isArray(t))&&(Q(e.key,r,()=>{}),Object.assign(e.key,H(t,r))),e.key[r]=q()}function W(e){var r={};return new Proxy(r,{get(t,n,i){var a;if(typeof n=="string")return(a=r[n])!==null&&a!==void 0?a:r[n]=e(n,i)}})}function oe(e){var r=M(e);return W((t,n)=>{if(t==="")return r;var i=F(t),a=Z(i.slice(0,-1)),u=Z(i.slice(-1)),o=n[a];return x(o,u)})}function Er(e){return W((r,t)=>{var n,i=e[r];if(!i){for(var a=F(r),u=a.length-1;u>=0;u--){var o=a[u];if(typeof o=="number"&&!Number.isNaN(o)){a[u]=Number.NaN;break}}var l=Z(a);r!==l&&(i=t[l])}return(n=i)!==null&&n!==void 0?n:{}})}function Ar(e){return W((r,t)=>{var n=e[r],i=F(r);if(i.length===0)return n;var a=t[Z(i.slice(0,-1))];return typeof a>"u"?n:"".concat(a,"/").concat(n??i.at(-1))})}function Vr(e){return W(r=>{var t=Object.keys(e);if(r==="")return t.length===0;for(var n of t)if(Y(n,r)&&typeof e[n]<"u")return!1;return!0})}function jr(e,r,t){return W(n=>JSON.stringify(e[n])!==JSON.stringify(r[n],(i,a)=>n===""&&i===""&&a?Object.entries(a).reduce((u,o)=>{var[l,c]=o;return t(l)?Object.assign(u??{},{[l]:c}):u},void 0):a))}function R(e,r,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:(g,h)=>JSON.stringify(g)!==JSON.stringify(h);if(n&&e!==r){var a,u,o=(a=n.prefix)!==null&&a!==void 0?a:[],l=(u=n.name)!==null&&u!==void 0?u:[],c=o.length===0?l:Array.from(new Set([...Object.keys(e),...Object.keys(r)])),m=function(h){if(o.length===0||l.includes(h)||o.some($=>Y(h,$))){var _;if((_=t[h])!==null&&_!==void 0||(t[h]=i(e[h],r[h])),t[h])return{v:!0}}},p;for(var b of c)if(p=m(b),p)return p.v}return!1}function Ir(e){var r=[],t=e,n=Te(e),i=u(n);function a(){return document.forms.namedItem(t.formId)}function u(s){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,d=arguments.length>2?arguments[2]:void 0,v=!d||f.defaultValue!==s.defaultValue?oe(s.defaultValue):d.defaultValue,w=s.initialValue===s.defaultValue?v:!d||f.initialValue!==s.initialValue?oe(s.initialValue):d.initialValue,S=s.value===s.initialValue?w:!d||f.value!==s.value?oe(s.value):d.value;return{submissionStatus:s.submissionStatus,defaultValue:v,initialValue:w,value:S,error:!d||f.error!==s.error?s.error:d.error,validated:s.validated,constraint:!d||f.constraint!==s.constraint?Er(s.constraint):d.constraint,key:!d||f.key!==s.key?Ar(s.key):d.key,valid:!d||f.error!==s.error?Vr(s.error):d.valid,dirty:!d||f.defaultValue!==s.defaultValue||f.value!==s.value?jr(v,S,P=>{var A,L;return(A=(L=t.shouldDirtyConsider)===null||L===void 0?void 0:L.call(t,P))!==null&&A!==void 0?A:!0}):d.dirty}}function o(s){var f=n,d=i,v=u(s,f,d);n=s,i=v;var w={value:{},error:{},initialValue:{},key:{},valid:{},dirty:{}};for(var S of r){var P,A=(P=S.getSubject)===null||P===void 0?void 0:P.call(S);(!A||A.formId&&f.formId!==s.formId||A.status&&d.submissionStatus!==v.submissionStatus||R(d.error,v.error,w.error,A.error)||R(d.initialValue,v.initialValue,w.initialValue,A.initialValue)||R(d.key,v.key,w.key,A.key,(L,G)=>L!==G)||R(d.valid,v.valid,w.valid,A.valid,l)||R(d.dirty,v.dirty,w.dirty,A.dirty,l)||R(d.value,v.value,w.value,A.value))&&S.callback()}}function l(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return s!==f}function c(){return JSON.stringify({validated:n.validated})}function m(s){var f=s.target,d=s.submitter;ee(f===a(),"The submit event is dispatched by form#".concat(f.id," instead of form#").concat(t.formId));var v=vr(f,d),w={formData:v,action:yr(s),encType:gr(s),method:br(s)};if(typeof(t==null?void 0:t.onValidate)>"u")return w;var S=t.onValidate({form:f,formData:v,submitter:d});if(S.status==="success"||S.error!==null){var P=S.reply();ce(O(O({},P),{},{status:P.status!=="success"?P.status:void 0}))}return O(O({},w),{},{submission:S})}function p(s){var f=a(),d=s.target;return!f||!ae(d)||d.form!==f||!d.form.isConnected||d.name===""?null:d}function b(s,f){var{shouldValidate:d="onSubmit",shouldRevalidate:v=d}=t,w=n.validated[s.name];return w?v===f&&(f==="onInput"||n.isValueUpdated):d===f}function g(s){var f=new FormData(s),d=Re(f);o(O(O({},n),{},{isValueUpdated:!0,value:d.payload}))}function h(s){var f=p(s);!f||!f.form||(s.defaultPrevented||!b(f,"onInput")?g(f.form):re({type:"validate",payload:{name:f.name}}))}function _(s){var f=p(s);!f||s.defaultPrevented||!b(f,"onBlur")||re({type:"validate",payload:{name:f.name}})}function $(){o(Te(t,!0))}function ze(s){var f=a();s.type!=="reset"||s.target!==f||s.defaultPrevented||$()}function ce(s){var f,d,v=a();if(!s.initialValue){$();return}var w=Object.entries((f=s.error)!==null&&f!==void 0?f:{}).reduce((A,L)=>{var[G,me]=L,pe=me===null?n.error[G]:me;return pe&&(A[G]=pe),A},{}),S=O(O({},n),{},{isValueUpdated:!1,submissionStatus:s.status,value:s.initialValue,validated:O(O({},n.validated),(d=s.state)===null||d===void 0?void 0:d.validated),error:w});if(Ue(S,s.intent,s.fields,!0),o(S),v&&s.status==="error"){for(var P of v.elements)if(ae(P)&&n.error[P.name]){P.focus();break}}}function Je(s){var f=t.formId,d=t.lastResult;Object.assign(t,s),t.formId!==f?$():s.lastResult&&s.lastResult!==d&&ce(s.lastResult)}function qe(s,f){var d={callback:s,getSubject:f};return r.push(d),()=>{r=r.filter(v=>v!==d)}}function He(){return i}function re(s){var f=a(),d=document.createElement("button"),v=ve(s);d.name=v.name,d.value=v.value,d.hidden=!0,d.formNoValidate=!0,f==null||f.appendChild(d),hr(f,d),f==null||f.removeChild(d)}function ve(s){return{name:z,value:Pr(s),form:t.formId,formNoValidate:!0}}function C(s){var f=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return re({type:s,payload:v})};return Object.assign(f,{getButtonProps(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ve({type:s,payload:d})}})}function We(){var s=new MutationObserver(f=>{var d=a();if(d)for(var v of f){var w=v.type==="childList"?[...v.addedNodes,...v.removedNodes]:[v.target];for(var S of w){var P=ae(S)?S:S instanceof HTMLElement?S.querySelector("input,select,textarea"):null;if((P==null?void 0:P.form)===d){g(d);return}}}});return s.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["form","name"]}),()=>{s.disconnect()}}return{getFormId(){return n.formId},submit:m,onReset:ze,onInput:h,onBlur:_,onUpdate:Je,validate:C("validate"),reset:C("reset"),update:C("update"),insert:C("insert"),remove:C("remove"),reorder:C("reorder"),subscribe:qe,getState:He,getSerializedState:c,observe:We}}function _e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function N(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?_e(Object(t),!0).forEach(function(n){Nr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Nr(e,r,t){return r=kr(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Fr(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(r.indexOf(i)>=0)&&(t[i]=e[i]);return t}function Me(e,r){if(e==null)return{};var t=Fr(e,r),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Tr(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function kr(e){var r=Tr(e,"string");return typeof r=="symbol"?r:String(r)}var Dr=["onSubmit"],_r=Symbol("wrapped");function Lr(e,r){var t=j.useCallback(n=>e.subscribe(n,()=>r==null?void 0:r.current),[e,r]);return j.useSyncExternalStore(t,e.getState,e.getState)}function Zr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=j.useRef(e);return r.current=e,r}function U(e,r,t,n){if(r==="status"||r==="formId")e.current[r]=!0;else if(typeof t<"u"&&typeof n<"u"){var i,a;e.current[r]=N(N({},e.current[r]),{},{[t]:((i=(a=e.current[r])===null||a===void 0?void 0:a[t])!==null&&i!==void 0?i:[]).concat(n)})}}function Be(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=n?"".concat(e.getFormId(),"-").concat(n):e.getFormId(),a=e.getState();return new Proxy({id:i,name:n,errorId:"".concat(i,"-error"),descriptionId:"".concat(i,"-description"),get initialValue(){return a.initialValue[n]},get value(){return a.value[n]},get errors(){return a.error[n]},get key(){return a.key[n]},get valid(){return a.valid[n]},get dirty(){return a.dirty[n]},get allErrors(){if(n==="")return a.error;var u={};for(var[o,l]of Object.entries(a.error))Y(o,n)&&(u[o]=l);return u},get getFieldset(){return()=>new Proxy({},{get(u,o,l){return typeof o=="string"?$e(e,r,t,n,o):Reflect.get(u,o,l)}})}},{get(u,o,l){if(a===t)switch(o){case"id":case"errorId":case"descriptionId":U(r,"formId");break;case"key":case"initialValue":case"value":case"valid":case"dirty":U(r,o,"name",n);break;case"errors":case"allErrors":U(r,"error",o==="errors"?"name":"prefix",n);break}return Reflect.get(u,o,l)}})}function $e(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,a=typeof i>"u"?n:Z([...F(n),i]);return new Proxy({},{get(u,o,l){var c,m=Be(e,r,t,a),p=e.getState();switch(o){case"formId":return p===t&&U(r,"formId"),e.getFormId();case"required":case"minLength":case"maxLength":case"min":case"max":case"pattern":case"step":case"multiple":return(c=p.constraint[a])===null||c===void 0?void 0:c[o];case"getFieldList":return()=>{var b,g=(b=p.initialValue[a])!==null&&b!==void 0?b:[];if(p===t&&U(r,"initialValue","name",a),!Array.isArray(g))throw new Error("The initial value at the given name is not a list");return Array(g.length).fill(0).map((h,_)=>$e(e,r,t,a,_))}}return Reflect.get(m,o,l)}})}function Cr(e,r,t,n){return new Proxy({},{get(i,a,u){var o=Be(e,r,t),l=e.getState();switch(a){case"context":return{[_r]:e};case"status":return l===t&&U(r,"status"),l.submissionStatus;case"validate":case"update":case"reset":case"insert":case"remove":case"reorder":return e[a];case"onSubmit":return e.submit;case"noValidate":return n}return Reflect.get(o,a,u)}})}function Rr(e){var{onSubmit:r}=e,t=Me(e,Dr),n=Ir(t);return N(N({},n),{},{submit(i){var a=i.nativeEvent,u=n.submit(a);if(!u.submission||u.submission.status==="success"||u.submission.error===null){if(!u.formData.has(z)){var o;(o=r)===null||o===void 0||o(i,u)}}else i.preventDefault()},onUpdate(i){r=i.onSubmit,n.onUpdate(i)}})}var Ur=["id"],de=typeof document>"u"?j.useEffect:j.useLayoutEffect;function Mr(e){var r=j.useId();return e??r}function Br(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,[r,t]=j.useState(e);return de(()=>{r||t(!0)},[r]),r}function $r(e){var{id:r}=e,t=Me(e,Ur),n=Mr(r),[i]=j.useState(()=>Rr(N(N({},t),{},{formId:n})));de(()=>{var c=i.observe();return document.addEventListener("input",i.onInput),document.addEventListener("focusout",i.onBlur),document.addEventListener("reset",i.onReset),()=>{c(),document.removeEventListener("input",i.onInput),document.removeEventListener("focusout",i.onBlur),document.removeEventListener("reset",i.onReset)}},[i]),de(()=>{i.onUpdate(N(N({},t),{},{formId:n}))});var a=Zr(),u=Lr(i,a),o=Br(e.defaultNoValidate),l=Cr(i,a,u,o);return[l,l.getFieldset()]}function Ke(e){for(var r in e)e[r]===void 0&&delete e[r];return e}function Kr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof r.ariaAttributes<"u"&&!r.ariaAttributes)return{};var t=r.ariaInvalid==="allErrors"?!e.valid:typeof e.errors<"u",n=r.ariaDescribedBy;return Ke({"aria-invalid":t||void 0,"aria-describedby":t?"".concat(e.errorId," ").concat(n??"").trim():n})}function zr(e,r){return Ke(N({id:e.id,onSubmit:e.onSubmit,noValidate:e.noValidate},Kr(e,r)))}function Le(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Le(Object(t),!0).forEach(function(n){Jr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Jr(e,r,t){return r=Hr(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qr(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Hr(e){var r=qr(e,"string");return typeof r=="symbol"?r:String(r)}function k(e,r){if(typeof e!="string")return e;if(e!=="")return typeof r!="function"?e:r(e)}function X(e){if(!(typeof File<"u"&&e instanceof File&&e.name===""&&e.size===0))return e}function Wr(e){return typeof File>"u"?!1:e._def.effect.type==="refinement"&&e.innerType()instanceof ir&&e.safeParse(new File([],"")).success&&!e.safeParse("").success}function E(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,t=r.get(e);if(t)return t;var n=e;if(e instanceof Ge||e instanceof Xe||e instanceof Qe||e instanceof Ye)n=I().transform(a=>k(a)).pipe(e);else if(e instanceof xe)n=I().transform(a=>k(a,u=>u.trim()===""?Number.NaN:Number(u))).pipe(e);else if(e instanceof er)n=I().transform(a=>k(a,u=>u==="on"?!0:u)).pipe(e);else if(e instanceof rr)n=I().transform(a=>k(a,u=>{var o=new Date(u);return isNaN(o.getTime())?u:o})).pipe(e);else if(e instanceof tr)n=I().transform(a=>k(a,BigInt)).pipe(e);else if(e instanceof ye)n=I().transform(a=>Array.isArray(a)?a:typeof a>"u"||typeof X(k(a))>"u"?[]:[a]).pipe(new ye(y(y({},e._def),{},{type:E(e.element,r)})));else if(e instanceof ge){var i=Object.fromEntries(Object.entries(e.shape).map(a=>{var[u,o]=a;return[u,E(o,r)]}));n=new ge(y(y({},e._def),{},{shape:()=>i}))}else e instanceof be?Wr(e)?n=I().transform(a=>X(a)).pipe(e):n=new be(y(y({},e._def),{},{schema:E(e.innerType(),r)})):e instanceof he?n=I().transform(a=>X(k(a))).pipe(new he(y(y({},e._def),{},{innerType:E(e.unwrap(),r)}))):e instanceof Oe?n=I().transform(a=>X(k(a))).pipe(new Oe(y(y({},e._def),{},{innerType:E(e.removeDefault(),r)}))):e instanceof Se?n=new Se(y(y({},e._def),{},{innerType:E(e.removeCatch(),r)})):e instanceof we?n=new we(y(y({},e._def),{},{left:E(e._def.left,r),right:E(e._def.right,r)})):e instanceof Pe?n=new Pe(y(y({},e._def),{},{options:e.options.map(a=>E(a,r))})):e instanceof Ee?n=new Ee(y(y({},e._def),{},{options:e.options.map(a=>E(a,r)),optionsMap:new Map(Array.from(e.optionsMap.entries()).map(a=>{var[u,o]=a;return[u,E(o,r)]}))})):e instanceof Ae?n=new Ae(y(y({},e._def),{},{items:e.items.map(a=>E(a,r))})):e instanceof Ve?n=new Ve(y(y({},e._def),{},{innerType:E(e.unwrap(),r)})):e instanceof je?n=new je(y(y({},e._def),{},{in:E(e._def.in,r),out:E(e._def.out,r)})):e instanceof nr&&(n=ar(()=>E(e.schema,r)));return e!==n&&r.set(e,n),n}function Gr(e,r){var t={};for(var n of e.errors){var i=Z(n.path);switch(n.message){case Ze.VALIDATION_UNDEFINED:return null;case Ze.VALIDATION_SKIPPED:t[i]=null;break;default:{var a=t[i];a!==null&&(a?t[i]=a.concat(n):t[i]=[n]);break}}}return Object.entries(t).reduce((u,o)=>{var[l,c]=o;return u[l]=c?r(c):null,u},{})}function Xr(e,r){return Or(e,{resolve(t,n){var i=r.errorMap,a=E(typeof r.schema=="function"?r.schema(n):r.schema),u=o=>{var l;return{value:o.success?o.data:void 0,error:o.success?void 0:Gr(o.error,(l=r.formatError)!==null&&l!==void 0?l:c=>c.map(m=>m.message))}};return r.async?a.safeParseAsync(t,{errorMap:i}).then(o=>u(o)):u(a.safeParse(t,{errorMap:i}))}})}var Ze={VALIDATION_SKIPPED:"__skipped__",VALIDATION_UNDEFINED:"__undefined__"};function Qr({id:e,errors:r}){const t=r==null?void 0:r.filter(Boolean);return t!=null&&t.length?V.jsx("ul",{id:e,className:"space-y-1",children:t.map(n=>V.jsx("li",{className:"text-danger text-[10px]",children:n},n))}):null}const Yr="/theme",xr=te.object({redirectTo:te.string().optional(),theme:te.enum(["system","light","dark"])});function ot(){const e=Ce(),r=sr(),[t,n]=j.useState(!1);j.useEffect(()=>{n(!0)},[]);const[i]=$r({id:"onboarding",lastResult:r.data,onValidate({formData:l}){return Xr(l,{schema:xr})}}),a=e.session.theme??"system",u=a==="system"?"light":a==="light"?"dark":"system",o={light:V.jsx(ne,{size:"md",name:"Sun",title:"Light mode"}),dark:V.jsx(ne,{size:"md",name:"Moon",title:"Dark mode"}),system:V.jsx(ne,{size:"md",name:"Laptop",title:"System mode"})};return V.jsxs(r.Form,{method:"POST",action:Yr,...zr(i),children:[V.jsxs("div",{className:"flex gap-2",children:[t?null:V.jsx("input",{type:"hidden",name:"redirectTo",value:e.path}),V.jsx("input",{type:"hidden",name:"theme",value:u}),V.jsx(or,{content:`Change theme from ${a} mode`,children:V.jsx("button",{type:"submit",name:"intent",value:"update-theme",className:"flex h-8 w-8 cursor-pointer items-center justify-center",children:o[a]})})]}),V.jsx(Qr,{errors:i.errors,id:i.errorId})]})}function ut(){var a;const e=ur(),r=Ce(),n=lr().find(u=>{var o;return((o=u.formData)==null?void 0:o.get("intent"))==="update-theme"}),i=(a=n==null?void 0:n.formData)==null?void 0:a.get("theme");return i==="system"?e.theme:i==="light"||i==="dark"?i:r.session.theme??e.theme}export{ot as T,ut as u};
2
- //# sourceMappingURL=index-Dc59VwXx.js.map
@@ -1,2 +0,0 @@
1
- import{r as i,d as h,e as C,j as e}from"./index-BDqSZ0-h.js";import{u as j}from"./use-event-source-DPLyo0Bh.js";import{z as t}from"./index-B8k-Gd1G.js";import{a as g,B as v}from"./button-Da1iG51o.js";import{L as R}from"./loading-DsjO-T0W.js";import{a as L}from"./components-BM_XUa9h.js";import"./clsx-B-dksMZM.js";import"./client-hints-B2pbEa_9.js";const r={USER_CODE_RECEIVED:"USER_CODE_RECEIVED",AUTH_RESOLVED:"AUTH_RESOLVED",AUTH_REJECTED:"AUTH_REJECTED"},S=t.object({type:t.literal(r.USER_CODE_RECEIVED),code:t.string(),url:t.string()}),b=t.object({type:t.literal(r.AUTH_RESOLVED)}),w=t.object({type:t.literal(r.AUTH_REJECTED),error:t.string().optional().default("Unknown error")}),y=t.union([S,b,w]);function F(){var x;const s=L(),[u,E]=i.useState(!1),[n,f]=i.useState(null),[l,m]=i.useState(null),c=h(),d=C(),o=j("/login-sse");return i.useEffect(()=>{if(!o)return;const p=JSON.parse(o),a=y.safeParse(p);if(!a.success){console.error(a.error.flatten());return}switch(a.data.type){case r.USER_CODE_RECEIVED:{m(a.data);break}case r.AUTH_RESOLVED:{d.revalidate(),c("/");break}case r.AUTH_REJECTED:{f(a.data.error);break}}},[o,c,d]),e.jsx("main",{className:"flex h-full w-full flex-grow flex-col items-center justify-center p-10 text-center",children:e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(_,{className:"h-16 w-16"}),e.jsx("h1",{className:"pt-5 text-2xl font-semibold md:text-3xl",children:"Authenticate with EpicWeb.dev"}),e.jsx("h2",{className:"max-w-sm pt-3 text-base text-gray-700 dark:text-gray-300",children:"If you have purchased Epic Web, you'll be able to watch videos, track progress, and more!"}),e.jsxs("div",{className:"flex w-full flex-col items-center pt-5",children:[l?e.jsxs("div",{className:"flex w-full flex-col items-center gap-3",children:[e.jsxs("div",{className:"my-2 flex w-full flex-col items-center gap-2",children:[e.jsx("p",{className:"text-lg",children:"Your verification code is: "}),e.jsx("div",{className:"mb-3 w-full bg-gray-100 px-5 py-3 text-lg font-bold dark:bg-black/40",children:e.jsx("code",{children:l.code})})]}),e.jsx(g,{varient:"primary",to:l.url,target:"_blank",rel:"noreferrer",onClick:()=>E(!0),children:"Continue"}),u?e.jsx("div",{className:"pt-5 opacity-60",children:e.jsx(R,{children:"Waiting for confirmation"})}):null]}):e.jsx(s.Form,{method:"POST",children:e.jsx(v,{varient:"primary",type:"submit",children:s.state==="idle"&&((x=s.data)==null?void 0:x.status)!=="pending"?"Retrieve Code":"Retrieving Code..."})}),n?e.jsxs("div",{className:"mt-4 text-red-500",children:["There was an error: ",e.jsx("pre",{children:n})]}):null]})]})})}function _({className:s=""}){return e.jsxs("svg",{className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("path",{d:"M12.438 11.5677C12.0131 11.8026 11.5249 12.0534 10.9784 12.3047C8.80704 13.3031 5.70429 14.314 1.986 14.3555L1.55773 14.3603L1.48003 13.9391C1.36509 13.316 1.29793 12.6714 1.29793 12.006C1.29793 6.10441 6.09863 1.30372 12.0002 1.30372C13.6287 1.30372 15.1745 1.66961 16.5585 2.32369L17.9801 1.59897C16.2189 0.582162 14.1769 0 12.0002 0C5.38709 0 0 5.38709 0 12.0002C0 14.6402 0.858474 17.0847 2.31072 19.0692C4.79741 18.6457 6.35749 17.6495 6.35749 17.6495C6.35749 17.6495 5.36137 19.2075 4.93785 21.6946C6.92114 23.1439 9.36321 24.0005 12.0002 24.0005C18.6134 24.0005 24.0005 18.6134 24.0005 12.0002C24.0005 9.82732 23.4199 7.78762 22.4053 6.02738L21.6818 7.44613C22.3364 8.83057 22.7025 10.3769 22.7025 12.006C22.7025 17.9076 17.9018 22.7083 12.0002 22.7083C11.3345 22.7083 10.6959 22.6411 10.0681 22.5264L9.646 22.4493L9.65079 22.0203C9.6923 18.2991 10.7031 15.1964 11.7016 13.0257C11.9527 12.4797 12.2033 11.9921 12.438 11.5677Z",fill:"url(#epicGradient)"}),e.jsx("path",{d:"M18.2525 9.31052L15.4992 8.50683L14.6953 5.74778L23.8291 0.171387L18.2525 9.31052Z",fill:"currentColor"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"epicGradient",x1:"16.9703",y1:"7.03022",x2:"7.05798",y2:"16.948",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#4F75FF"}),e.jsx("stop",{offset:"1",stopColor:"#30AFFF"})]})})]})}export{F as default};
2
- //# sourceMappingURL=login-CcuvIoiW.js.map
@@ -1 +0,0 @@
1
- window.__remixManifest={"entry":{"module":"/assets/entry.client-XC5tKTFs.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/root-1Cc21xa6.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/client-hints-B2pbEa_9.js","/assets/error-boundary-tJSWbP6w.js","/assets/progress-bar-BmszwN_j.js","/assets/index-B8G3eD8F.js","/assets/index-Dc59VwXx.js","/assets/presence-BF7lWuVd.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/_-CsdFvUbA.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js","/assets/error-boundary-tJSWbP6w.js"],"css":[]},"routes/_app+/_layout":{"id":"routes/_app+/_layout","parentId":"root","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_layout-C8fK4Z98.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/client-hints-B2pbEa_9.js","/assets/progress-mfa_5CZx.js","/assets/index-Dc59VwXx.js","/assets/user-p2QVtDZI.js","/assets/presence-BF7lWuVd.js"],"css":[]},"routes/_app+/_exercises+/_layout":{"id":"routes/_app+/_exercises+/_layout","parentId":"routes/_app+/_layout","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_layout-D1A2zp9y.js","imports":["/assets/index-BDqSZ0-h.js"],"css":[]},"routes/_app+/_exercises+/$exerciseNumber":{"id":"routes/_app+/_exercises+/$exerciseNumber","parentId":"routes/_app+/_exercises+/_layout","path":":exerciseNumber","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/_exerciseNumber-DWZNkWZM.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/client-hints-B2pbEa_9.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/index-BymJEf3X.js","/assets/mdx-CZ_BPVoS.js","/assets/progress-mfa_5CZx.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber":{"id":"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber","parentId":"routes/_app+/_exercises+/_layout","path":":exerciseNumber/:stepNumber","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/_exerciseNumber_._stepNumber-P76hDsE6.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js"],"css":[]},"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber.$type+/_layout":{"id":"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber.$type+/_layout","parentId":"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber","path":":type","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/_layout-BSoUgboG.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/misc-C1rq7sPa.js","/assets/client-hints-B2pbEa_9.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/mdx-CZ_BPVoS.js","/assets/user-p2QVtDZI.js","/assets/index-BymJEf3X.js","/assets/diff-BQhWtDyS.js","/assets/discord-BMNnObT9.js","/assets/index-B8G3eD8F.js","/assets/button-Da1iG51o.js","/assets/use-event-source-DPLyo0Bh.js","/assets/error-boundary-tJSWbP6w.js","/assets/nav-chevrons-C-dN3WfT.js","/assets/progress-mfa_5CZx.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber.index":{"id":"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber.index","parentId":"routes/_app+/_exercises+/$exerciseNumber_.$stepNumber","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_exerciseNumber_._stepNumber.index-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/_exercises+/$exerciseNumber_.finished":{"id":"routes/_app+/_exercises+/$exerciseNumber_.finished","parentId":"routes/_app+/_exercises+/_layout","path":":exerciseNumber/finished","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_exerciseNumber_.finished-CpC-flTW.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/client-hints-B2pbEa_9.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/index-BymJEf3X.js","/assets/nav-chevrons-C-dN3WfT.js","/assets/mdx-CZ_BPVoS.js","/assets/progress-mfa_5CZx.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/_app+/account":{"id":"routes/_app+/account","parentId":"routes/_app+/_layout","path":"account","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/account-BeKnQB9r.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/index-B8k-Gd1G.js","/assets/button-Da1iG51o.js","/assets/misc-C1rq7sPa.js","/assets/user-p2QVtDZI.js","/assets/presence-BF7lWuVd.js"],"css":[]},"routes/_app+/app.$appName+/$":{"id":"routes/_app+/app.$appName+/$","parentId":"routes/_app+/_layout","path":"app/:appName/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/api.$":{"id":"routes/_app+/app.$appName+/api.$","parentId":"routes/_app+/_layout","path":"app/:appName/api/*","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/api._-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/epic_ws[.js]":{"id":"routes/_app+/app.$appName+/epic_ws[.js]","parentId":"routes/_app+/_layout","path":"app/:appName/epic_ws.js","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/epic_ws_.js_-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/index":{"id":"routes/_app+/app.$appName+/index","parentId":"routes/_app+/_layout","path":"app/:appName/","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/index-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/app.$appName+/test.$testName":{"id":"routes/_app+/app.$appName+/test.$testName","parentId":"routes/_app+/_layout","path":"app/:appName/test/:testName","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/test._testName-l0sNRNKZ.js","imports":[],"css":[]},"routes/_app+/discord":{"id":"routes/_app+/discord","parentId":"routes/_app+/_layout","path":"discord","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/discord-DdAReDkL.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js","/assets/user-p2QVtDZI.js","/assets/discord-BMNnObT9.js"],"css":[]},"routes/_app+/finished":{"id":"routes/_app+/finished","parentId":"routes/_app+/_layout","path":"finished","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/finished-CMGRmsnb.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/client-hints-B2pbEa_9.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/index-BymJEf3X.js","/assets/mdx-CZ_BPVoS.js","/assets/progress-mfa_5CZx.js","/assets/nav-chevrons-C-dN3WfT.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/_app+/index":{"id":"routes/_app+/index","parentId":"routes/_app+/_layout","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":true,"module":"/assets/index-CQZ5FyEE.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js","/assets/clsx-B-dksMZM.js","/assets/client-hints-B2pbEa_9.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/index-BymJEf3X.js","/assets/progress-mfa_5CZx.js","/assets/error-boundary-tJSWbP6w.js","/assets/mdx-CZ_BPVoS.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/_app+/login":{"id":"routes/_app+/login","parentId":"routes/_app+/_layout","path":"login","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/login-CcuvIoiW.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/client-hints-B2pbEa_9.js","/assets/use-event-source-DPLyo0Bh.js","/assets/index-B8k-Gd1G.js","/assets/button-Da1iG51o.js","/assets/loading-DsjO-T0W.js"],"css":[]},"routes/_app+/support":{"id":"routes/_app+/support","parentId":"routes/_app+/_layout","path":"support","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/support--jou3sWH.js","imports":["/assets/index-BDqSZ0-h.js","/assets/components-BM_XUa9h.js"],"css":[]},"routes/admin+/_layout":{"id":"routes/admin+/_layout","parentId":"root","path":"admin","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/_layout-DEZ-aTmx.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js","/assets/tooltip-BlVFw-is.js","/assets/progress-mfa_5CZx.js"],"css":[]},"routes/admin+/apps":{"id":"routes/admin+/apps","parentId":"routes/admin+/_layout","path":"apps","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/apps-DP2rzg_V.js","imports":[],"css":[]},"routes/apps":{"id":"routes/apps","parentId":"root","path":"apps","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/apps-l0sNRNKZ.js","imports":[],"css":[]},"routes/diff":{"id":"routes/diff","parentId":"root","path":"diff","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/diff-BDeBUdSw.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/misc-C1rq7sPa.js","/assets/client-hints-B2pbEa_9.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/epic-video-CxRPT-8l.js","/assets/progress-bar-BmszwN_j.js","/assets/mdx-CZ_BPVoS.js","/assets/diff-BQhWtDyS.js","/assets/nav-chevrons-C-dN3WfT.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/discord.callback":{"id":"routes/discord.callback","parentId":"root","path":"discord/callback","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/discord.callback-l0sNRNKZ.js","imports":[],"css":[]},"routes/exercises":{"id":"routes/exercises","parentId":"root","path":"exercises","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/exercises-l0sNRNKZ.js","imports":[],"css":[]},"routes/launch-editor":{"id":"routes/launch-editor","parentId":"root","path":"launch-editor","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/launch-editor-l0sNRNKZ.js","imports":[],"css":[]},"routes/login-sse":{"id":"routes/login-sse","parentId":"root","path":"login-sse","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/login-sse-l0sNRNKZ.js","imports":[],"css":[]},"routes/onboarding":{"id":"routes/onboarding","parentId":"root","path":"onboarding","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/onboarding-CfXLKsN3.js","imports":["/assets/index-BDqSZ0-h.js","/assets/clsx-B-dksMZM.js","/assets/components-BM_XUa9h.js","/assets/client-hints-B2pbEa_9.js","/assets/misc-C1rq7sPa.js","/assets/index-B8k-Gd1G.js","/assets/tooltip-BlVFw-is.js","/assets/loading-DsjO-T0W.js","/assets/index-Dc59VwXx.js","/assets/button-Da1iG51o.js","/assets/epic-video-CxRPT-8l.js"],"css":["/assets/epic-video-DUnRvy1A.css"]},"routes/processes":{"id":"routes/processes","parentId":"root","path":"processes","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/processes-l0sNRNKZ.js","imports":[],"css":[]},"routes/progress":{"id":"routes/progress","parentId":"root","path":"progress","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/progress-l0sNRNKZ.js","imports":[],"css":[]},"routes/set-playground":{"id":"routes/set-playground","parentId":"root","path":"set-playground","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/set-playground-l0sNRNKZ.js","imports":[],"css":[]},"routes/start":{"id":"routes/start","parentId":"root","path":"start","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/start-l0sNRNKZ.js","imports":[],"css":[]},"routes/test":{"id":"routes/test","parentId":"root","path":"test","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/test-l0sNRNKZ.js","imports":[],"css":[]},"routes/theme/index":{"id":"routes/theme/index","parentId":"root","path":"theme","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/index-K6Dvbx-E.js","imports":[],"css":[]},"routes/update-mdx-cache":{"id":"routes/update-mdx-cache","parentId":"root","path":"update-mdx-cache","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/update-mdx-cache-l0sNRNKZ.js","imports":[],"css":[]},"routes/video-player/index":{"id":"routes/video-player/index","parentId":"root","path":"video-player","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasErrorBoundary":false,"module":"/assets/index-DP2rzg_V.js","imports":[],"css":[]}},"url":"/assets/manifest-1656ae4d.js","version":"1656ae4d"};
@@ -1,2 +0,0 @@
1
- var re=Object.defineProperty;var oe=(n,e,i)=>e in n?re(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var O=(n,e,i)=>(oe(n,typeof e!="symbol"?e+"":e,i),i),zt=(n,e,i)=>{if(!e.has(n))throw TypeError("Cannot "+i)};var t=(n,e,i)=>(zt(n,e,"read from private field"),i?i.call(n):e.get(n)),g=(n,e,i)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,i)},u=(n,e,i,s)=>(zt(n,e,"write to private field"),s?s.call(n,i):e.set(n,i),i);var Ot=(n,e,i,s)=>({set _(o){u(n,e,o,i)},get _(){return t(n,e,s)}}),c=(n,e,i)=>(zt(n,e,"access private method"),i);import{j as d,r as bt,f as ae}from"./index-BDqSZ0-h.js";import{c as Tt}from"./clsx-B-dksMZM.js";import{b as he,L as Xt,a as le,r as ce,u as ue}from"./components-BM_XUa9h.js";import{I as fe,c as de,H as ct,A as pe}from"./misc-C1rq7sPa.js";import{V as ge,D as me}from"./epic-video-CxRPT-8l.js";import{s as be}from"./progress-bar-BmszwN_j.js";import{S as we}from"./tooltip-BlVFw-is.js";import{a as _e}from"./client-hints-B2pbEa_9.js";function ye(){const n=he("root");if(!n)throw new Error("useApps requires a data object from the root loader");return n.apps}function Yt(n){const e=le();return bt.useEffect(()=>{e.state==="idle"&&e.data!=null&&(n==null||n("fetcher-done"))},[e,n]),e}function Se({file:n,appFile:e,appName:i,syncTo:s,line:o,column:r,children:a,onUpdate:h}){var W;const l=Yt(h),m=typeof e=="string"?[e]:e,F=n?"file":e?"appFile":"",b=s!=null&&s.file?"file":s!=null&&s.appFile?"appFile":"";return d.jsxs(l.Form,{action:"/launch-editor",method:"POST",className:"flex items-center",children:[be,d.jsx("input",{type:"hidden",name:"line",value:o}),d.jsx("input",{type:"hidden",name:"column",value:r}),d.jsx("input",{type:"hidden",name:"type",value:F}),d.jsx("input",{type:"hidden",name:"file",value:n}),d.jsx("input",{type:"hidden",name:"appName",value:i}),m==null?void 0:m.map(_=>d.jsx("input",{type:"hidden",name:"appFile",value:_},_)),s?d.jsxs(d.Fragment,{children:[d.jsx("input",{type:"hidden",name:"syncTo.type",value:b}),d.jsx("input",{type:"hidden",name:"syncTo.file",value:s.file}),d.jsx("input",{type:"hidden",name:"syncTo.appName",value:s.appName}),d.jsx("input",{type:"hidden",name:"syncTo.appFile",value:s.appFile})]}):null,d.jsx("button",{type:"submit",className:Tt("launch_button",l.state==="idle"?null:"cursor-progress",((W=l.data)==null?void 0:W.status)==="error"?"cursor-not-allowed":null),children:a})]})}function Ee({file:n,appFile:e,appName:i,line:s,children:o}){const r=ye(),a=_e();if(Array.isArray(e))return d.jsx("div",{children:"Cannot open more than one file"});if(n){const m=F=>F.replace(/\\/g,"/");return d.jsx("a",{className:"launch_button !no-underline",href:m(n).replace(m(ENV.EPICSHOP_CONTEXT_CWD),ENV.EPICSHOP_GITHUB_ROOT)+(s?`#L${s}`:""),rel:"noreferrer",target:"_blank",children:o})}const h=r.find(m=>m.name===i),l=[...(h==null?void 0:h.relativePath.split(a.separator))??[],e+(s?`#L${s}`:"")].join("/");return d.jsx("a",{className:"launch_button !no-underline",href:`${ENV.EPICSHOP_GITHUB_ROOT}/${l}`,rel:"noreferrer",target:"_blank",children:o})}function Be({appFile:n="README.mdx",appName:e,file:i,relativePath:s}){const o=Yt(),r=h=>{if(!h.altKey||ENV.EPICSHOP_DEPLOYED)return;h.preventDefault();const l=new FormData,m=i?"file":"appFile";l.append(m,i??n),l.append("type",m),e&&l.append("appName",e),o.submit(l,{method:"POST",action:"/launch-editor"})},a=ENV.EPICSHOP_GITHUB_ROOT.replace(/\/tree\/|\/blob\//,"/edit/");return d.jsxs(Xt,{className:"self-center font-mono text-sm",onClick:r,target:"_blank",to:`${a}/${s}/${n}`.replace(/\\/g,"/"),children:[d.jsx("span",{className:"block md:hidden",children:"Edit on GitHub"}),d.jsx("span",{className:"hidden md:block",children:"Edit this page on GitHub"})]})}const Kt=ENV.EPICSHOP_DEPLOYED?ENV.EPICSHOP_GITHUB_ROOT?Ee:({children:n})=>d.jsx(we,{content:"Cannot open files in deployed app",children:d.jsx("button",{className:"launch_button cursor-not-allowed",children:n})}):Se,ut=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Zt=new Set,Rt=typeof process=="object"&&process?process:{},Jt=(n,e,i,s)=>{typeof Rt.emitWarning=="function"?Rt.emitWarning(n,e,i,s):console.error(`[${i}] ${e}: ${n}`)};let jt=globalThis.AbortController,$t=globalThis.AbortSignal;var qt;if(typeof jt>"u"){$t=class{constructor(){O(this,"onabort");O(this,"_onabort",[]);O(this,"reason");O(this,"aborted",!1)}addEventListener(s,o){this._onabort.push(o)}},jt=class{constructor(){O(this,"signal",new $t);e()}abort(s){var o,r;if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(const a of this.signal._onabort)a(s);(r=(o=this.signal).onabort)==null||r.call(o,s)}}};let n=((qt=Rt.env)==null?void 0:qt.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{n&&(n=!1,Jt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const xe=n=>!Zt.has(n),et=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),Qt=n=>et(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?vt:null:null;class vt extends Array{constructor(e){super(e),this.fill(0)}}var ft;const ot=class ot{constructor(e,i){O(this,"heap");O(this,"length");if(!t(ot,ft))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}static create(e){const i=Qt(e);if(!i)return[];u(ot,ft,!0);const s=new ot(e,i);return u(ot,ft,!1),s}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};ft=new WeakMap,g(ot,ft,!1);let Wt=ot;var U,I,V,B,dt,A,$,v,E,p,N,M,z,C,q,T,X,Y,G,K,nt,R,_t,It,at,Q,yt,H,Ct,te,ht,pt,St,Z,it,J,st,Et,Mt,Re,gt,At,mt,Ft,w,S,xt,Gt,lt,wt;const Ut=class Ut{constructor(e){g(this,_t);g(this,Ct);g(this,Z);g(this,J);g(this,Et);g(this,gt);g(this,mt);g(this,w);g(this,xt);g(this,lt);g(this,U,void 0);g(this,I,void 0);g(this,V,void 0);g(this,B,void 0);g(this,dt,void 0);O(this,"ttl");O(this,"ttlResolution");O(this,"ttlAutopurge");O(this,"updateAgeOnGet");O(this,"updateAgeOnHas");O(this,"allowStale");O(this,"noDisposeOnSet");O(this,"noUpdateTTL");O(this,"maxEntrySize");O(this,"sizeCalculation");O(this,"noDeleteOnFetchRejection");O(this,"noDeleteOnStaleGet");O(this,"allowStaleOnFetchAbort");O(this,"allowStaleOnFetchRejection");O(this,"ignoreFetchAbort");g(this,A,void 0);g(this,$,void 0);g(this,v,void 0);g(this,E,void 0);g(this,p,void 0);g(this,N,void 0);g(this,M,void 0);g(this,z,void 0);g(this,C,void 0);g(this,q,void 0);g(this,T,void 0);g(this,X,void 0);g(this,Y,void 0);g(this,G,void 0);g(this,K,void 0);g(this,nt,void 0);g(this,R,void 0);g(this,at,()=>{});g(this,Q,()=>{});g(this,yt,()=>{});g(this,H,()=>!1);g(this,ht,e=>{});g(this,pt,(e,i,s)=>{});g(this,St,(e,i,s,o)=>{if(s||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});O(this,Re,"LRUCache");const{max:i=0,ttl:s,ttlResolution:o=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:h,allowStale:l,dispose:m,disposeAfter:F,noDisposeOnSet:b,noUpdateTTL:W,maxSize:_=0,maxEntrySize:P=0,sizeCalculation:x,fetchMethod:j,noDeleteOnFetchRejection:f,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:L,allowStaleOnFetchAbort:D,ignoreFetchAbort:k}=e;if(i!==0&&!et(i))throw new TypeError("max option must be a nonnegative integer");const rt=i?Qt(i):Array;if(!rt)throw new Error("invalid max value: "+i);if(u(this,U,i),u(this,I,_),this.maxEntrySize=P||t(this,I),this.sizeCalculation=x,this.sizeCalculation){if(!t(this,I)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(j!==void 0&&typeof j!="function")throw new TypeError("fetchMethod must be a function if specified");if(u(this,dt,j),u(this,nt,!!j),u(this,v,new Map),u(this,E,new Array(i).fill(void 0)),u(this,p,new Array(i).fill(void 0)),u(this,N,new rt(i)),u(this,M,new rt(i)),u(this,z,0),u(this,C,0),u(this,q,Wt.create(i)),u(this,A,0),u(this,$,0),typeof m=="function"&&u(this,V,m),typeof F=="function"?(u(this,B,F),u(this,T,[])):(u(this,B,void 0),u(this,T,void 0)),u(this,K,!!t(this,V)),u(this,R,!!t(this,B)),this.noDisposeOnSet=!!b,this.noUpdateTTL=!!W,this.noDeleteOnFetchRejection=!!f,this.allowStaleOnFetchRejection=!!L,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(t(this,I)!==0&&!et(t(this,I)))throw new TypeError("maxSize must be a positive integer if specified");if(!et(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");c(this,Ct,te).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!h,this.ttlResolution=et(o)||o===0?o:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!et(this.ttl))throw new TypeError("ttl must be a positive integer if specified");c(this,_t,It).call(this)}if(t(this,U)===0&&this.ttl===0&&t(this,I)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!t(this,U)&&!t(this,I)){const tt="LRU_CACHE_UNBOUNDED";xe(tt)&&(Zt.add(tt),Jt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",tt,Ut))}}static unsafeExposeInternals(e){return{starts:t(e,Y),ttls:t(e,G),sizes:t(e,X),keyMap:t(e,v),keyList:t(e,E),valList:t(e,p),next:t(e,N),prev:t(e,M),get head(){return t(e,z)},get tail(){return t(e,C)},free:t(e,q),isBackgroundFetch:i=>{var s;return c(s=e,w,S).call(s,i)},backgroundFetch:(i,s,o,r)=>{var a;return c(a=e,mt,Ft).call(a,i,s,o,r)},moveToTail:i=>{var s;return c(s=e,lt,wt).call(s,i)},indexes:i=>{var s;return c(s=e,Z,it).call(s,i)},rindexes:i=>{var s;return c(s=e,J,st).call(s,i)},isStale:i=>{var s;return t(s=e,H).call(s,i)}}}get max(){return t(this,U)}get maxSize(){return t(this,I)}get calculatedSize(){return t(this,$)}get size(){return t(this,A)}get fetchMethod(){return t(this,dt)}get dispose(){return t(this,V)}get disposeAfter(){return t(this,B)}getRemainingTTL(e){return t(this,v).has(e)?1/0:0}*entries(){for(const e of c(this,Z,it).call(this))t(this,p)[e]!==void 0&&t(this,E)[e]!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield[t(this,E)[e],t(this,p)[e]])}*rentries(){for(const e of c(this,J,st).call(this))t(this,p)[e]!==void 0&&t(this,E)[e]!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield[t(this,E)[e],t(this,p)[e]])}*keys(){for(const e of c(this,Z,it).call(this)){const i=t(this,E)[e];i!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield i)}}*rkeys(){for(const e of c(this,J,st).call(this)){const i=t(this,E)[e];i!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield i)}}*values(){for(const e of c(this,Z,it).call(this))t(this,p)[e]!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield t(this,p)[e])}*rvalues(){for(const e of c(this,J,st).call(this))t(this,p)[e]!==void 0&&!c(this,w,S).call(this,t(this,p)[e])&&(yield t(this,p)[e])}[Symbol.iterator](){return this.entries()}find(e,i={}){for(const s of c(this,Z,it).call(this)){const o=t(this,p)[s],r=c(this,w,S).call(this,o)?o.__staleWhileFetching:o;if(r!==void 0&&e(r,t(this,E)[s],this))return this.get(t(this,E)[s],i)}}forEach(e,i=this){for(const s of c(this,Z,it).call(this)){const o=t(this,p)[s],r=c(this,w,S).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&e.call(i,r,t(this,E)[s],this)}}rforEach(e,i=this){for(const s of c(this,J,st).call(this)){const o=t(this,p)[s],r=c(this,w,S).call(this,o)?o.__staleWhileFetching:o;r!==void 0&&e.call(i,r,t(this,E)[s],this)}}purgeStale(){let e=!1;for(const i of c(this,J,st).call(this,{allowStale:!0}))t(this,H).call(this,i)&&(this.delete(t(this,E)[i]),e=!0);return e}info(e){const i=t(this,v).get(e);if(i===void 0)return;const s=t(this,p)[i],o=c(this,w,S).call(this,s)?s.__staleWhileFetching:s;if(o===void 0)return;const r={value:o};if(t(this,G)&&t(this,Y)){const a=t(this,G)[i],h=t(this,Y)[i];if(a&&h){const l=a-(ut.now()-h);r.ttl=l,r.start=Date.now()}}return t(this,X)&&(r.size=t(this,X)[i]),r}dump(){const e=[];for(const i of c(this,Z,it).call(this,{allowStale:!0})){const s=t(this,E)[i],o=t(this,p)[i],r=c(this,w,S).call(this,o)?o.__staleWhileFetching:o;if(r===void 0||s===void 0)continue;const a={value:r};if(t(this,G)&&t(this,Y)){a.ttl=t(this,G)[i];const h=ut.now()-t(this,Y)[i];a.start=Math.floor(Date.now()-h)}t(this,X)&&(a.size=t(this,X)[i]),e.unshift([s,a])}return e}load(e){this.clear();for(const[i,s]of e){if(s.start){const o=Date.now()-s.start;s.start=ut.now()-o}this.set(i,s.value,s)}}set(e,i,s={}){var W,_,P,x,j;if(i===void 0)return this.delete(e),this;const{ttl:o=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:h=this.sizeCalculation,status:l}=s;let{noUpdateTTL:m=this.noUpdateTTL}=s;const F=t(this,St).call(this,e,i,s.size||0,h);if(this.maxEntrySize&&F>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let b=t(this,A)===0?void 0:t(this,v).get(e);if(b===void 0)b=t(this,A)===0?t(this,C):t(this,q).length!==0?t(this,q).pop():t(this,A)===t(this,U)?c(this,gt,At).call(this,!1):t(this,A),t(this,E)[b]=e,t(this,p)[b]=i,t(this,v).set(e,b),t(this,N)[t(this,C)]=b,t(this,M)[b]=t(this,C),u(this,C,b),Ot(this,A)._++,t(this,pt).call(this,b,F,l),l&&(l.set="add"),m=!1;else{c(this,lt,wt).call(this,b);const f=t(this,p)[b];if(i!==f){if(t(this,nt)&&c(this,w,S).call(this,f)){f.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:y}=f;y!==void 0&&!a&&(t(this,K)&&((W=t(this,V))==null||W.call(this,y,e,"set")),t(this,R)&&((_=t(this,T))==null||_.push([y,e,"set"])))}else a||(t(this,K)&&((P=t(this,V))==null||P.call(this,f,e,"set")),t(this,R)&&((x=t(this,T))==null||x.push([f,e,"set"])));if(t(this,ht).call(this,b),t(this,pt).call(this,b,F,l),t(this,p)[b]=i,l){l.set="replace";const y=f&&c(this,w,S).call(this,f)?f.__staleWhileFetching:f;y!==void 0&&(l.oldValue=y)}}else l&&(l.set="update")}if(o!==0&&!t(this,G)&&c(this,_t,It).call(this),t(this,G)&&(m||t(this,yt).call(this,b,o,r),l&&t(this,Q).call(this,l,b)),!a&&t(this,R)&&t(this,T)){const f=t(this,T);let y;for(;y=f==null?void 0:f.shift();)(j=t(this,B))==null||j.call(this,...y)}return this}pop(){var e;try{for(;t(this,A);){const i=t(this,p)[t(this,z)];if(c(this,gt,At).call(this,!0),c(this,w,S).call(this,i)){if(i.__staleWhileFetching)return i.__staleWhileFetching}else if(i!==void 0)return i}}finally{if(t(this,R)&&t(this,T)){const i=t(this,T);let s;for(;s=i==null?void 0:i.shift();)(e=t(this,B))==null||e.call(this,...s)}}}has(e,i={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:o}=i,r=t(this,v).get(e);if(r!==void 0){const a=t(this,p)[r];if(c(this,w,S).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(t(this,H).call(this,r))o&&(o.has="stale",t(this,Q).call(this,o,r));else return s&&t(this,at).call(this,r),o&&(o.has="hit",t(this,Q).call(this,o,r)),!0}else o&&(o.has="miss");return!1}peek(e,i={}){const{allowStale:s=this.allowStale}=i,o=t(this,v).get(e);if(o===void 0||!s&&t(this,H).call(this,o))return;const r=t(this,p)[o];return c(this,w,S).call(this,r)?r.__staleWhileFetching:r}async fetch(e,i={}){const{allowStale:s=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:l=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:F=this.noUpdateTTL,noDeleteOnFetchRejection:b=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:W=this.allowStaleOnFetchRejection,ignoreFetchAbort:_=this.ignoreFetchAbort,allowStaleOnFetchAbort:P=this.allowStaleOnFetchAbort,context:x,forceRefresh:j=!1,status:f,signal:y}=i;if(!t(this,nt))return f&&(f.fetch="get"),this.get(e,{allowStale:s,updateAgeOnGet:o,noDeleteOnStaleGet:r,status:f});const L={allowStale:s,updateAgeOnGet:o,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:h,size:l,sizeCalculation:m,noUpdateTTL:F,noDeleteOnFetchRejection:b,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:P,ignoreFetchAbort:_,status:f,signal:y};let D=t(this,v).get(e);if(D===void 0){f&&(f.fetch="miss");const k=c(this,mt,Ft).call(this,e,D,L,x);return k.__returned=k}else{const k=t(this,p)[D];if(c(this,w,S).call(this,k)){const Bt=s&&k.__staleWhileFetching!==void 0;return f&&(f.fetch="inflight",Bt&&(f.returnedStale=!0)),Bt?k.__staleWhileFetching:k.__returned=k}const rt=t(this,H).call(this,D);if(!j&&!rt)return f&&(f.fetch="hit"),c(this,lt,wt).call(this,D),o&&t(this,at).call(this,D),f&&t(this,Q).call(this,f,D),k;const tt=c(this,mt,Ft).call(this,e,D,L,x),Vt=tt.__staleWhileFetching!==void 0&&s;return f&&(f.fetch=rt?"stale":"refresh",Vt&&rt&&(f.returnedStale=!0)),Vt?tt.__staleWhileFetching:tt.__returned=tt}}get(e,i={}){const{allowStale:s=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=i,h=t(this,v).get(e);if(h!==void 0){const l=t(this,p)[h],m=c(this,w,S).call(this,l);return a&&t(this,Q).call(this,a,h),t(this,H).call(this,h)?(a&&(a.get="stale"),m?(a&&s&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),s?l.__staleWhileFetching:void 0):(r||this.delete(e),a&&s&&(a.returnedStale=!0),s?l:void 0)):(a&&(a.get="hit"),m?l.__staleWhileFetching:(c(this,lt,wt).call(this,h),o&&t(this,at).call(this,h),l))}else a&&(a.get="miss")}delete(e){var s,o,r,a;let i=!1;if(t(this,A)!==0){const h=t(this,v).get(e);if(h!==void 0)if(i=!0,t(this,A)===1)this.clear();else{t(this,ht).call(this,h);const l=t(this,p)[h];if(c(this,w,S).call(this,l)?l.__abortController.abort(new Error("deleted")):(t(this,K)||t(this,R))&&(t(this,K)&&((s=t(this,V))==null||s.call(this,l,e,"delete")),t(this,R)&&((o=t(this,T))==null||o.push([l,e,"delete"]))),t(this,v).delete(e),t(this,E)[h]=void 0,t(this,p)[h]=void 0,h===t(this,C))u(this,C,t(this,M)[h]);else if(h===t(this,z))u(this,z,t(this,N)[h]);else{const m=t(this,M)[h];t(this,N)[m]=t(this,N)[h];const F=t(this,N)[h];t(this,M)[F]=t(this,M)[h]}Ot(this,A)._--,t(this,q).push(h)}}if(t(this,R)&&((r=t(this,T))!=null&&r.length)){const h=t(this,T);let l;for(;l=h==null?void 0:h.shift();)(a=t(this,B))==null||a.call(this,...l)}return i}clear(){var e,i,s;for(const o of c(this,J,st).call(this,{allowStale:!0})){const r=t(this,p)[o];if(c(this,w,S).call(this,r))r.__abortController.abort(new Error("deleted"));else{const a=t(this,E)[o];t(this,K)&&((e=t(this,V))==null||e.call(this,r,a,"delete")),t(this,R)&&((i=t(this,T))==null||i.push([r,a,"delete"]))}}if(t(this,v).clear(),t(this,p).fill(void 0),t(this,E).fill(void 0),t(this,G)&&t(this,Y)&&(t(this,G).fill(0),t(this,Y).fill(0)),t(this,X)&&t(this,X).fill(0),u(this,z,0),u(this,C,0),t(this,q).length=0,u(this,$,0),u(this,A,0),t(this,R)&&t(this,T)){const o=t(this,T);let r;for(;r=o==null?void 0:o.shift();)(s=t(this,B))==null||s.call(this,...r)}}};Re=Symbol.toStringTag,U=new WeakMap,I=new WeakMap,V=new WeakMap,B=new WeakMap,dt=new WeakMap,A=new WeakMap,$=new WeakMap,v=new WeakMap,E=new WeakMap,p=new WeakMap,N=new WeakMap,M=new WeakMap,z=new WeakMap,C=new WeakMap,q=new WeakMap,T=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,K=new WeakMap,nt=new WeakMap,R=new WeakMap,_t=new WeakSet,It=function(){const e=new vt(t(this,U)),i=new vt(t(this,U));u(this,G,e),u(this,Y,i),u(this,yt,(r,a,h=ut.now())=>{if(i[r]=a!==0?h:0,e[r]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{t(this,H).call(this,r)&&this.delete(t(this,E)[r])},a+1);l.unref&&l.unref()}}),u(this,at,r=>{i[r]=e[r]!==0?ut.now():0}),u(this,Q,(r,a)=>{if(e[a]){const h=e[a],l=i[a];if(!h||!l)return;r.ttl=h,r.start=l,r.now=s||o();const m=r.now-l;r.remainingTTL=h-m}});let s=0;const o=()=>{const r=ut.now();if(this.ttlResolution>0){s=r;const a=setTimeout(()=>s=0,this.ttlResolution);a.unref&&a.unref()}return r};this.getRemainingTTL=r=>{const a=t(this,v).get(r);if(a===void 0)return 0;const h=e[a],l=i[a];if(!h||!l)return 1/0;const m=(s||o())-l;return h-m},u(this,H,r=>{const a=i[r],h=e[r];return!!h&&!!a&&(s||o())-a>h})},at=new WeakMap,Q=new WeakMap,yt=new WeakMap,H=new WeakMap,Ct=new WeakSet,te=function(){const e=new vt(t(this,U));u(this,$,0),u(this,X,e),u(this,ht,i=>{u(this,$,t(this,$)-e[i]),e[i]=0}),u(this,St,(i,s,o,r)=>{if(c(this,w,S).call(this,s))return 0;if(!et(o))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(o=r(s,i),!et(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),u(this,pt,(i,s,o)=>{if(e[i]=s,t(this,I)){const r=t(this,I)-e[i];for(;t(this,$)>r;)c(this,gt,At).call(this,!0)}u(this,$,t(this,$)+e[i]),o&&(o.entrySize=s,o.totalCalculatedSize=t(this,$))})},ht=new WeakMap,pt=new WeakMap,St=new WeakMap,Z=new WeakSet,it=function*({allowStale:e=this.allowStale}={}){if(t(this,A))for(let i=t(this,C);!(!c(this,Et,Mt).call(this,i)||((e||!t(this,H).call(this,i))&&(yield i),i===t(this,z)));)i=t(this,M)[i]},J=new WeakSet,st=function*({allowStale:e=this.allowStale}={}){if(t(this,A))for(let i=t(this,z);!(!c(this,Et,Mt).call(this,i)||((e||!t(this,H).call(this,i))&&(yield i),i===t(this,C)));)i=t(this,N)[i]},Et=new WeakSet,Mt=function(e){return e!==void 0&&t(this,v).get(t(this,E)[e])===e},gt=new WeakSet,At=function(e){var r,a;const i=t(this,z),s=t(this,E)[i],o=t(this,p)[i];return t(this,nt)&&c(this,w,S).call(this,o)?o.__abortController.abort(new Error("evicted")):(t(this,K)||t(this,R))&&(t(this,K)&&((r=t(this,V))==null||r.call(this,o,s,"evict")),t(this,R)&&((a=t(this,T))==null||a.push([o,s,"evict"]))),t(this,ht).call(this,i),e&&(t(this,E)[i]=void 0,t(this,p)[i]=void 0,t(this,q).push(i)),t(this,A)===1?(u(this,z,u(this,C,0)),t(this,q).length=0):u(this,z,t(this,N)[i]),t(this,v).delete(s),Ot(this,A)._--,i},mt=new WeakSet,Ft=function(e,i,s,o){const r=i===void 0?void 0:t(this,p)[i];if(c(this,w,S).call(this,r))return r;const a=new jt,{signal:h}=s;h==null||h.addEventListener("abort",()=>a.abort(h.reason),{signal:a.signal});const l={signal:a.signal,options:s,context:o},m=(x,j=!1)=>{const{aborted:f}=a.signal,y=s.ignoreFetchAbort&&x!==void 0;if(s.status&&(f&&!j?(s.status.fetchAborted=!0,s.status.fetchError=a.signal.reason,y&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),f&&!y&&!j)return b(a.signal.reason);const L=_;return t(this,p)[i]===_&&(x===void 0?L.__staleWhileFetching?t(this,p)[i]=L.__staleWhileFetching:this.delete(e):(s.status&&(s.status.fetchUpdated=!0),this.set(e,x,l.options))),x},F=x=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=x),b(x)),b=x=>{const{aborted:j}=a.signal,f=j&&s.allowStaleOnFetchAbort,y=f||s.allowStaleOnFetchRejection,L=y||s.noDeleteOnFetchRejection,D=_;if(t(this,p)[i]===_&&(!L||D.__staleWhileFetching===void 0?this.delete(e):f||(t(this,p)[i]=D.__staleWhileFetching)),y)return s.status&&D.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw x},W=(x,j)=>{var y;const f=(y=t(this,dt))==null?void 0:y.call(this,e,r,l);f&&f instanceof Promise&&f.then(L=>x(L===void 0?void 0:L),j),a.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(x(void 0),s.allowStaleOnFetchAbort&&(x=L=>m(L,!0)))})};s.status&&(s.status.fetchDispatched=!0);const _=new Promise(W).then(m,F),P=Object.assign(_,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(e,P,{...l.options,status:void 0}),i=t(this,v).get(e)):t(this,p)[i]=P,P},w=new WeakSet,S=function(e){if(!t(this,nt))return!1;const i=e;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof jt},xt=new WeakSet,Gt=function(e,i){t(this,M)[i]=e,t(this,N)[e]=i},lt=new WeakSet,wt=function(e){e!==t(this,C)&&(e===t(this,z)?u(this,z,t(this,N)[e]):c(this,xt,Gt).call(this,t(this,M)[e],t(this,N)[e]),c(this,xt,Gt).call(this,t(this,C),e),u(this,C,e))};let Lt=Ut;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getMDXComponent=Fe;Dt.getMDXExport=ie;var Oe=kt(ae()),ve=kt(d),Ae=kt(ce);function ee(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(ee=function(s){return s?i:e})(n)}function kt(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=ee(e);if(i&&i.has(n))return i.get(n);var s={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in n)if(r!=="default"&&{}.hasOwnProperty.call(n,r)){var a=o?Object.getOwnPropertyDescriptor(n,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=n[r]}return s.default=n,i&&i.set(n,s),s}function Fe(n,e){return ie(n,e).default}function ie(n,e){const i={React:Oe,ReactDOM:Ae,_jsx_runtime:ve,...e};return new Function(...Object.keys(i),n)(...Object.values(i))}var je=Dt;const Pt=n=>n.replace(/\\/g,"/");function se(n,e,i){const[,s]=n.replace(/\\|\//g,e).split(`${i==="playground"?"example":"exercises"}${e}`);return s}const Ht="border-border bg-[var(--shiki-background)] hover:bg-foreground/20 active:bg-foreground/30 box-content block rounded border-2 px-2 py-0.5 font-mono text-xs font-semibold outline-none transition duration-300 ease-in-out";function Ce({"data-buttons":n,"data-filename":e,"data-fullpath":i,"data-sep":s="/","data-start":o,"data-type":r}){var W;const a=ue();if(r==="other"||!n||!e||!i)return null;const h=Pt(((W=a[a.type])==null?void 0:W.fullPath)??""),l=!i.startsWith(h),m=ENV.EPICSHOP_DEPLOYED?["problem","solution"]:["problem","solution","playground"],F=n.split(","),b=m.filter(_=>F.includes(_));return d.jsx(d.Fragment,{children:b.map(_=>{var f;const P=a[_];if(_==="playground"){const y=a.playground&&a.playground.appName!==((f=a.problem)==null?void 0:f.name);if(!P||y||l)return d.jsxs("button",{className:Tt(Ht,"cursor-not-allowed"),title:y?"Playground is not set to the right app":l?"This file is from different app":"You must 'Set to Playground' before opening a file",children:[d.jsx("span",{className:"uppercase",children:"Open"})," in ",_]},_)}if(!P||!P.fullPath)return null;const x=[Pt(P.fullPath),Pt(e)].join(s),j=se(x,s,_);return d.jsx(Kt,{file:x,line:Number(o??1),children:d.jsxs("span",{title:j,className:Ht,children:[d.jsx("span",{className:"uppercase",children:"Open"})," in ",_]})},_)})})}function Te(){const[n,e]=bt.useState(!1);return bt.useEffect(()=>{if(n){const i=setTimeout(()=>e(!1),1500);return()=>clearTimeout(i)}},[n]),d.jsx("button",{className:de(Ht,"w-12 uppercase"),onClick:i=>{var r,a,h;e(!0);const o=((h=(a=(r=i.currentTarget.parentElement)==null?void 0:r.parentElement)==null?void 0:a.querySelector("pre"))==null?void 0:h.textContent)||"";navigator.clipboard.writeText(o)},children:n?"copied":"copy"})}function De({children:n,...e}){const{"data-buttons":i,"data-filename":s,"data-fullpath":o,"data-nocopy":r,"data-sep":a}=e,h=r===void 0;function l(){if(o&&a)return!s||s.includes("..")?{"data-filename":se(o,a)}:{"data-filename":s.replace(/\//g,a)}}return d.jsxs("div",{className:"group relative",children:[d.jsxs("div",{className:"absolute right-0 top-0 z-50 m-2 flex items-baseline justify-end gap-4 opacity-0 transition duration-300 ease-in-out focus-within:opacity-100 group-hover:opacity-100",children:[i?d.jsx(Ce,{...e}):null,h?d.jsx(Te,{}):null]}),d.jsx("pre",{...e,className:Tt("scrollbar-thin scrollbar-thumb-scrollbar",e.className??""),...l(),children:n})]})}const ze={h1:n=>d.jsx(ct,{...n,as:"h1"}),h2:n=>d.jsx(ct,{...n,as:"h2"}),h3:n=>d.jsx(ct,{...n,as:"h3"}),h4:n=>d.jsx(ct,{...n,as:"h4"}),h5:n=>d.jsx(ct,{...n,as:"h5"}),h6:n=>d.jsx(ct,{...n,as:"h6"}),a:pe,p:n=>d.jsx("div",{...n}),pre:n=>d.jsx("pre",{...n,className:Tt("scrollbar-thin scrollbar-thumb-scrollbar",n.className??"")}),LaunchEditor:Kt,VideoEmbed:ge,EpicVideo:me};function Pe(n){const e=je.getMDXComponent(n);function i({components:s,...o}){const r=bt.useMemo(()=>({...ze,...s}),[s]);return d.jsx(e,{components:r,...o})}return i}const Nt=new Lt({max:1e3});function Ne(n){return bt.useMemo(()=>{if(Nt.has(n))return Nt.get(n);const e=Pe(n);return Nt.set(n,e),e},[n])}function Xe({code:n,components:e}){const i=Ne(n),s=bt.useMemo(()=>({Icon:fe,pre:De,Link:Xt,...e}),[e]);return d.jsx(i,{components:s})}export{Be as E,Kt as L,Xe as M};
2
- //# sourceMappingURL=mdx-CZ_BPVoS.js.map