@hep-code-runner/react 3.3.9 → 3.3.10

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.
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare interface CodeRunnerProps {
35
35
  executorLabel?: string;
36
36
  onExecuteStart?: () => void;
37
37
  onExecuteEnd?: (result: ExecuteResult) => void;
38
- onLanguageChange?: (language: string, code: string) => void;
38
+ onLanguageChange?: (language: string, code: string, snippet: string) => void;
39
39
  onLanguageUpdate?: (language: string) => void;
40
40
  onCodeUpdate?: (code: string) => void;
41
41
  onChange?: (code: string) => void;
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react");var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var He,De={exports:{}},_e={},ze,Ie={};process.env.NODE_ENV==="production"?De.exports=function(){if(He)return _e;He=1;var d=m,t=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,b=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function s(N,E,y){var S,A={},L=null,v=null;for(S in y!==void 0&&(L=""+y),E.key!==void 0&&(L=""+E.key),E.ref!==void 0&&(v=E.ref),E)u.call(E,S)&&!w.hasOwnProperty(S)&&(A[S]=E[S]);if(N&&N.defaultProps)for(S in E=N.defaultProps)A[S]===void 0&&(A[S]=E[S]);return{$$typeof:t,type:N,key:L,ref:v,props:A,_owner:b.current}}return _e.Fragment=l,_e.jsx=s,_e.jsxs=s,_e}():De.exports=(ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var d,t=m,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),E=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),j=Symbol.iterator,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(e){for(var g=arguments.length,f=new Array(g>1?g-1:0),D=1;D<g;D++)f[D-1]=arguments[D];(function(I,O,_){var F=r.ReactDebugCurrentFrame.getStackAddendum();F!==""&&(O+="%s",_=_.concat([F]));var M=_.map(function(U){return String(U)});M.unshift("Warning: "+O),Function.prototype.apply.call(console[I],console,M)})("error",e,f)}function a(e){return e.displayName||"Context"}function o(e){if(e==null)return null;if(typeof e.tag=="number"&&n("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case u:return"Portal";case s:return"Profiler";case w:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:return a(e)+".Consumer";case N:return a(e._context)+".Provider";case y:return function(O,_,F){var M=O.displayName;if(M)return M;var U=_.displayName||_.name||"";return U!==""?F+"("+U+")":F}(e,e.render,"ForwardRef");case L:var g=e.displayName||null;return g!==null?g:o(e.type)||"Memo";case v:var f=e,D=f._payload,I=f._init;try{return o(I(D))}catch{return null}}return null}d=Symbol.for("react.module.reference");var i,h,p,k,z,B,Q,q=Object.assign,Z=0;function me(){}me.__reactDisabledLog=!0;var he,ce=r.ReactCurrentDispatcher;function $(e,g,f){if(he===void 0)try{throw Error()}catch(I){var D=I.stack.trim().match(/\n( *(at )?)/);he=D&&D[1]||""}return`
2
- `+he+e}var W,V=!1,K=typeof WeakMap=="function"?WeakMap:Map;function oe(e,g){if(!e||V)return"";var f,D=W.get(e);if(D!==void 0)return D;V=!0;var I,O=Error.prepareStackTrace;Error.prepareStackTrace=void 0,I=ce.current,ce.current=null,function(){if(Z===0){i=console.log,h=console.info,p=console.warn,k=console.error,z=console.group,B=console.groupCollapsed,Q=console.groupEnd;var R={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}Z++}();try{if(g){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(R){f=R}Reflect.construct(e,[],_)}else{try{_.call()}catch(R){f=R}e.call(_.prototype)}}else{try{throw Error()}catch(R){f=R}e()}}catch(R){if(R&&f&&typeof R.stack=="string"){for(var F=R.stack.split(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react");var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var He,De={exports:{}},_e={},ze,Ce={};process.env.NODE_ENV==="production"?De.exports=function(){if(He)return _e;He=1;var d=m,t=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,b=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function s(N,E,y){var S,A={},L=null,v=null;for(S in y!==void 0&&(L=""+y),E.key!==void 0&&(L=""+E.key),E.ref!==void 0&&(v=E.ref),E)u.call(E,S)&&!w.hasOwnProperty(S)&&(A[S]=E[S]);if(N&&N.defaultProps)for(S in E=N.defaultProps)A[S]===void 0&&(A[S]=E[S]);return{$$typeof:t,type:N,key:L,ref:v,props:A,_owner:b.current}}return _e.Fragment=l,_e.jsx=s,_e.jsxs=s,_e}():De.exports=(ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var d,t=m,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),E=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),j=Symbol.iterator,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(e){for(var g=arguments.length,f=new Array(g>1?g-1:0),D=1;D<g;D++)f[D-1]=arguments[D];(function(I,O,_){var F=r.ReactDebugCurrentFrame.getStackAddendum();F!==""&&(O+="%s",_=_.concat([F]));var M=_.map(function(U){return String(U)});M.unshift("Warning: "+O),Function.prototype.apply.call(console[I],console,M)})("error",e,f)}function a(e){return e.displayName||"Context"}function o(e){if(e==null)return null;if(typeof e.tag=="number"&&n("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case u:return"Portal";case s:return"Profiler";case w:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:return a(e)+".Consumer";case N:return a(e._context)+".Provider";case y:return function(O,_,F){var M=O.displayName;if(M)return M;var U=_.displayName||_.name||"";return U!==""?F+"("+U+")":F}(e,e.render,"ForwardRef");case L:var g=e.displayName||null;return g!==null?g:o(e.type)||"Memo";case v:var f=e,D=f._payload,I=f._init;try{return o(I(D))}catch{return null}}return null}d=Symbol.for("react.module.reference");var i,h,p,k,z,B,Q,q=Object.assign,Z=0;function me(){}me.__reactDisabledLog=!0;var ge,ue=r.ReactCurrentDispatcher;function $(e,g,f){if(ge===void 0)try{throw Error()}catch(I){var D=I.stack.trim().match(/\n( *(at )?)/);ge=D&&D[1]||""}return`
2
+ `+ge+e}var W,V=!1,K=typeof WeakMap=="function"?WeakMap:Map;function ie(e,g){if(!e||V)return"";var f,D=W.get(e);if(D!==void 0)return D;V=!0;var I,O=Error.prepareStackTrace;Error.prepareStackTrace=void 0,I=ue.current,ue.current=null,function(){if(Z===0){i=console.log,h=console.info,p=console.warn,k=console.error,z=console.group,B=console.groupCollapsed,Q=console.groupEnd;var R={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}Z++}();try{if(g){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(R){f=R}Reflect.construct(e,[],_)}else{try{_.call()}catch(R){f=R}e.call(_.prototype)}}else{try{throw Error()}catch(R){f=R}e()}}catch(R){if(R&&f&&typeof R.stack=="string"){for(var F=R.stack.split(`
3
3
  `),M=f.stack.split(`
4
4
  `),U=F.length-1,P=M.length-1;U>=1&&P>=0&&F[U]!==M[P];)P--;for(;U>=1&&P>=0;U--,P--)if(F[U]!==M[P]){if(U!==1||P!==1)do if(U--,--P<0||F[U]!==M[P]){var T=`
5
- `+F[U].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,T),T}while(U>=1&&P>=0);break}}}finally{V=!1,ce.current=I,function(){if(--Z===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},R,{value:i}),info:q({},R,{value:h}),warn:q({},R,{value:p}),error:q({},R,{value:k}),group:q({},R,{value:z}),groupCollapsed:q({},R,{value:B}),groupEnd:q({},R,{value:Q})})}Z<0&&n("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=O}var G=e?e.displayName||e.name:"",X=G?$(G):"";return typeof e=="function"&&W.set(e,X),X}function ee(e,g,f){if(e==null)return"";if(typeof e=="function")return oe(e,!(!(D=e.prototype)||!D.isReactComponent));var D;if(typeof e=="string")return $(e);switch(e){case S:return $("Suspense");case A:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return oe(e.render,!1);case L:return ee(e.type,g,f);case v:var I=e,O=I._payload,_=I._init;try{return ee(_(O),g,f)}catch{}}return""}W=new K;var ie=Object.prototype.hasOwnProperty,ne={},J=r.ReactDebugCurrentFrame;function te(e){if(e){var g=e._owner,f=ee(e.type,e._source,g?g.type:null);J.setExtraStackFrame(f)}else J.setExtraStackFrame(null)}var se=Array.isArray;function ue(e){return se(e)}function re(e){return""+e}function pe(e){if(function(g){try{return re(g),!1}catch{return!0}}(e))return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(g){return typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object"}(e)),re(e)}var ae,Ne,be=r.ReactCurrentOwner,ve={key:!0,ref:!0,__self:!0,__source:!0};function Le(e,g,f,D,I){var O,_={},F=null,M=null;for(O in f!==void 0&&(pe(f),F=""+f),function(T){if(ie.call(T,"key")){var G=Object.getOwnPropertyDescriptor(T,"key").get;if(G&&G.isReactWarning)return!1}return T.key!==void 0}(g)&&(pe(g.key),F=""+g.key),function(T){if(ie.call(T,"ref")){var G=Object.getOwnPropertyDescriptor(T,"ref").get;if(G&&G.isReactWarning)return!1}return T.ref!==void 0}(g)&&(M=g.ref,function(T){typeof T.ref=="string"&&be.current}(g)),g)ie.call(g,O)&&!ve.hasOwnProperty(O)&&(_[O]=g[O]);if(e&&e.defaultProps){var U=e.defaultProps;for(O in U)_[O]===void 0&&(_[O]=U[O])}if(F||M){var P=typeof e=="function"?e.displayName||e.name||"Unknown":e;F&&function(T,G){var X=function(){ae||(ae=!0,n("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(T,"key",{get:X,configurable:!0})}(_,P),M&&function(T,G){var X=function(){Ne||(Ne=!0,n("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(T,"ref",{get:X,configurable:!0})}(_,P)}return function(T,G,X,R,H,Re,Te){var le={$$typeof:l,type:T,key:G,ref:X,props:Te,_owner:Re,_store:{}};return Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le}(e,F,M,I,D,be.current,_)}var xe,Se=r.ReactCurrentOwner,Fe=r.ReactDebugCurrentFrame;function ge(e){if(e){var g=e._owner,f=ee(e.type,e._source,g?g.type:null);Fe.setExtraStackFrame(f)}else Fe.setExtraStackFrame(null)}function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Oe(){if(Se.current){var e=o(Se.current.type);if(e)return`
5
+ `+F[U].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,T),T}while(U>=1&&P>=0);break}}}finally{V=!1,ue.current=I,function(){if(--Z===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},R,{value:i}),info:q({},R,{value:h}),warn:q({},R,{value:p}),error:q({},R,{value:k}),group:q({},R,{value:z}),groupCollapsed:q({},R,{value:B}),groupEnd:q({},R,{value:Q})})}Z<0&&n("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=O}var G=e?e.displayName||e.name:"",X=G?$(G):"";return typeof e=="function"&&W.set(e,X),X}function ee(e,g,f){if(e==null)return"";if(typeof e=="function")return ie(e,!(!(D=e.prototype)||!D.isReactComponent));var D;if(typeof e=="string")return $(e);switch(e){case S:return $("Suspense");case A:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return ie(e.render,!1);case L:return ee(e.type,g,f);case v:var I=e,O=I._payload,_=I._init;try{return ee(_(O),g,f)}catch{}}return""}W=new K;var se=Object.prototype.hasOwnProperty,ne={},J=r.ReactDebugCurrentFrame;function te(e){if(e){var g=e._owner,f=ee(e.type,e._source,g?g.type:null);J.setExtraStackFrame(f)}else J.setExtraStackFrame(null)}var le=Array.isArray;function pe(e){return le(e)}function re(e){return""+e}function de(e){if(function(g){try{return re(g),!1}catch{return!0}}(e))return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(g){return typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object"}(e)),re(e)}var ae,Fe,be=r.ReactCurrentOwner,ve={key:!0,ref:!0,__self:!0,__source:!0};function Le(e,g,f,D,I){var O,_={},F=null,M=null;for(O in f!==void 0&&(de(f),F=""+f),function(T){if(se.call(T,"key")){var G=Object.getOwnPropertyDescriptor(T,"key").get;if(G&&G.isReactWarning)return!1}return T.key!==void 0}(g)&&(de(g.key),F=""+g.key),function(T){if(se.call(T,"ref")){var G=Object.getOwnPropertyDescriptor(T,"ref").get;if(G&&G.isReactWarning)return!1}return T.ref!==void 0}(g)&&(M=g.ref,function(T){typeof T.ref=="string"&&be.current}(g)),g)se.call(g,O)&&!ve.hasOwnProperty(O)&&(_[O]=g[O]);if(e&&e.defaultProps){var U=e.defaultProps;for(O in U)_[O]===void 0&&(_[O]=U[O])}if(F||M){var P=typeof e=="function"?e.displayName||e.name||"Unknown":e;F&&function(T,G){var X=function(){ae||(ae=!0,n("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(T,"key",{get:X,configurable:!0})}(_,P),M&&function(T,G){var X=function(){Fe||(Fe=!0,n("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(T,"ref",{get:X,configurable:!0})}(_,P)}return function(T,G,X,R,H,Ie,Te){var ce={$$typeof:l,type:T,key:G,ref:X,props:Te,_owner:Ie,_store:{}};return Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce}(e,F,M,I,D,be.current,_)}var xe,Se=r.ReactCurrentOwner,Oe=r.ReactDebugCurrentFrame;function fe(e){if(e){var g=e._owner,f=ee(e.type,e._source,g?g.type:null);Oe.setExtraStackFrame(f)}else Oe.setExtraStackFrame(null)}function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Re(){if(Se.current){var e=o(Se.current.type);if(e)return`
6
6
 
7
- Check the render method of \``+e+"`."}return""}xe=!1;var ke={};function we(e,g){if(e._store&&!e._store.validated&&e.key==null){e._store.validated=!0;var f=function(I){var O=Oe();if(!O){var _=typeof I=="string"?I:I.displayName||I.name;_&&(O=`
7
+ Check the render method of \``+e+"`."}return""}xe=!1;var ke={};function we(e,g){if(e._store&&!e._store.validated&&e.key==null){e._store.validated=!0;var f=function(I){var O=Re();if(!O){var _=typeof I=="string"?I:I.displayName||I.name;_&&(O=`
8
8
 
9
- Check the top-level render call using <`+_+">.")}return O}(g);if(!ke[f]){ke[f]=!0;var D="";e&&e._owner&&e._owner!==Se.current&&(D=" It was passed a child from "+o(e._owner.type)+"."),ge(e),n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,D),ge(null)}}}function x(e,g){if(typeof e=="object"){if(ue(e))for(var f=0;f<e.length;f++){var D=e[f];ye(D)&&we(D,g)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var I=function(F){if(F===null||typeof F!="object")return null;var M=j&&F[j]||F["@@iterator"];return typeof M=="function"?M:null}(e);if(typeof I=="function"&&I!==e.entries)for(var O,_=I.call(e);!(O=_.next()).done;)ye(O.value)&&we(O.value,g)}}}function Y(e){var g,f=e.type;if(f!=null&&typeof f!="string"){if(typeof f=="function")g=f.propTypes;else{if(typeof f!="object"||f.$$typeof!==y&&f.$$typeof!==L)return;g=f.propTypes}if(g){var D=o(f);(function(I,O,_,F,M){var U=Function.call.bind(ie);for(var P in I)if(U(I,P)){var T=void 0;try{if(typeof I[P]!="function"){var G=Error((F||"React class")+": "+_+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}T=I[P](O,P,F,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){T=X}!T||T instanceof Error||(te(M),n("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",_,P,typeof T),te(null)),T instanceof Error&&!(T.message in ne)&&(ne[T.message]=!0,te(M),n("Failed %s type: %s",_,T.message),te(null))}})(g,e.props,"prop",D,e)}else f.PropTypes===void 0||xe||(xe=!0,n("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o(f)||"Unknown"));typeof f.getDefaultProps!="function"||f.getDefaultProps.isReactClassApproved||n("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var de={};function fe(e,g,f,D,I,O){var _=function(H){return typeof H=="string"||typeof H=="function"||H===b||H===s||H===w||H===S||H===A||H===C||typeof H=="object"&&H!==null&&(H.$$typeof===v||H.$$typeof===L||H.$$typeof===N||H.$$typeof===E||H.$$typeof===y||H.$$typeof===d||H.getModuleId!==void 0)}(e);if(!_){var F,M="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),M+=Oe(),e===null?F="null":ue(e)?F="array":e!==void 0&&e.$$typeof===l?(F="<"+(o(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):F=typeof e,n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,M)}var U=Le(e,g,f,I,O);if(U==null)return U;if(_){var P=g.children;if(P!==void 0)if(D)if(ue(P)){for(var T=0;T<P.length;T++)x(P[T],e);Object.freeze&&Object.freeze(P)}else n("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(P,e)}if(ie.call(g,"key")){var G=o(e),X=Object.keys(g).filter(function(H){return H!=="key"}),R=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";de[G+R]||(n(`A props object containing a "key" prop is being spread into JSX:
9
+ Check the top-level render call using <`+_+">.")}return O}(g);if(!ke[f]){ke[f]=!0;var D="";e&&e._owner&&e._owner!==Se.current&&(D=" It was passed a child from "+o(e._owner.type)+"."),fe(e),n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,D),fe(null)}}}function x(e,g){if(typeof e=="object"){if(pe(e))for(var f=0;f<e.length;f++){var D=e[f];ye(D)&&we(D,g)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var I=function(F){if(F===null||typeof F!="object")return null;var M=j&&F[j]||F["@@iterator"];return typeof M=="function"?M:null}(e);if(typeof I=="function"&&I!==e.entries)for(var O,_=I.call(e);!(O=_.next()).done;)ye(O.value)&&we(O.value,g)}}}function Y(e){var g,f=e.type;if(f!=null&&typeof f!="string"){if(typeof f=="function")g=f.propTypes;else{if(typeof f!="object"||f.$$typeof!==y&&f.$$typeof!==L)return;g=f.propTypes}if(g){var D=o(f);(function(I,O,_,F,M){var U=Function.call.bind(se);for(var P in I)if(U(I,P)){var T=void 0;try{if(typeof I[P]!="function"){var G=Error((F||"React class")+": "+_+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}T=I[P](O,P,F,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){T=X}!T||T instanceof Error||(te(M),n("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",_,P,typeof T),te(null)),T instanceof Error&&!(T.message in ne)&&(ne[T.message]=!0,te(M),n("Failed %s type: %s",_,T.message),te(null))}})(g,e.props,"prop",D,e)}else f.PropTypes===void 0||xe||(xe=!0,n("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o(f)||"Unknown"));typeof f.getDefaultProps!="function"||f.getDefaultProps.isReactClassApproved||n("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function oe(e,g,f,D,I,O){var _=function(H){return typeof H=="string"||typeof H=="function"||H===b||H===s||H===w||H===S||H===A||H===C||typeof H=="object"&&H!==null&&(H.$$typeof===v||H.$$typeof===L||H.$$typeof===N||H.$$typeof===E||H.$$typeof===y||H.$$typeof===d||H.getModuleId!==void 0)}(e);if(!_){var F,M="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),M+=Re(),e===null?F="null":pe(e)?F="array":e!==void 0&&e.$$typeof===l?(F="<"+(o(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):F=typeof e,n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,M)}var U=Le(e,g,f,I,O);if(U==null)return U;if(_){var P=g.children;if(P!==void 0)if(D)if(pe(P)){for(var T=0;T<P.length;T++)x(P[T],e);Object.freeze&&Object.freeze(P)}else n("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(P,e)}if(se.call(g,"key")){var G=o(e),X=Object.keys(g).filter(function(H){return H!=="key"}),R=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";he[G+R]||(n(`A props object containing a "key" prop is being spread into JSX:
10
10
  let props = %s;
11
11
  <%s {...props} />
12
12
  React keys must be passed directly to JSX without using spread:
13
13
  let props = %s;
14
- <%s key={someKey} {...props} />`,R,G,X.length>0?"{"+X.join(": ..., ")+": ...}":"{}",G),de[G+R]=!0)}return e===b?function(H){for(var Re=Object.keys(H.props),Te=0;Te<Re.length;Te++){var le=Re[Te];if(le!=="children"&&le!=="key"){ge(H),n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),ge(null);break}}H.ref!==null&&(ge(H),n("Invalid attribute `ref` supplied to `React.Fragment`."),ge(null))}(U):Y(U),U}var Ee=function(e,g,f){return fe(e,g,f,!1)},Ae=function(e,g,f){return fe(e,g,f,!0)};Ie.Fragment=b,Ie.jsx=Ee,Ie.jsxs=Ae}()),Ie);var c=De.exports,Ge={exports:{}};(function(d){var t=function(l){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,b=0,w={},s={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function r(n){return n instanceof N?new N(n.type,r(n.content),n.alias):Array.isArray(n)?n.map(r):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(r){return Object.prototype.toString.call(r).slice(8,-1)},objId:function(r){return r.__id||Object.defineProperty(r,"__id",{value:++b}),r.__id},clone:function r(n,a){var o,i;switch(a=a||{},s.util.type(n)){case"Object":if(i=s.util.objId(n),a[i])return a[i];for(var h in o={},a[i]=o,n)n.hasOwnProperty(h)&&(o[h]=r(n[h],a));return o;case"Array":return i=s.util.objId(n),a[i]?a[i]:(o=[],a[i]=o,n.forEach(function(p,k){o[k]=r(p,a)}),o);default:return n}},getLanguage:function(r){for(;r;){var n=u.exec(r.className);if(n)return n[1].toLowerCase();r=r.parentElement}return"none"},setLanguage:function(r,n){r.className=r.className.replace(RegExp(u,"gi"),""),r.classList.add("language-"+n)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(o){var r=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack)||[])[1];if(r){var n=document.getElementsByTagName("script");for(var a in n)if(n[a].src==r)return n[a]}return null}},isActive:function(r,n,a){for(var o="no-"+n;r;){var i=r.classList;if(i.contains(n))return!0;if(i.contains(o))return!1;r=r.parentElement}return!!a}},languages:{plain:w,plaintext:w,text:w,txt:w,extend:function(r,n){var a=s.util.clone(s.languages[r]);for(var o in n)a[o]=n[o];return a},insertBefore:function(r,n,a,o){var i=(o=o||s.languages)[r],h={};for(var p in i)if(i.hasOwnProperty(p)){if(p==n)for(var k in a)a.hasOwnProperty(k)&&(h[k]=a[k]);a.hasOwnProperty(p)||(h[p]=i[p])}var z=o[r];return o[r]=h,s.languages.DFS(s.languages,function(B,Q){Q===z&&B!=r&&(this[B]=h)}),h},DFS:function r(n,a,o,i){i=i||{};var h=s.util.objId;for(var p in n)if(n.hasOwnProperty(p)){a.call(n,p,n[p],o||p);var k=n[p],z=s.util.type(k);z!=="Object"||i[h(k)]?z!=="Array"||i[h(k)]||(i[h(k)]=!0,r(k,a,p,i)):(i[h(k)]=!0,r(k,a,null,i))}}},plugins:{},highlightAll:function(r,n){s.highlightAllUnder(document,r,n)},highlightAllUnder:function(r,n,a){var o={callback:a,container:r,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),s.hooks.run("before-all-elements-highlight",o);for(var i,h=0;i=o.elements[h++];)s.highlightElement(i,n===!0,o.callback)},highlightElement:function(r,n,a){var o=s.util.getLanguage(r),i=s.languages[o];s.util.setLanguage(r,o);var h=r.parentElement;h&&h.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(h,o);var p={element:r,language:o,grammar:i,code:r.textContent};function k(B){p.highlightedCode=B,s.hooks.run("before-insert",p),p.element.innerHTML=p.highlightedCode,s.hooks.run("after-highlight",p),s.hooks.run("complete",p),a&&a.call(p.element)}if(s.hooks.run("before-sanity-check",p),(h=p.element.parentElement)&&h.nodeName.toLowerCase()==="pre"&&!h.hasAttribute("tabindex")&&h.setAttribute("tabindex","0"),!p.code)return s.hooks.run("complete",p),void(a&&a.call(p.element));if(s.hooks.run("before-highlight",p),p.grammar)if(n&&l.Worker){var z=new Worker(s.filename);z.onmessage=function(B){k(B.data)},z.postMessage(JSON.stringify({language:p.language,code:p.code,immediateClose:!0}))}else k(s.highlight(p.code,p.grammar,p.language));else k(s.util.encode(p.code))},highlight:function(r,n,a){var o={code:r,grammar:n,language:a};if(s.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=s.tokenize(o.code,o.grammar),s.hooks.run("after-tokenize",o),N.stringify(s.util.encode(o.tokens),o.language)},tokenize:function(r,n){var a=n.rest;if(a){for(var o in a)n[o]=a[o];delete n.rest}var i=new S;return A(i,i.head,r),y(r,i,n,i.head,0),function(h){for(var p=[],k=h.head.next;k!==h.tail;)p.push(k.value),k=k.next;return p}(i)},hooks:{all:{},add:function(r,n){var a=s.hooks.all;a[r]=a[r]||[],a[r].push(n)},run:function(r,n){var a=s.hooks.all[r];if(a&&a.length)for(var o,i=0;o=a[i++];)o(n)}},Token:N};function N(r,n,a,o){this.type=r,this.content=n,this.alias=a,this.length=0|(o||"").length}function E(r,n,a,o){r.lastIndex=n;var i=r.exec(a);if(i&&o&&i[1]){var h=i[1].length;i.index+=h,i[0]=i[0].slice(h)}return i}function y(r,n,a,o,i,h){for(var p in a)if(a.hasOwnProperty(p)&&a[p]){var k=a[p];k=Array.isArray(k)?k:[k];for(var z=0;z<k.length;++z){if(h&&h.cause==p+","+z)return;var B=k[z],Q=B.inside,q=!!B.lookbehind,Z=!!B.greedy,me=B.alias;if(Z&&!B.pattern.global){var he=B.pattern.toString().match(/[imsuy]*$/)[0];B.pattern=RegExp(B.pattern.source,he+"g")}for(var ce=B.pattern||B,$=o.next,W=i;$!==n.tail&&!(h&&W>=h.reach);W+=$.value.length,$=$.next){var V=$.value;if(n.length>r.length)return;if(!(V instanceof N)){var K,oe=1;if(Z){if(!(K=E(ce,W,r,q))||K.index>=r.length)break;var ee=K.index,ie=K.index+K[0].length,ne=W;for(ne+=$.value.length;ee>=ne;)ne+=($=$.next).value.length;if(W=ne-=$.value.length,$.value instanceof N)continue;for(var J=$;J!==n.tail&&(ne<ie||typeof J.value=="string");J=J.next)oe++,ne+=J.value.length;oe--,V=r.slice(W,ne),K.index-=W}else if(!(K=E(ce,0,V,q)))continue;ee=K.index;var te=K[0],se=V.slice(0,ee),ue=V.slice(ee+te.length),re=W+V.length;h&&re>h.reach&&(h.reach=re);var pe=$.prev;if(se&&(pe=A(n,pe,se),W+=se.length),L(n,pe,oe),$=A(n,pe,new N(p,Q?s.tokenize(te,Q):te,me,te)),ue&&A(n,$,ue),oe>1){var ae={cause:p+","+z,reach:re};y(r,n,a,$.prev,W,ae),h&&ae.reach>h.reach&&(h.reach=ae.reach)}}}}}}function S(){var r={value:null,prev:null,next:null},n={value:null,prev:r,next:null};r.next=n,this.head=r,this.tail=n,this.length=0}function A(r,n,a){var o=n.next,i={value:a,prev:n,next:o};return n.next=i,o.prev=i,r.length++,i}function L(r,n,a){for(var o=n.next,i=0;i<a&&o!==r.tail;i++)o=o.next;n.next=o,o.prev=n,r.length-=i}if(l.Prism=s,N.stringify=function r(n,a){if(typeof n=="string")return n;if(Array.isArray(n)){var o="";return n.forEach(function(z){o+=r(z,a)}),o}var i={type:n.type,content:r(n.content,a),tag:"span",classes:["token",n.type],attributes:{},language:a},h=n.alias;h&&(Array.isArray(h)?Array.prototype.push.apply(i.classes,h):i.classes.push(h)),s.hooks.run("wrap",i);var p="";for(var k in i.attributes)p+=" "+k+'="'+(i.attributes[k]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+p+">"+i.content+"</"+i.tag+">"},!l.document)return l.addEventListener&&(s.disableWorkerMessageHandler||l.addEventListener("message",function(r){var n=JSON.parse(r.data),a=n.language,o=n.code,i=n.immediateClose;l.postMessage(s.highlight(o,s.languages[a],a)),i&&l.close()},!1)),s;var v=s.util.currentScript();function C(){s.manual||s.highlightAll()}if(v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var j=document.readyState;j==="loading"||j==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});d.exports&&(d.exports=t),Ue!==void 0&&(Ue.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(l,u){var b={};b["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[u]},b.cdata=/^<!\[CDATA\[|\]\]>$/i;var w={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:b}};w["language-"+u]={pattern:/[\s\S]+/,inside:t.languages[u]};var s={};s[l]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return l}),"i"),lookbehind:!0,greedy:!0,inside:w},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(l,u){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[u,"language-"+u],inside:t.languages[u]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(l){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var b=l.languages.markup;b&&(b.tag.addInlined("style","css"),b.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",b="loading",w="loaded",s="pre[data-src]:not(["+u+'="'+w+'"]):not(['+u+'="'+b+'"])';t.hooks.add("before-highlightall",function(E){E.selector+=", "+s}),t.hooks.add("before-sanity-check",function(E){var y=E.element;if(y.matches(s)){E.code="",y.setAttribute(u,b);var S=y.appendChild(document.createElement("CODE"));S.textContent="Loading…";var A=y.getAttribute("data-src"),L=E.language;if(L==="none"){var v=(/\.(\w+)$/.exec(A)||[,"none"])[1];L=l[v]||v}t.util.setLanguage(S,L),t.util.setLanguage(y,L);var C=t.plugins.autoloader;C&&C.loadLanguages(L),function(j,r,n){var a=new XMLHttpRequest;a.open("GET",j,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?r(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"))},a.send(null)}(A,function(j){y.setAttribute(u,w);var r=function(i){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(i||"");if(h){var p=Number(h[1]),k=h[2],z=h[3];return k?z?[p,Number(z)]:[p,void 0]:[p,p]}}(y.getAttribute("data-range"));if(r){var n=j.split(/\r\n?|\n/g),a=r[0],o=r[1]==null?n.length:r[1];a<0&&(a+=n.length),a=Math.max(0,Math.min(a-1,n.length)),o<0&&(o+=n.length),o=Math.max(0,Math.min(o,n.length)),j=n.slice(a,o).join(`
14
+ <%s key={someKey} {...props} />`,R,G,X.length>0?"{"+X.join(": ..., ")+": ...}":"{}",G),he[G+R]=!0)}return e===b?function(H){for(var Ie=Object.keys(H.props),Te=0;Te<Ie.length;Te++){var ce=Ie[Te];if(ce!=="children"&&ce!=="key"){fe(H),n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),fe(null);break}}H.ref!==null&&(fe(H),n("Invalid attribute `ref` supplied to `React.Fragment`."),fe(null))}(U):Y(U),U}var Ee=function(e,g,f){return oe(e,g,f,!1)},Ae=function(e,g,f){return oe(e,g,f,!0)};Ce.Fragment=b,Ce.jsx=Ee,Ce.jsxs=Ae}()),Ce);var c=De.exports,Ge={exports:{}};(function(d){var t=function(l){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,b=0,w={},s={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function r(n){return n instanceof N?new N(n.type,r(n.content),n.alias):Array.isArray(n)?n.map(r):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(r){return Object.prototype.toString.call(r).slice(8,-1)},objId:function(r){return r.__id||Object.defineProperty(r,"__id",{value:++b}),r.__id},clone:function r(n,a){var o,i;switch(a=a||{},s.util.type(n)){case"Object":if(i=s.util.objId(n),a[i])return a[i];for(var h in o={},a[i]=o,n)n.hasOwnProperty(h)&&(o[h]=r(n[h],a));return o;case"Array":return i=s.util.objId(n),a[i]?a[i]:(o=[],a[i]=o,n.forEach(function(p,k){o[k]=r(p,a)}),o);default:return n}},getLanguage:function(r){for(;r;){var n=u.exec(r.className);if(n)return n[1].toLowerCase();r=r.parentElement}return"none"},setLanguage:function(r,n){r.className=r.className.replace(RegExp(u,"gi"),""),r.classList.add("language-"+n)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(o){var r=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack)||[])[1];if(r){var n=document.getElementsByTagName("script");for(var a in n)if(n[a].src==r)return n[a]}return null}},isActive:function(r,n,a){for(var o="no-"+n;r;){var i=r.classList;if(i.contains(n))return!0;if(i.contains(o))return!1;r=r.parentElement}return!!a}},languages:{plain:w,plaintext:w,text:w,txt:w,extend:function(r,n){var a=s.util.clone(s.languages[r]);for(var o in n)a[o]=n[o];return a},insertBefore:function(r,n,a,o){var i=(o=o||s.languages)[r],h={};for(var p in i)if(i.hasOwnProperty(p)){if(p==n)for(var k in a)a.hasOwnProperty(k)&&(h[k]=a[k]);a.hasOwnProperty(p)||(h[p]=i[p])}var z=o[r];return o[r]=h,s.languages.DFS(s.languages,function(B,Q){Q===z&&B!=r&&(this[B]=h)}),h},DFS:function r(n,a,o,i){i=i||{};var h=s.util.objId;for(var p in n)if(n.hasOwnProperty(p)){a.call(n,p,n[p],o||p);var k=n[p],z=s.util.type(k);z!=="Object"||i[h(k)]?z!=="Array"||i[h(k)]||(i[h(k)]=!0,r(k,a,p,i)):(i[h(k)]=!0,r(k,a,null,i))}}},plugins:{},highlightAll:function(r,n){s.highlightAllUnder(document,r,n)},highlightAllUnder:function(r,n,a){var o={callback:a,container:r,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),s.hooks.run("before-all-elements-highlight",o);for(var i,h=0;i=o.elements[h++];)s.highlightElement(i,n===!0,o.callback)},highlightElement:function(r,n,a){var o=s.util.getLanguage(r),i=s.languages[o];s.util.setLanguage(r,o);var h=r.parentElement;h&&h.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(h,o);var p={element:r,language:o,grammar:i,code:r.textContent};function k(B){p.highlightedCode=B,s.hooks.run("before-insert",p),p.element.innerHTML=p.highlightedCode,s.hooks.run("after-highlight",p),s.hooks.run("complete",p),a&&a.call(p.element)}if(s.hooks.run("before-sanity-check",p),(h=p.element.parentElement)&&h.nodeName.toLowerCase()==="pre"&&!h.hasAttribute("tabindex")&&h.setAttribute("tabindex","0"),!p.code)return s.hooks.run("complete",p),void(a&&a.call(p.element));if(s.hooks.run("before-highlight",p),p.grammar)if(n&&l.Worker){var z=new Worker(s.filename);z.onmessage=function(B){k(B.data)},z.postMessage(JSON.stringify({language:p.language,code:p.code,immediateClose:!0}))}else k(s.highlight(p.code,p.grammar,p.language));else k(s.util.encode(p.code))},highlight:function(r,n,a){var o={code:r,grammar:n,language:a};if(s.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=s.tokenize(o.code,o.grammar),s.hooks.run("after-tokenize",o),N.stringify(s.util.encode(o.tokens),o.language)},tokenize:function(r,n){var a=n.rest;if(a){for(var o in a)n[o]=a[o];delete n.rest}var i=new S;return A(i,i.head,r),y(r,i,n,i.head,0),function(h){for(var p=[],k=h.head.next;k!==h.tail;)p.push(k.value),k=k.next;return p}(i)},hooks:{all:{},add:function(r,n){var a=s.hooks.all;a[r]=a[r]||[],a[r].push(n)},run:function(r,n){var a=s.hooks.all[r];if(a&&a.length)for(var o,i=0;o=a[i++];)o(n)}},Token:N};function N(r,n,a,o){this.type=r,this.content=n,this.alias=a,this.length=0|(o||"").length}function E(r,n,a,o){r.lastIndex=n;var i=r.exec(a);if(i&&o&&i[1]){var h=i[1].length;i.index+=h,i[0]=i[0].slice(h)}return i}function y(r,n,a,o,i,h){for(var p in a)if(a.hasOwnProperty(p)&&a[p]){var k=a[p];k=Array.isArray(k)?k:[k];for(var z=0;z<k.length;++z){if(h&&h.cause==p+","+z)return;var B=k[z],Q=B.inside,q=!!B.lookbehind,Z=!!B.greedy,me=B.alias;if(Z&&!B.pattern.global){var ge=B.pattern.toString().match(/[imsuy]*$/)[0];B.pattern=RegExp(B.pattern.source,ge+"g")}for(var ue=B.pattern||B,$=o.next,W=i;$!==n.tail&&!(h&&W>=h.reach);W+=$.value.length,$=$.next){var V=$.value;if(n.length>r.length)return;if(!(V instanceof N)){var K,ie=1;if(Z){if(!(K=E(ue,W,r,q))||K.index>=r.length)break;var ee=K.index,se=K.index+K[0].length,ne=W;for(ne+=$.value.length;ee>=ne;)ne+=($=$.next).value.length;if(W=ne-=$.value.length,$.value instanceof N)continue;for(var J=$;J!==n.tail&&(ne<se||typeof J.value=="string");J=J.next)ie++,ne+=J.value.length;ie--,V=r.slice(W,ne),K.index-=W}else if(!(K=E(ue,0,V,q)))continue;ee=K.index;var te=K[0],le=V.slice(0,ee),pe=V.slice(ee+te.length),re=W+V.length;h&&re>h.reach&&(h.reach=re);var de=$.prev;if(le&&(de=A(n,de,le),W+=le.length),L(n,de,ie),$=A(n,de,new N(p,Q?s.tokenize(te,Q):te,me,te)),pe&&A(n,$,pe),ie>1){var ae={cause:p+","+z,reach:re};y(r,n,a,$.prev,W,ae),h&&ae.reach>h.reach&&(h.reach=ae.reach)}}}}}}function S(){var r={value:null,prev:null,next:null},n={value:null,prev:r,next:null};r.next=n,this.head=r,this.tail=n,this.length=0}function A(r,n,a){var o=n.next,i={value:a,prev:n,next:o};return n.next=i,o.prev=i,r.length++,i}function L(r,n,a){for(var o=n.next,i=0;i<a&&o!==r.tail;i++)o=o.next;n.next=o,o.prev=n,r.length-=i}if(l.Prism=s,N.stringify=function r(n,a){if(typeof n=="string")return n;if(Array.isArray(n)){var o="";return n.forEach(function(z){o+=r(z,a)}),o}var i={type:n.type,content:r(n.content,a),tag:"span",classes:["token",n.type],attributes:{},language:a},h=n.alias;h&&(Array.isArray(h)?Array.prototype.push.apply(i.classes,h):i.classes.push(h)),s.hooks.run("wrap",i);var p="";for(var k in i.attributes)p+=" "+k+'="'+(i.attributes[k]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+p+">"+i.content+"</"+i.tag+">"},!l.document)return l.addEventListener&&(s.disableWorkerMessageHandler||l.addEventListener("message",function(r){var n=JSON.parse(r.data),a=n.language,o=n.code,i=n.immediateClose;l.postMessage(s.highlight(o,s.languages[a],a)),i&&l.close()},!1)),s;var v=s.util.currentScript();function C(){s.manual||s.highlightAll()}if(v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var j=document.readyState;j==="loading"||j==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});d.exports&&(d.exports=t),Ue!==void 0&&(Ue.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(l,u){var b={};b["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[u]},b.cdata=/^<!\[CDATA\[|\]\]>$/i;var w={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:b}};w["language-"+u]={pattern:/[\s\S]+/,inside:t.languages[u]};var s={};s[l]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return l}),"i"),lookbehind:!0,greedy:!0,inside:w},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(l,u){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[u,"language-"+u],inside:t.languages[u]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(l){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var b=l.languages.markup;b&&(b.tag.addInlined("style","css"),b.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",b="loading",w="loaded",s="pre[data-src]:not(["+u+'="'+w+'"]):not(['+u+'="'+b+'"])';t.hooks.add("before-highlightall",function(E){E.selector+=", "+s}),t.hooks.add("before-sanity-check",function(E){var y=E.element;if(y.matches(s)){E.code="",y.setAttribute(u,b);var S=y.appendChild(document.createElement("CODE"));S.textContent="Loading…";var A=y.getAttribute("data-src"),L=E.language;if(L==="none"){var v=(/\.(\w+)$/.exec(A)||[,"none"])[1];L=l[v]||v}t.util.setLanguage(S,L),t.util.setLanguage(y,L);var C=t.plugins.autoloader;C&&C.loadLanguages(L),function(j,r,n){var a=new XMLHttpRequest;a.open("GET",j,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?r(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"))},a.send(null)}(A,function(j){y.setAttribute(u,w);var r=function(i){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(i||"");if(h){var p=Number(h[1]),k=h[2],z=h[3];return k?z?[p,Number(z)]:[p,void 0]:[p,p]}}(y.getAttribute("data-range"));if(r){var n=j.split(/\r\n?|\n/g),a=r[0],o=r[1]==null?n.length:r[1];a<0&&(a+=n.length),a=Math.max(0,Math.min(a-1,n.length)),o<0&&(o+=n.length),o=Math.max(0,Math.min(o,n.length)),j=n.slice(a,o).join(`
15
15
  `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(a+1))}S.textContent=j,t.highlightElement(S)},function(j){y.setAttribute(u,"failed"),S.textContent=j})}}),t.plugins.fileHighlight={highlight:function(E){for(var y,S=(E||document).querySelectorAll(s),A=0;y=S[A++];)t.highlightElement(y)}};var N=!1;t.fileHighlight=function(){N||(N=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()})(Ge);const $e=We(Ge.exports);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(d){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,l=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,u={pattern:RegExp(/(^|[^\w.])/.source+l+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};d.languages.java=d.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[u,{pattern:RegExp(/(^|[^\w.])/.source+l+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:u.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+l+/[A-Z]\w*\b/.source),lookbehind:!0,inside:u.inside}],keyword:t,function:[d.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),d.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),d.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":u,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+l+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:u.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+l+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:u.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(d){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),d.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},d.languages.rust["closure-params"].inside.rest=d.languages.rust,d.languages.rust.attribute.inside.string=d.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(d){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",l={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:l,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};d.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:l}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:u.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},l.inside=d.languages.bash;for(var b=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],w=u.variable[1].inside,s=0;s<b.length;s++)w[b[s]]=d.languages.bash[b[s]];d.languages.sh=d.languages.bash,d.languages.shell=d.languages.bash}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json;window.Prism=$e;const Ye={javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"},Xe=({value:d,language:t,theme:l="dark",disabled:u=!1,onChange:b,onCodeChange:w})=>{const s=m.useRef(null),N=m.useRef(null),E=m.useRef(null),y=m.useMemo(()=>Ye[t.toLowerCase()]||"javascript",[t]),S=l==="dark"?"#1e1e1e":"#fafafa",A=m.useMemo(()=>{try{const v=$e.languages[y];if(v)return $e.highlight(d||"",v,y)}catch{}return function(v){const C=document.createElement("div");return C.textContent=v,C.innerHTML}(d||"")},[d,y]),L=m.useCallback(v=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{w==null||w(v)},500)},[w]);return m.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),m.useEffect(()=>{(function(v){if(typeof document>"u")return;const C="hep-cr-prism-styles",j=document.getElementById(C),r=v==="dark"?`
16
16
  /* 默认代码颜色 */
17
17
  .hep-cr-editor .hep-cr-highlight code,
@@ -295,8 +295,8 @@ h1 {
295
295
  color: #333;
296
296
  }`,sql:"SELECT 'Hello, World!' AS message;",markdown:`# Hello, World!
297
297
 
298
- This is a sample markdown document.`};function Ce(d){const t=d.toLowerCase().split(":")[0];return qe[t]||`// ${d}
299
- // Write your code here`}const Me=({pistonUrl:d="/api/piston",token:t="",language:l="javascript",code:u="",theme:b="light",themeColor:w="",showLanguageSelector:s=!0,showEditor:N=!0,editable:E=!0,executorLabel:y="运行",onExecuteStart:S,onExecuteEnd:A,onLanguageChange:L,onLanguageUpdate:v,onCodeUpdate:C,onChange:j})=>{const[r,n]=m.useState([]),[a,o]=m.useState(l||"javascript"),[i,h]=m.useState(u),[p,k]=m.useState(b),[z,B]=m.useState(""),[Q,q]=m.useState(""),[Z,me]=m.useState(!1),[he,ce]=m.useState(null),[$,W]=m.useState("stdout"),[V,K]=m.useState(null),[oe,ee]=m.useState(!0),[ie,ne]=m.useState(60),[J,te]=m.useState(!1),[se,ue]=m.useState(!1);m.useEffect(()=>{l&&l!==a&&o(l)},[l]),m.useEffect(()=>{u!==void 0&&u!==i&&(h(u),be.current=u,ve.current=!1)},[u]),m.useEffect(()=>{l&&l!==a&&(o(l),be.current=Ce(l))},[l]);const re=m.useMemo(()=>new Ke({pistonUrl:d,token:t}),[d,t]),pe=m.useMemo(()=>r.map(x=>({value:`${x.language}:${x.version}`,label:`${x.language.charAt(0).toUpperCase()+x.language.slice(1)} ${x.version}`})),[r]),ae=m.useMemo(()=>a.includes(":")?a.split(":")[0]:a,[a]),Ne=m.useMemo(()=>{if(!w)return{};const x=b==="dark",Y=(fe,Ee)=>{const Ae=parseInt(fe.replace("#",""),16),e=Math.round(2.55*Ee);return"#"+(16777216+65536*Math.min(255,Math.max(0,(Ae>>16)+e))+256*Math.min(255,Math.max(0,(Ae>>8&255)+e))+Math.min(255,Math.max(0,(255&Ae)+e))).toString(16).slice(1)},de=(fe=>{const Ee=parseInt(fe.replace("#",""),16);return(.299*(Ee>>16&255)+.587*(Ee>>8&255)+.114*(255&Ee))/255>.5})(w)?"#000":"#fff";return{"--hep-cr-theme-color":w,"--hep-cr-theme-color-hover":Y(w,x?20:-20),"--hep-cr-tab-active-color":de}},[w,b]);m.useEffect(()=>{(async function(){ee(!0),K(null);try{const x=await re.getRuntimes();n(x)}catch(x){K(x instanceof Error?x.message:"Failed to load runtimes")}finally{ee(!1)}})()},[re]);const be=m.useRef(u!==""?u:Ce(l||"javascript")),ve=m.useRef(u!==""),Le=m.useCallback(x=>{const Y=x.target.value,de=be.current;ve.current&&i!==de||(h(Ce(Y)),be.current=Ce(Y)),o(Y),ve.current=!1,v==null||v(Y),L==null||L(Y.includes(":")?Y.split(":")[0]:Y,i)},[i,v,L]),xe=m.useCallback(x=>{h(x),ve.current=!0,C==null||C(x),j==null||j(x)},[C,j]),Se=m.useCallback(async()=>{if(!Z){me(!0),B(""),q(""),ce(null),K(null),W("stdout"),S==null||S();try{const x=await re.execute(ae,i);B(x.output),q(x.stderr),ce(x.executionTime||null),W(x.stderr?"stderr":"stdout"),A==null||A(x)}catch(x){const Y=x instanceof Error?x.message:"Execution failed";K(Y),A==null||A({success:!1,output:"",stderr:Y,code:-1})}finally{me(!1)}}},[Z,ae,i,re,S,A]),Fe=m.useCallback(async()=>{await navigator.clipboard.writeText(i),te(!0),setTimeout(()=>{te(!1)},2e3)},[i]),ge=m.useCallback(async()=>{const x=$==="stdout"?z:Q;await navigator.clipboard.writeText(x),ue(!0),setTimeout(()=>{ue(!1)},2e3)},[$,z,Q]),ye=m.useRef(!1),Oe=m.useCallback(x=>{ye.current=!0,document.addEventListener("mousemove",ke),document.addEventListener("mouseup",we),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),ke=m.useCallback(x=>{if(!ye.current)return;const Y=document.querySelector(".hep-cr-main");if(!Y)return;const de=Y.getBoundingClientRect(),fe=(x.clientX-de.left)/de.width*100;ne(Math.max(20,Math.min(80,fe)))},[]),we=m.useCallback(()=>{ye.current=!1,document.removeEventListener("mousemove",ke),document.removeEventListener("mouseup",we),document.body.style.cursor="",document.body.style.userSelect=""},[ke]);return c.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${p}`,style:Ne,children:[c.jsxs("div",{className:"hep-cr-header",children:[c.jsx("div",{className:"hep-cr-controls",children:s&&c.jsx(c.Fragment,{children:c.jsxs("select",{value:a,onChange:Le,className:"hep-cr-language-select",disabled:Z,children:[oe&&c.jsx("option",{value:"",children:"加载中..."}),pe.map(x=>c.jsx("option",{value:x.value,children:x.label},x.value))]})})}),c.jsxs("div",{className:"hep-cr-actions",children:[c.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:Z||oe,onClick:Se,children:[Z?c.jsx("span",{className:"hep-cr-spinner"}):c.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),Z?"运行中...":y]}),c.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>k(p==="light"?"dark":"light"),title:p==="light"?"Switch to dark mode":"Switch to light mode",children:p==="light"?c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"12",cy:"12",r:"5"}),c.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),c.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),c.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),c.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),c.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),c.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),c.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),c.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),V&&c.jsx("div",{className:"hep-cr-error-message",children:V}),c.jsxs("div",{className:"hep-cr-main",children:[N&&c.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${ie}%`},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),c.jsxs("div",{className:"hep-cr-output-actions",children:[c.jsx("span",{className:"hep-cr-language-badge",children:ae}),c.jsx("button",{className:"hep-cr-btn-icon "+(J?"hep-cr-btn-copied":""),disabled:J,onClick:Fe,title:J?"已复制":"复制",children:J?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx(Xe,{value:i,language:ae,theme:p,disabled:!E||Z,onChange:xe,onCodeChange:j})]}),N&&c.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:Oe,children:c.jsx("div",{className:"hep-cr-resize-line"})}),c.jsxs("div",{className:"hep-cr-output-panel",style:{width:N?100-ie+"%":"100%"},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsxs("div",{className:"hep-cr-output-tabs",children:[c.jsx("button",{className:"hep-cr-tab "+($==="stdout"?"active":""),onClick:()=>W("stdout"),children:"输出"}),Q&&c.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+($==="stderr"?"active":""),onClick:()=>W("stderr"),children:"错误"})]}),c.jsxs("div",{className:"hep-cr-output-actions",children:[he!==null&&c.jsxs("span",{className:"hep-cr-execution-time",children:[he,"ms"]}),c.jsx("button",{className:"hep-cr-btn-icon "+(se?"hep-cr-btn-copied":""),disabled:se,onClick:ge,title:se?"已复制":"复制",children:se?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx("div",{className:"hep-cr-output-content",children:c.jsx("pre",{children:$==="stdout"?Z?"代码执行中...":z||'点击"运行"执行代码':Q})})]})]}),c.jsx("style",{children:`
298
+ This is a sample markdown document.`};function Ne(d){const t=d.toLowerCase().split(":")[0];return qe[t]||`// ${d}
299
+ // Write your code here`}const Me=({pistonUrl:d="/api/piston",token:t="",language:l="javascript",code:u="",theme:b="light",themeColor:w="",showLanguageSelector:s=!0,showEditor:N=!0,editable:E=!0,executorLabel:y="运行",onExecuteStart:S,onExecuteEnd:A,onLanguageChange:L,onLanguageUpdate:v,onCodeUpdate:C,onChange:j})=>{const[r,n]=m.useState([]),[a,o]=m.useState(l||"javascript"),[i,h]=m.useState(u),[p,k]=m.useState(b),[z,B]=m.useState(""),[Q,q]=m.useState(""),[Z,me]=m.useState(!1),[ge,ue]=m.useState(null),[$,W]=m.useState("stdout"),[V,K]=m.useState(null),[ie,ee]=m.useState(!0),[se,ne]=m.useState(60),[J,te]=m.useState(!1),[le,pe]=m.useState(!1);m.useEffect(()=>{l&&l!==a&&o(l)},[l]),m.useEffect(()=>{u!==void 0&&u!==i&&(h(u),be.current=u,ve.current=!1)},[u]),m.useEffect(()=>{l&&l!==a&&(o(l),be.current=Ne(l))},[l]);const re=m.useMemo(()=>new Ke({pistonUrl:d,token:t}),[d,t]),de=m.useMemo(()=>r.map(x=>({value:`${x.language}:${x.version}`,label:`${x.language.charAt(0).toUpperCase()+x.language.slice(1)} ${x.version}`})),[r]),ae=m.useMemo(()=>a.includes(":")?a.split(":")[0]:a,[a]),Fe=m.useMemo(()=>{if(!w)return{};const x=b==="dark",Y=(oe,Ee)=>{const Ae=parseInt(oe.replace("#",""),16),e=Math.round(2.55*Ee);return"#"+(16777216+65536*Math.min(255,Math.max(0,(Ae>>16)+e))+256*Math.min(255,Math.max(0,(Ae>>8&255)+e))+Math.min(255,Math.max(0,(255&Ae)+e))).toString(16).slice(1)},he=(oe=>{const Ee=parseInt(oe.replace("#",""),16);return(.299*(Ee>>16&255)+.587*(Ee>>8&255)+.114*(255&Ee))/255>.5})(w)?"#000":"#fff";return{"--hep-cr-theme-color":w,"--hep-cr-theme-color-hover":Y(w,x?20:-20),"--hep-cr-tab-active-color":he}},[w,b]);m.useEffect(()=>{(async function(){ee(!0),K(null);try{const x=await re.getRuntimes();n(x)}catch(x){K(x instanceof Error?x.message:"Failed to load runtimes")}finally{ee(!1)}})()},[re]);const be=m.useRef(u!==""?u:Ne(l||"javascript")),ve=m.useRef(u!==""),Le=m.useCallback(x=>{const Y=x.target.value,he=be.current;ve.current&&i!==he||(h(Ne(Y)),be.current=Ne(Y)),o(Y),ve.current=!1,v==null||v(Y);const oe=Y.includes(":")?Y.split(":")[0]:Y;L==null||L(oe,i,Ne(oe))},[i,v,L]),xe=m.useCallback(x=>{h(x),ve.current=!0,C==null||C(x),j==null||j(x)},[C,j]),Se=m.useCallback(async()=>{if(!Z){me(!0),B(""),q(""),ue(null),K(null),W("stdout"),S==null||S();try{const x=await re.execute(ae,i);B(x.output),q(x.stderr),ue(x.executionTime||null),W(x.stderr?"stderr":"stdout"),A==null||A(x)}catch(x){const Y=x instanceof Error?x.message:"Execution failed";K(Y),A==null||A({success:!1,output:"",stderr:Y,code:-1})}finally{me(!1)}}},[Z,ae,i,re,S,A]),Oe=m.useCallback(async()=>{await navigator.clipboard.writeText(i),te(!0),setTimeout(()=>{te(!1)},2e3)},[i]),fe=m.useCallback(async()=>{const x=$==="stdout"?z:Q;await navigator.clipboard.writeText(x),pe(!0),setTimeout(()=>{pe(!1)},2e3)},[$,z,Q]),ye=m.useRef(!1),Re=m.useCallback(x=>{ye.current=!0,document.addEventListener("mousemove",ke),document.addEventListener("mouseup",we),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),ke=m.useCallback(x=>{if(!ye.current)return;const Y=document.querySelector(".hep-cr-main");if(!Y)return;const he=Y.getBoundingClientRect(),oe=(x.clientX-he.left)/he.width*100;ne(Math.max(20,Math.min(80,oe)))},[]),we=m.useCallback(()=>{ye.current=!1,document.removeEventListener("mousemove",ke),document.removeEventListener("mouseup",we),document.body.style.cursor="",document.body.style.userSelect=""},[ke]);return c.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${p}`,style:Fe,children:[c.jsxs("div",{className:"hep-cr-header",children:[c.jsx("div",{className:"hep-cr-controls",children:s&&c.jsx(c.Fragment,{children:c.jsxs("select",{value:a,onChange:Le,className:"hep-cr-language-select",disabled:Z,children:[ie&&c.jsx("option",{value:"",children:"加载中..."}),de.map(x=>c.jsx("option",{value:x.value,children:x.label},x.value))]})})}),c.jsxs("div",{className:"hep-cr-actions",children:[c.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:Z||ie,onClick:Se,children:[Z?c.jsx("span",{className:"hep-cr-spinner"}):c.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),Z?"运行中...":y]}),c.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>k(p==="light"?"dark":"light"),title:p==="light"?"Switch to dark mode":"Switch to light mode",children:p==="light"?c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"12",cy:"12",r:"5"}),c.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),c.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),c.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),c.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),c.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),c.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),c.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),c.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),V&&c.jsx("div",{className:"hep-cr-error-message",children:V}),c.jsxs("div",{className:"hep-cr-main",children:[N&&c.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${se}%`},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),c.jsxs("div",{className:"hep-cr-output-actions",children:[c.jsx("span",{className:"hep-cr-language-badge",children:ae}),c.jsx("button",{className:"hep-cr-btn-icon "+(J?"hep-cr-btn-copied":""),disabled:J,onClick:Oe,title:J?"已复制":"复制",children:J?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx(Xe,{value:i,language:ae,theme:p,disabled:!E||Z,onChange:xe,onCodeChange:j})]}),N&&c.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:Re,children:c.jsx("div",{className:"hep-cr-resize-line"})}),c.jsxs("div",{className:"hep-cr-output-panel",style:{width:N?100-se+"%":"100%"},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsxs("div",{className:"hep-cr-output-tabs",children:[c.jsx("button",{className:"hep-cr-tab "+($==="stdout"?"active":""),onClick:()=>W("stdout"),children:"输出"}),Q&&c.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+($==="stderr"?"active":""),onClick:()=>W("stderr"),children:"错误"})]}),c.jsxs("div",{className:"hep-cr-output-actions",children:[ge!==null&&c.jsxs("span",{className:"hep-cr-execution-time",children:[ge,"ms"]}),c.jsx("button",{className:"hep-cr-btn-icon "+(le?"hep-cr-btn-copied":""),disabled:le,onClick:fe,title:le?"已复制":"复制",children:le?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx("div",{className:"hep-cr-output-content",children:c.jsx("pre",{children:$==="stdout"?Z?"代码执行中...":z||'点击"运行"执行代码':Q})})]})]}),c.jsx("style",{children:`
300
300
  .hep-cr-runner {
301
301
  display: flex;
302
302
  flex-direction: column;
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import Be, { useRef as Ae, useMemo as Se, useCallback as ce, useEffect as xe, useState as K, forwardRef as Ze, useImperativeHandle as Ke } from "react";
1
+ import Be, { useRef as Ae, useMemo as Se, useCallback as pe, useEffect as xe, useState as K, forwardRef as Ze, useImperativeHandle as Ke } from "react";
2
2
  var Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  function Ve(d) {
4
4
  return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
5
5
  }
6
- var We, He = { exports: {} }, Fe = {}, Ye, Pe = {};
6
+ var We, He = { exports: {} }, Fe = {}, Ye, De = {};
7
7
  process.env.NODE_ENV === "production" ? He.exports = function() {
8
8
  if (We) return Fe;
9
9
  We = 1;
@@ -79,25 +79,25 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
79
79
  function be() {
80
80
  }
81
81
  be.__reactDisabledLog = !0;
82
- var ge, pe = r.ReactCurrentDispatcher;
82
+ var fe, ue = r.ReactCurrentDispatcher;
83
83
  function D(e, g, f) {
84
- if (ge === void 0) try {
84
+ if (fe === void 0) try {
85
85
  throw Error();
86
86
  } catch (F) {
87
87
  var P = F.stack.trim().match(/\n( *(at )?)/);
88
- ge = P && P[1] || "";
88
+ fe = P && P[1] || "";
89
89
  }
90
90
  return `
91
- ` + ge + e;
91
+ ` + fe + e;
92
92
  }
93
93
  var G, q = !1, Z = typeof WeakMap == "function" ? WeakMap : Map;
94
- function oe(e, g) {
94
+ function ie(e, g) {
95
95
  if (!e || q) return "";
96
96
  var f, P = G.get(e);
97
97
  if (P !== void 0) return P;
98
98
  q = !0;
99
99
  var F, R = Error.prepareStackTrace;
100
- Error.prepareStackTrace = void 0, F = pe.current, pe.current = null, function() {
100
+ Error.prepareStackTrace = void 0, F = ue.current, ue.current = null, function() {
101
101
  if (X === 0) {
102
102
  i = console.log, h = console.info, u = console.warn, v = console.error, H = console.group, z = console.groupCollapsed, Q = console.groupEnd;
103
103
  var O = { configurable: !0, enumerable: !0, value: be, writable: !0 };
@@ -152,7 +152,7 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
152
152
  }
153
153
  }
154
154
  } finally {
155
- q = !1, pe.current = F, function() {
155
+ q = !1, ue.current = F, function() {
156
156
  if (--X === 0) {
157
157
  var O = { configurable: !0, enumerable: !0, writable: !0 };
158
158
  Object.defineProperties(console, { log: V({}, O, { value: i }), info: V({}, O, { value: h }), warn: V({}, O, { value: u }), error: V({}, O, { value: v }), group: V({}, O, { value: H }), groupCollapsed: V({}, O, { value: z }), groupEnd: V({}, O, { value: Q }) });
@@ -165,7 +165,7 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
165
165
  }
166
166
  function ee(e, g, f) {
167
167
  if (e == null) return "";
168
- if (typeof e == "function") return oe(e, !(!(P = e.prototype) || !P.isReactComponent));
168
+ if (typeof e == "function") return ie(e, !(!(P = e.prototype) || !P.isReactComponent));
169
169
  var P;
170
170
  if (typeof e == "string") return D(e);
171
171
  switch (e) {
@@ -176,7 +176,7 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
176
176
  }
177
177
  if (typeof e == "object") switch (e.$$typeof) {
178
178
  case b:
179
- return oe(e.render, !1);
179
+ return ie(e.render, !1);
180
180
  case L:
181
181
  return ee(e.type, g, f);
182
182
  case E:
@@ -189,21 +189,21 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
189
189
  return "";
190
190
  }
191
191
  G = new Z();
192
- var ie = Object.prototype.hasOwnProperty, ne = {}, J = r.ReactDebugCurrentFrame;
192
+ var se = Object.prototype.hasOwnProperty, ne = {}, J = r.ReactDebugCurrentFrame;
193
193
  function te(e) {
194
194
  if (e) {
195
195
  var g = e._owner, f = ee(e.type, e._source, g ? g.type : null);
196
196
  J.setExtraStackFrame(f);
197
197
  } else J.setExtraStackFrame(null);
198
198
  }
199
- var se = Array.isArray;
200
- function ue(e) {
201
- return se(e);
199
+ var le = Array.isArray;
200
+ function de(e) {
201
+ return le(e);
202
202
  }
203
203
  function re(e) {
204
204
  return "" + e;
205
205
  }
206
- function de(e) {
206
+ function he(e) {
207
207
  if (function(g) {
208
208
  try {
209
209
  return re(g), !1;
@@ -214,24 +214,24 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
214
214
  return typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
215
215
  }(e)), re(e);
216
216
  }
217
- var ae, Ie, ye = r.ReactCurrentOwner, ke = { key: !0, ref: !0, __self: !0, __source: !0 };
217
+ var ae, Le, ye = r.ReactCurrentOwner, ke = { key: !0, ref: !0, __self: !0, __source: !0 };
218
218
  function $e(e, g, f, P, F) {
219
219
  var R, T = {}, N = null, $ = null;
220
- for (R in f !== void 0 && (de(f), N = "" + f), function(A) {
221
- if (ie.call(A, "key")) {
220
+ for (R in f !== void 0 && (he(f), N = "" + f), function(A) {
221
+ if (se.call(A, "key")) {
222
222
  var B = Object.getOwnPropertyDescriptor(A, "key").get;
223
223
  if (B && B.isReactWarning) return !1;
224
224
  }
225
225
  return A.key !== void 0;
226
- }(g) && (de(g.key), N = "" + g.key), function(A) {
227
- if (ie.call(A, "ref")) {
226
+ }(g) && (he(g.key), N = "" + g.key), function(A) {
227
+ if (se.call(A, "ref")) {
228
228
  var B = Object.getOwnPropertyDescriptor(A, "ref").get;
229
229
  if (B && B.isReactWarning) return !1;
230
230
  }
231
231
  return A.ref !== void 0;
232
232
  }(g) && ($ = g.ref, function(A) {
233
233
  typeof A.ref == "string" && ye.current;
234
- }(g)), g) ie.call(g, R) && !ke.hasOwnProperty(R) && (T[R] = g[R]);
234
+ }(g)), g) se.call(g, R) && !ke.hasOwnProperty(R) && (T[R] = g[R]);
235
235
  if (e && e.defaultProps) {
236
236
  var M = e.defaultProps;
237
237
  for (R in M) T[R] === void 0 && (T[R] = M[R]);
@@ -245,27 +245,27 @@ process.env.NODE_ENV === "production" ? He.exports = function() {
245
245
  Y.isReactWarning = !0, Object.defineProperty(A, "key", { get: Y, configurable: !0 });
246
246
  }(T, j), $ && function(A, B) {
247
247
  var Y = function() {
248
- Ie || (Ie = !0, n("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
248
+ Le || (Le = !0, n("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
249
249
  };
250
250
  Y.isReactWarning = !0, Object.defineProperty(A, "ref", { get: Y, configurable: !0 });
251
251
  }(T, j);
252
252
  }
253
- return function(A, B, Y, O, U, je, Oe) {
254
- var le = { $$typeof: l, type: A, key: B, ref: Y, props: Oe, _owner: je, _store: {} };
255
- return Object.defineProperty(le._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(le, "_self", { configurable: !1, enumerable: !1, writable: !1, value: O }), Object.defineProperty(le, "_source", { configurable: !1, enumerable: !1, writable: !1, value: U }), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le;
253
+ return function(A, B, Y, O, U, Pe, Oe) {
254
+ var ce = { $$typeof: l, type: A, key: B, ref: Y, props: Oe, _owner: Pe, _store: {} };
255
+ return Object.defineProperty(ce._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(ce, "_self", { configurable: !1, enumerable: !1, writable: !1, value: O }), Object.defineProperty(ce, "_source", { configurable: !1, enumerable: !1, writable: !1, value: U }), Object.freeze && (Object.freeze(ce.props), Object.freeze(ce)), ce;
256
256
  }(e, N, $, F, P, ye.current, T);
257
257
  }
258
- var Te, _e = r.ReactCurrentOwner, Le = r.ReactDebugCurrentFrame;
259
- function fe(e) {
258
+ var Te, _e = r.ReactCurrentOwner, Ce = r.ReactDebugCurrentFrame;
259
+ function me(e) {
260
260
  if (e) {
261
261
  var g = e._owner, f = ee(e.type, e._source, g ? g.type : null);
262
- Le.setExtraStackFrame(f);
263
- } else Le.setExtraStackFrame(null);
262
+ Ce.setExtraStackFrame(f);
263
+ } else Ce.setExtraStackFrame(null);
264
264
  }
265
265
  function Ee(e) {
266
266
  return typeof e == "object" && e !== null && e.$$typeof === l;
267
267
  }
268
- function Ce() {
268
+ function je() {
269
269
  if (_e.current) {
270
270
  var e = o(_e.current.type);
271
271
  if (e) return `
@@ -280,7 +280,7 @@ Check the render method of \`` + e + "`.";
280
280
  if (e._store && !e._store.validated && e.key == null) {
281
281
  e._store.validated = !0;
282
282
  var f = function(F) {
283
- var R = Ce();
283
+ var R = je();
284
284
  if (!R) {
285
285
  var T = typeof F == "string" ? F : F.displayName || F.name;
286
286
  T && (R = `
@@ -292,13 +292,13 @@ Check the top-level render call using <` + T + ">.");
292
292
  if (!we[f]) {
293
293
  we[f] = !0;
294
294
  var P = "";
295
- e && e._owner && e._owner !== _e.current && (P = " It was passed a child from " + o(e._owner.type) + "."), fe(e), n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, P), fe(null);
295
+ e && e._owner && e._owner !== _e.current && (P = " It was passed a child from " + o(e._owner.type) + "."), me(e), n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, P), me(null);
296
296
  }
297
297
  }
298
298
  }
299
299
  function x(e, g) {
300
300
  if (typeof e == "object") {
301
- if (ue(e)) for (var f = 0; f < e.length; f++) {
301
+ if (de(e)) for (var f = 0; f < e.length; f++) {
302
302
  var P = e[f];
303
303
  Ee(P) && Ne(P, g);
304
304
  }
@@ -324,7 +324,7 @@ Check the top-level render call using <` + T + ">.");
324
324
  if (g) {
325
325
  var P = o(f);
326
326
  (function(F, R, T, N, $) {
327
- var M = Function.call.bind(ie);
327
+ var M = Function.call.bind(se);
328
328
  for (var j in F) if (M(F, j)) {
329
329
  var A = void 0;
330
330
  try {
@@ -343,54 +343,54 @@ Check the top-level render call using <` + T + ">.");
343
343
  typeof f.getDefaultProps != "function" || f.getDefaultProps.isReactClassApproved || n("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
344
344
  }
345
345
  }
346
- var he = {};
347
- function me(e, g, f, P, F, R) {
346
+ var ge = {};
347
+ function oe(e, g, f, P, F, R) {
348
348
  var T = function(U) {
349
349
  return typeof U == "string" || typeof U == "function" || U === m || U === s || U === w || U === k || U === S || U === I || typeof U == "object" && U !== null && (U.$$typeof === E || U.$$typeof === L || U.$$typeof === _ || U.$$typeof === y || U.$$typeof === b || U.$$typeof === d || U.getModuleId !== void 0);
350
350
  }(e);
351
351
  if (!T) {
352
352
  var N, $ = "";
353
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), $ += Ce(), e === null ? N = "null" : ue(e) ? N = "array" : e !== void 0 && e.$$typeof === l ? (N = "<" + (o(e.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, $);
353
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), $ += je(), e === null ? N = "null" : de(e) ? N = "array" : e !== void 0 && e.$$typeof === l ? (N = "<" + (o(e.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, $);
354
354
  }
355
355
  var M = $e(e, g, f, F, R);
356
356
  if (M == null) return M;
357
357
  if (T) {
358
358
  var j = g.children;
359
- if (j !== void 0) if (P) if (ue(j)) {
359
+ if (j !== void 0) if (P) if (de(j)) {
360
360
  for (var A = 0; A < j.length; A++) x(j[A], e);
361
361
  Object.freeze && Object.freeze(j);
362
362
  } else n("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
363
363
  else x(j, e);
364
364
  }
365
- if (ie.call(g, "key")) {
365
+ if (se.call(g, "key")) {
366
366
  var B = o(e), Y = Object.keys(g).filter(function(U) {
367
367
  return U !== "key";
368
368
  }), O = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
369
- he[B + O] || (n(`A props object containing a "key" prop is being spread into JSX:
369
+ ge[B + O] || (n(`A props object containing a "key" prop is being spread into JSX:
370
370
  let props = %s;
371
371
  <%s {...props} />
372
372
  React keys must be passed directly to JSX without using spread:
373
373
  let props = %s;
374
- <%s key={someKey} {...props} />`, O, B, Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}", B), he[B + O] = !0);
374
+ <%s key={someKey} {...props} />`, O, B, Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}", B), ge[B + O] = !0);
375
375
  }
376
376
  return e === m ? function(U) {
377
- for (var je = Object.keys(U.props), Oe = 0; Oe < je.length; Oe++) {
378
- var le = je[Oe];
379
- if (le !== "children" && le !== "key") {
380
- fe(U), n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", le), fe(null);
377
+ for (var Pe = Object.keys(U.props), Oe = 0; Oe < Pe.length; Oe++) {
378
+ var ce = Pe[Oe];
379
+ if (ce !== "children" && ce !== "key") {
380
+ me(U), n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ce), me(null);
381
381
  break;
382
382
  }
383
383
  }
384
- U.ref !== null && (fe(U), n("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
384
+ U.ref !== null && (me(U), n("Invalid attribute `ref` supplied to `React.Fragment`."), me(null));
385
385
  }(M) : W(M), M;
386
386
  }
387
387
  var ve = function(e, g, f) {
388
- return me(e, g, f, !1);
388
+ return oe(e, g, f, !1);
389
389
  }, Re = function(e, g, f) {
390
- return me(e, g, f, !0);
390
+ return oe(e, g, f, !0);
391
391
  };
392
- Pe.Fragment = m, Pe.jsx = ve, Pe.jsxs = Re;
393
- }()), Pe);
392
+ De.Fragment = m, De.jsx = ve, De.jsxs = Re;
393
+ }()), De);
394
394
  var c = He.exports, Xe = { exports: {} };
395
395
  (function(d) {
396
396
  var t = function(l) {
@@ -531,27 +531,27 @@ var c = He.exports, Xe = { exports: {} };
531
531
  if (h && h.cause == u + "," + H) return;
532
532
  var z = v[H], Q = z.inside, V = !!z.lookbehind, X = !!z.greedy, be = z.alias;
533
533
  if (X && !z.pattern.global) {
534
- var ge = z.pattern.toString().match(/[imsuy]*$/)[0];
535
- z.pattern = RegExp(z.pattern.source, ge + "g");
534
+ var fe = z.pattern.toString().match(/[imsuy]*$/)[0];
535
+ z.pattern = RegExp(z.pattern.source, fe + "g");
536
536
  }
537
- for (var pe = z.pattern || z, D = o.next, G = i; D !== n.tail && !(h && G >= h.reach); G += D.value.length, D = D.next) {
537
+ for (var ue = z.pattern || z, D = o.next, G = i; D !== n.tail && !(h && G >= h.reach); G += D.value.length, D = D.next) {
538
538
  var q = D.value;
539
539
  if (n.length > r.length) return;
540
540
  if (!(q instanceof _)) {
541
- var Z, oe = 1;
541
+ var Z, ie = 1;
542
542
  if (X) {
543
- if (!(Z = y(pe, G, r, V)) || Z.index >= r.length) break;
544
- var ee = Z.index, ie = Z.index + Z[0].length, ne = G;
543
+ if (!(Z = y(ue, G, r, V)) || Z.index >= r.length) break;
544
+ var ee = Z.index, se = Z.index + Z[0].length, ne = G;
545
545
  for (ne += D.value.length; ee >= ne; ) ne += (D = D.next).value.length;
546
546
  if (G = ne -= D.value.length, D.value instanceof _) continue;
547
- for (var J = D; J !== n.tail && (ne < ie || typeof J.value == "string"); J = J.next) oe++, ne += J.value.length;
548
- oe--, q = r.slice(G, ne), Z.index -= G;
549
- } else if (!(Z = y(pe, 0, q, V))) continue;
547
+ for (var J = D; J !== n.tail && (ne < se || typeof J.value == "string"); J = J.next) ie++, ne += J.value.length;
548
+ ie--, q = r.slice(G, ne), Z.index -= G;
549
+ } else if (!(Z = y(ue, 0, q, V))) continue;
550
550
  ee = Z.index;
551
- var te = Z[0], se = q.slice(0, ee), ue = q.slice(ee + te.length), re = G + q.length;
551
+ var te = Z[0], le = q.slice(0, ee), de = q.slice(ee + te.length), re = G + q.length;
552
552
  h && re > h.reach && (h.reach = re);
553
- var de = D.prev;
554
- if (se && (de = S(n, de, se), G += se.length), L(n, de, oe), D = S(n, de, new _(u, Q ? s.tokenize(te, Q) : te, be, te)), ue && S(n, D, ue), oe > 1) {
553
+ var he = D.prev;
554
+ if (le && (he = S(n, he, le), G += le.length), L(n, he, ie), D = S(n, he, new _(u, Q ? s.tokenize(te, Q) : te, be, te)), de && S(n, D, de), ie > 1) {
555
555
  var ae = { cause: u + "," + H, reach: re };
556
556
  b(r, n, a, D.prev, G, ae), h && ae.reach > h.reach && (h.reach = ae.reach);
557
557
  }
@@ -701,7 +701,7 @@ const qe = { javascript: "javascript", js: "javascript", typescript: "typescript
701
701
  const I = document.createElement("div");
702
702
  return I.textContent = E, I.innerHTML;
703
703
  }(d || "");
704
- }, [d, b]), L = ce((E) => {
704
+ }, [d, b]), L = pe((E) => {
705
705
  y.current && clearTimeout(y.current), y.current = setTimeout(() => {
706
706
  w == null || w(E);
707
707
  }, 500);
@@ -1063,30 +1063,30 @@ h1 {
1063
1063
  }`, sql: "SELECT 'Hello, World!' AS message;", markdown: `# Hello, World!
1064
1064
 
1065
1065
  This is a sample markdown document.` };
1066
- function De(d) {
1066
+ function Ie(d) {
1067
1067
  const t = d.toLowerCase().split(":")[0];
1068
1068
  return nn[t] || `// ${d}
1069
1069
  // Write your code here`;
1070
1070
  }
1071
1071
  const tn = ({ pistonUrl: d = "/api/piston", token: t = "", language: l = "javascript", code: p = "", theme: m = "light", themeColor: w = "", showLanguageSelector: s = !0, showEditor: _ = !0, editable: y = !0, executorLabel: b = "运行", onExecuteStart: k, onExecuteEnd: S, onLanguageChange: L, onLanguageUpdate: E, onCodeUpdate: I, onChange: C }) => {
1072
- const [r, n] = K([]), [a, o] = K(l || "javascript"), [i, h] = K(p), [u, v] = K(m), [H, z] = K(""), [Q, V] = K(""), [X, be] = K(!1), [ge, pe] = K(null), [D, G] = K("stdout"), [q, Z] = K(null), [oe, ee] = K(!0), [ie, ne] = K(60), [J, te] = K(!1), [se, ue] = K(!1);
1072
+ const [r, n] = K([]), [a, o] = K(l || "javascript"), [i, h] = K(p), [u, v] = K(m), [H, z] = K(""), [Q, V] = K(""), [X, be] = K(!1), [fe, ue] = K(null), [D, G] = K("stdout"), [q, Z] = K(null), [ie, ee] = K(!0), [se, ne] = K(60), [J, te] = K(!1), [le, de] = K(!1);
1073
1073
  xe(() => {
1074
1074
  l && l !== a && o(l);
1075
1075
  }, [l]), xe(() => {
1076
1076
  p !== void 0 && p !== i && (h(p), ye.current = p, ke.current = !1);
1077
1077
  }, [p]), xe(() => {
1078
- l && l !== a && (o(l), ye.current = De(l));
1078
+ l && l !== a && (o(l), ye.current = Ie(l));
1079
1079
  }, [l]);
1080
- const re = Se(() => new en({ pistonUrl: d, token: t }), [d, t]), de = Se(() => r.map((x) => ({ value: `${x.language}:${x.version}`, label: `${x.language.charAt(0).toUpperCase() + x.language.slice(1)} ${x.version}` })), [r]), ae = Se(() => a.includes(":") ? a.split(":")[0] : a, [a]), Ie = Se(() => {
1080
+ const re = Se(() => new en({ pistonUrl: d, token: t }), [d, t]), he = Se(() => r.map((x) => ({ value: `${x.language}:${x.version}`, label: `${x.language.charAt(0).toUpperCase() + x.language.slice(1)} ${x.version}` })), [r]), ae = Se(() => a.includes(":") ? a.split(":")[0] : a, [a]), Le = Se(() => {
1081
1081
  if (!w) return {};
1082
- const x = m === "dark", W = (me, ve) => {
1083
- const Re = parseInt(me.replace("#", ""), 16), e = Math.round(2.55 * ve);
1082
+ const x = m === "dark", W = (oe, ve) => {
1083
+ const Re = parseInt(oe.replace("#", ""), 16), e = Math.round(2.55 * ve);
1084
1084
  return "#" + (16777216 + 65536 * Math.min(255, Math.max(0, (Re >> 16) + e)) + 256 * Math.min(255, Math.max(0, (Re >> 8 & 255) + e)) + Math.min(255, Math.max(0, (255 & Re) + e))).toString(16).slice(1);
1085
- }, he = ((me) => {
1086
- const ve = parseInt(me.replace("#", ""), 16);
1085
+ }, ge = ((oe) => {
1086
+ const ve = parseInt(oe.replace("#", ""), 16);
1087
1087
  return (0.299 * (ve >> 16 & 255) + 0.587 * (ve >> 8 & 255) + 0.114 * (255 & ve)) / 255 > 0.5;
1088
1088
  })(w) ? "#000" : "#fff";
1089
- return { "--hep-cr-theme-color": w, "--hep-cr-theme-color-hover": W(w, x ? 20 : -20), "--hep-cr-tab-active-color": he };
1089
+ return { "--hep-cr-theme-color": w, "--hep-cr-theme-color-hover": W(w, x ? 20 : -20), "--hep-cr-tab-active-color": ge };
1090
1090
  }, [w, m]);
1091
1091
  xe(() => {
1092
1092
  (async function() {
@@ -1101,17 +1101,19 @@ const tn = ({ pistonUrl: d = "/api/piston", token: t = "", language: l = "javasc
1101
1101
  }
1102
1102
  })();
1103
1103
  }, [re]);
1104
- const ye = Ae(p !== "" ? p : De(l || "javascript")), ke = Ae(p !== ""), $e = ce((x) => {
1105
- const W = x.target.value, he = ye.current;
1106
- ke.current && i !== he || (h(De(W)), ye.current = De(W)), o(W), ke.current = !1, E == null || E(W), L == null || L(W.includes(":") ? W.split(":")[0] : W, i);
1107
- }, [i, E, L]), Te = ce((x) => {
1104
+ const ye = Ae(p !== "" ? p : Ie(l || "javascript")), ke = Ae(p !== ""), $e = pe((x) => {
1105
+ const W = x.target.value, ge = ye.current;
1106
+ ke.current && i !== ge || (h(Ie(W)), ye.current = Ie(W)), o(W), ke.current = !1, E == null || E(W);
1107
+ const oe = W.includes(":") ? W.split(":")[0] : W;
1108
+ L == null || L(oe, i, Ie(oe));
1109
+ }, [i, E, L]), Te = pe((x) => {
1108
1110
  h(x), ke.current = !0, I == null || I(x), C == null || C(x);
1109
- }, [I, C]), _e = ce(async () => {
1111
+ }, [I, C]), _e = pe(async () => {
1110
1112
  if (!X) {
1111
- be(!0), z(""), V(""), pe(null), Z(null), G("stdout"), k == null || k();
1113
+ be(!0), z(""), V(""), ue(null), Z(null), G("stdout"), k == null || k();
1112
1114
  try {
1113
1115
  const x = await re.execute(ae, i);
1114
- z(x.output), V(x.stderr), pe(x.executionTime || null), G(x.stderr ? "stderr" : "stdout"), S == null || S(x);
1116
+ z(x.output), V(x.stderr), ue(x.executionTime || null), G(x.stderr ? "stderr" : "stdout"), S == null || S(x);
1115
1117
  } catch (x) {
1116
1118
  const W = x instanceof Error ? x.message : "Execution failed";
1117
1119
  Z(W), S == null || S({ success: !1, output: "", stderr: W, code: -1 });
@@ -1119,27 +1121,27 @@ const tn = ({ pistonUrl: d = "/api/piston", token: t = "", language: l = "javasc
1119
1121
  be(!1);
1120
1122
  }
1121
1123
  }
1122
- }, [X, ae, i, re, k, S]), Le = ce(async () => {
1124
+ }, [X, ae, i, re, k, S]), Ce = pe(async () => {
1123
1125
  await navigator.clipboard.writeText(i), te(!0), setTimeout(() => {
1124
1126
  te(!1);
1125
1127
  }, 2e3);
1126
- }, [i]), fe = ce(async () => {
1128
+ }, [i]), me = pe(async () => {
1127
1129
  const x = D === "stdout" ? H : Q;
1128
- await navigator.clipboard.writeText(x), ue(!0), setTimeout(() => {
1129
- ue(!1);
1130
+ await navigator.clipboard.writeText(x), de(!0), setTimeout(() => {
1131
+ de(!1);
1130
1132
  }, 2e3);
1131
- }, [D, H, Q]), Ee = Ae(!1), Ce = ce((x) => {
1133
+ }, [D, H, Q]), Ee = Ae(!1), je = pe((x) => {
1132
1134
  Ee.current = !0, document.addEventListener("mousemove", we), document.addEventListener("mouseup", Ne), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
1133
- }, []), we = ce((x) => {
1135
+ }, []), we = pe((x) => {
1134
1136
  if (!Ee.current) return;
1135
1137
  const W = document.querySelector(".hep-cr-main");
1136
1138
  if (!W) return;
1137
- const he = W.getBoundingClientRect(), me = (x.clientX - he.left) / he.width * 100;
1138
- ne(Math.max(20, Math.min(80, me)));
1139
- }, []), Ne = ce(() => {
1139
+ const ge = W.getBoundingClientRect(), oe = (x.clientX - ge.left) / ge.width * 100;
1140
+ ne(Math.max(20, Math.min(80, oe)));
1141
+ }, []), Ne = pe(() => {
1140
1142
  Ee.current = !1, document.removeEventListener("mousemove", we), document.removeEventListener("mouseup", Ne), document.body.style.cursor = "", document.body.style.userSelect = "";
1141
1143
  }, [we]);
1142
- return c.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${u}`, style: Ie, children: [c.jsxs("div", { className: "hep-cr-header", children: [c.jsx("div", { className: "hep-cr-controls", children: s && c.jsx(c.Fragment, { children: c.jsxs("select", { value: a, onChange: $e, className: "hep-cr-language-select", disabled: X, children: [oe && c.jsx("option", { value: "", children: "加载中..." }), de.map((x) => c.jsx("option", { value: x.value, children: x.label }, x.value))] }) }) }), c.jsxs("div", { className: "hep-cr-actions", children: [c.jsxs("button", { className: "hep-cr-btn hep-cr-btn-run", disabled: X || oe, onClick: _e, children: [X ? c.jsx("span", { className: "hep-cr-spinner" }) : c.jsx("span", { className: "hep-cr-run-icon", children: "▶" }), X ? "运行中..." : b] }), c.jsx("button", { className: "hep-cr-btn hep-cr-btn-theme", onClick: () => v(u === "light" ? "dark" : "light"), title: u === "light" ? "Switch to dark mode" : "Switch to light mode", children: u === "light" ? c.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: c.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }) : c.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("circle", { cx: "12", cy: "12", r: "5" }), c.jsx("line", { x1: "12", y1: "1", x2: "12", y2: "3" }), c.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }), c.jsx("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }), c.jsx("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }), c.jsx("line", { x1: "1", y1: "12", x2: "3", y2: "12" }), c.jsx("line", { x1: "21", y1: "12", x2: "23", y2: "12" }), c.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }), c.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })] }) })] })] }), q && c.jsx("div", { className: "hep-cr-error-message", children: q }), c.jsxs("div", { className: "hep-cr-main", children: [_ && c.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${ie}%` }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }), c.jsxs("div", { className: "hep-cr-output-actions", children: [c.jsx("span", { className: "hep-cr-language-badge", children: ae }), c.jsx("button", { className: "hep-cr-btn-icon " + (J ? "hep-cr-btn-copied" : ""), disabled: J, onClick: Le, title: J ? "已复制" : "复制", children: J ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx(Je, { value: i, language: ae, theme: u, disabled: !y || X, onChange: Te, onCodeChange: C })] }), _ && c.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: Ce, children: c.jsx("div", { className: "hep-cr-resize-line" }) }), c.jsxs("div", { className: "hep-cr-output-panel", style: { width: _ ? 100 - ie + "%" : "100%" }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsxs("div", { className: "hep-cr-output-tabs", children: [c.jsx("button", { className: "hep-cr-tab " + (D === "stdout" ? "active" : ""), onClick: () => G("stdout"), children: "输出" }), Q && c.jsx("button", { className: "hep-cr-tab hep-cr-tab-error " + (D === "stderr" ? "active" : ""), onClick: () => G("stderr"), children: "错误" })] }), c.jsxs("div", { className: "hep-cr-output-actions", children: [ge !== null && c.jsxs("span", { className: "hep-cr-execution-time", children: [ge, "ms"] }), c.jsx("button", { className: "hep-cr-btn-icon " + (se ? "hep-cr-btn-copied" : ""), disabled: se, onClick: fe, title: se ? "已复制" : "复制", children: se ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx("div", { className: "hep-cr-output-content", children: c.jsx("pre", { children: D === "stdout" ? X ? "代码执行中..." : H || '点击"运行"执行代码' : Q }) })] })] }), c.jsx("style", { children: `
1144
+ return c.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${u}`, style: Le, children: [c.jsxs("div", { className: "hep-cr-header", children: [c.jsx("div", { className: "hep-cr-controls", children: s && c.jsx(c.Fragment, { children: c.jsxs("select", { value: a, onChange: $e, className: "hep-cr-language-select", disabled: X, children: [ie && c.jsx("option", { value: "", children: "加载中..." }), he.map((x) => c.jsx("option", { value: x.value, children: x.label }, x.value))] }) }) }), c.jsxs("div", { className: "hep-cr-actions", children: [c.jsxs("button", { className: "hep-cr-btn hep-cr-btn-run", disabled: X || ie, onClick: _e, children: [X ? c.jsx("span", { className: "hep-cr-spinner" }) : c.jsx("span", { className: "hep-cr-run-icon", children: "▶" }), X ? "运行中..." : b] }), c.jsx("button", { className: "hep-cr-btn hep-cr-btn-theme", onClick: () => v(u === "light" ? "dark" : "light"), title: u === "light" ? "Switch to dark mode" : "Switch to light mode", children: u === "light" ? c.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: c.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }) : c.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("circle", { cx: "12", cy: "12", r: "5" }), c.jsx("line", { x1: "12", y1: "1", x2: "12", y2: "3" }), c.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }), c.jsx("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }), c.jsx("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }), c.jsx("line", { x1: "1", y1: "12", x2: "3", y2: "12" }), c.jsx("line", { x1: "21", y1: "12", x2: "23", y2: "12" }), c.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }), c.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })] }) })] })] }), q && c.jsx("div", { className: "hep-cr-error-message", children: q }), c.jsxs("div", { className: "hep-cr-main", children: [_ && c.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${se}%` }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }), c.jsxs("div", { className: "hep-cr-output-actions", children: [c.jsx("span", { className: "hep-cr-language-badge", children: ae }), c.jsx("button", { className: "hep-cr-btn-icon " + (J ? "hep-cr-btn-copied" : ""), disabled: J, onClick: Ce, title: J ? "已复制" : "复制", children: J ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx(Je, { value: i, language: ae, theme: u, disabled: !y || X, onChange: Te, onCodeChange: C })] }), _ && c.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: je, children: c.jsx("div", { className: "hep-cr-resize-line" }) }), c.jsxs("div", { className: "hep-cr-output-panel", style: { width: _ ? 100 - se + "%" : "100%" }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsxs("div", { className: "hep-cr-output-tabs", children: [c.jsx("button", { className: "hep-cr-tab " + (D === "stdout" ? "active" : ""), onClick: () => G("stdout"), children: "输出" }), Q && c.jsx("button", { className: "hep-cr-tab hep-cr-tab-error " + (D === "stderr" ? "active" : ""), onClick: () => G("stderr"), children: "错误" })] }), c.jsxs("div", { className: "hep-cr-output-actions", children: [fe !== null && c.jsxs("span", { className: "hep-cr-execution-time", children: [fe, "ms"] }), c.jsx("button", { className: "hep-cr-btn-icon " + (le ? "hep-cr-btn-copied" : ""), disabled: le, onClick: me, title: le ? "已复制" : "复制", children: le ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx("div", { className: "hep-cr-output-content", children: c.jsx("pre", { children: D === "stdout" ? X ? "代码执行中..." : H || '点击"运行"执行代码' : Q }) })] })] }), c.jsx("style", { children: `
1143
1145
  .hep-cr-runner {
1144
1146
  display: flex;
1145
1147
  flex-direction: column;
@@ -1371,7 +1373,7 @@ const tn = ({ pistonUrl: d = "/api/piston", token: t = "", language: l = "javasc
1371
1373
  xe(() => {
1372
1374
  S && d !== b && k(d);
1373
1375
  }, [d, S]);
1374
- const E = ce(() => {
1376
+ const E = pe(() => {
1375
1377
  S || k(!1), m == null || m();
1376
1378
  }, [S, m]);
1377
1379
  Ke(y, () => ({ close: E }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hep-code-runner/react",
3
- "version": "3.3.9",
3
+ "version": "3.3.10",
4
4
  "description": "React code runner component",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",