autosnippet 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{u as b,e as O,f as v,V as P,g as x,v as E,t as j,j as m,h as c}from"./vendor-Cky7Jynh.js";const R="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",f=[],p={allowDangerousHtml:!0},T=/^(https?|ircs?|mailto|xmpp)$/i,N=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function U(r){const e=H(r),o=S(r);return D(e.runSync(e.parse(o),o),r)}function H(r){const e=r.rehypePlugins||f,o=r.remarkPlugins||f,l=r.remarkRehypeOptions?{...r.remarkRehypeOptions,...p}:p;return b().use(O).use(o).use(v,l).use(e)}function S(r){const e=r.children||"",o=new P;return typeof e=="string"&&(o.value=e),o}function D(r,e){const o=e.allowedElements,l=e.allowElement,i=e.components,d=e.disallowedElements,g=e.skipHtml,w=e.unwrapDisallowed,h=e.urlTransform||F;for(const s of N)Object.hasOwn(e,s.from)&&x("Unexpected `"+s.from+"` prop, "+(s.to?"use `"+s.to+"` instead":"remove it")+" (see <"+R+"#"+s.id+"> for more info)");return E(r,y),j(r,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function y(s,n,a){if(s.type==="raw"&&a&&typeof n=="number")return g?a.children.splice(n,1):a.children[n]={type:"text",value:s.value},n;if(s.type==="element"){let t;for(t in c)if(Object.hasOwn(c,t)&&Object.hasOwn(s.properties,t)){const k=s.properties[t],u=c[t];(u===null||u.includes(s.tagName))&&(s.properties[t]=h(String(k||""),t,s))}}if(s.type==="element"){let t=o?!o.includes(s.tagName):d?d.includes(s.tagName):!1;if(!t&&l&&typeof n=="number"&&(t=!l(s,n,a)),t&&a&&typeof n=="number")return w&&s.children?a.children.splice(n,1,...s.children):a.children.splice(n,1),n}}}function F(r){const e=r.indexOf(":"),o=r.indexOf("?"),l=r.indexOf("#"),i=r.indexOf("/");return e===-1||i!==-1&&e>i||o!==-1&&e>o||l!==-1&&e>l||T.test(r.slice(0,e))?r:""}export{U as M};
1
+ import{u as b,a as O,b as v,V as P,c as x,v as E,t as j,j as m,d as c}from"./vendor-f83ah6cm.js";const R="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",f=[],p={allowDangerousHtml:!0},T=/^(https?|ircs?|mailto|xmpp)$/i,N=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function U(r){const e=H(r),o=S(r);return D(e.runSync(e.parse(o),o),r)}function H(r){const e=r.rehypePlugins||f,o=r.remarkPlugins||f,l=r.remarkRehypeOptions?{...r.remarkRehypeOptions,...p}:p;return b().use(O).use(o).use(v,l).use(e)}function S(r){const e=r.children||"",o=new P;return typeof e=="string"&&(o.value=e),o}function D(r,e){const o=e.allowedElements,l=e.allowElement,i=e.components,d=e.disallowedElements,g=e.skipHtml,w=e.unwrapDisallowed,h=e.urlTransform||F;for(const s of N)Object.hasOwn(e,s.from)&&x("Unexpected `"+s.from+"` prop, "+(s.to?"use `"+s.to+"` instead":"remove it")+" (see <"+R+"#"+s.id+"> for more info)");return E(r,y),j(r,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function y(s,n,a){if(s.type==="raw"&&a&&typeof n=="number")return g?a.children.splice(n,1):a.children[n]={type:"text",value:s.value},n;if(s.type==="element"){let t;for(t in c)if(Object.hasOwn(c,t)&&Object.hasOwn(s.properties,t)){const k=s.properties[t],u=c[t];(u===null||u.includes(s.tagName))&&(s.properties[t]=h(String(k||""),t,s))}}if(s.type==="element"){let t=o?!o.includes(s.tagName):d?d.includes(s.tagName):!1;if(!t&&l&&typeof n=="number"&&(t=!l(s,n,a)),t&&a&&typeof n=="number")return w&&s.children?a.children.splice(n,1,...s.children):a.children.splice(n,1),n}}}function F(r){const e=r.indexOf(":"),o=r.indexOf("?"),l=r.indexOf("#"),i=r.indexOf("/");return e===-1||i!==-1&&e>i||o!==-1&&e>o||l!==-1&&e>l||T.test(r.slice(0,e))?r:""}export{U as M};
@@ -1,4 +1,4 @@
1
- import{R as S,_ as re,a as _,b as ue,c as V,d as ge}from"./vendor-Cky7Jynh.js";function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,o)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?X(Object(t),!0).forEach(function(o){_(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function de(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(n>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var G={};function he(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return G[n]||(G[n]=de(e)),G[n]}function pe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,o=e.filter(function(a){return a!=="token"}),c=he(o);return c.reduce(function(a,s){return $($({},a),t[s])},n)}function Y(e){return e.join(" ")}function me(e,n){var t=0;return function(o){return t+=1,o.map(function(c,a){return ee({node:c,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(t,"-").concat(a)})})}}function ee(e){var n=e.node,t=e.stylesheet,o=e.style,c=o===void 0?{}:o,a=e.useInlineStyles,s=e.key,l=n.properties,k=n.type,d=n.tagName,r=n.value;if(k==="text")return r;if(d){var g=me(t,a),h;if(!a)h=$($({},l),{},{className:Y(l.className)});else{var i=Object.keys(t).reduce(function(f,w){return w.split(".").forEach(function(N){f.includes(N)||f.push(N)}),f},[]),p=l.className&&l.className.includes("token")?["token"]:[],y=l.className&&p.concat(l.className.filter(function(f){return!i.includes(f)}));h=$($({},l),{},{className:Y(y)||void 0,style:pe(l.className,Object.assign({},l.style,c),t)})}var v=g(n.children);return S.createElement(d,re({key:s},h),v)}}const be=(function(e,n){var t=e.listLanguages();return t.indexOf(n)!==-1});var fe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,o)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Z(Object(t),!0).forEach(function(o){_(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}var ke=/\n/g;function ve(e){return e.match(ke)}function ye(e){var n=e.lines,t=e.startingLineNumber,o=e.style;return n.map(function(c,a){var s=a+t;return S.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof o=="function"?o(s):o},"".concat(s,`
1
+ import{R as S,_ as re,e as _,f as ue,g as V,h as ge}from"./vendor-f83ah6cm.js";function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,o)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?X(Object(t),!0).forEach(function(o){_(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function de(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(n>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var G={};function he(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return G[n]||(G[n]=de(e)),G[n]}function pe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,o=e.filter(function(a){return a!=="token"}),c=he(o);return c.reduce(function(a,s){return $($({},a),t[s])},n)}function Y(e){return e.join(" ")}function me(e,n){var t=0;return function(o){return t+=1,o.map(function(c,a){return ee({node:c,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(t,"-").concat(a)})})}}function ee(e){var n=e.node,t=e.stylesheet,o=e.style,c=o===void 0?{}:o,a=e.useInlineStyles,s=e.key,l=n.properties,k=n.type,d=n.tagName,r=n.value;if(k==="text")return r;if(d){var g=me(t,a),h;if(!a)h=$($({},l),{},{className:Y(l.className)});else{var i=Object.keys(t).reduce(function(f,w){return w.split(".").forEach(function(N){f.includes(N)||f.push(N)}),f},[]),p=l.className&&l.className.includes("token")?["token"]:[],y=l.className&&p.concat(l.className.filter(function(f){return!i.includes(f)}));h=$($({},l),{},{className:Y(y)||void 0,style:pe(l.className,Object.assign({},l.style,c),t)})}var v=g(n.children);return S.createElement(d,re({key:s},h),v)}}const be=(function(e,n){var t=e.listLanguages();return t.indexOf(n)!==-1});var fe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,o)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Z(Object(t),!0).forEach(function(o){_(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}var ke=/\n/g;function ve(e){return e.match(ke)}function ye(e){var n=e.lines,t=e.startingLineNumber,o=e.style;return n.map(function(c,a){var s=a+t;return S.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof o=="function"?o(s):o},"".concat(s,`
2
2
  `))})}function we(e){var n=e.codeString,t=e.codeStyle,o=e.containerStyle,c=o===void 0?{float:"left",paddingRight:"10px"}:o,a=e.numberStyle,s=a===void 0?{}:a,l=e.startingLineNumber;return S.createElement("code",{style:Object.assign({},t,c)},ye({lines:n.replace(/\n$/,"").split(`
3
3
  `),style:s,startingLineNumber:l}))}function Se(e){return"".concat(e.toString().length,".25em")}function oe(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function ne(e,n,t){var o={display:"inline-block",minWidth:Se(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},c=typeof e=="function"?e(n):e,a=x(x({},o),c);return a}function F(e){var n=e.children,t=e.lineNumber,o=e.lineNumberStyle,c=e.largestLineNumber,a=e.showInlineLineNumbers,s=e.lineProps,l=s===void 0?{}:s,k=e.className,d=k===void 0?[]:k,r=e.showLineNumbers,g=e.wrapLongLines,h=e.wrapLines,i=h===void 0?!1:h,p=i?x({},typeof l=="function"?l(t):l):{};if(p.className=p.className?[].concat(V(p.className.trim().split(/\s+/)),V(d)):d,t&&a){var y=ne(o,t,c);n.unshift(oe(t,y))}return g&r&&(p.style=x({display:"flex"},p.style)),{type:"element",tagName:"span",properties:p,children:n}}function te(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var o=0;o<e.length;o++){var c=e[o];if(c.type==="text")t.push(F({children:[c],className:V(new Set(n))}));else if(c.children){var a,s=n.concat(((a=c.properties)===null||a===void 0?void 0:a.className)||[]);te(c.children,s).forEach(function(l){return t.push(l)})}}return t}function xe(e,n,t,o,c,a,s,l,k){var d,r=te(e.value),g=[],h=-1,i=0;function p(m,u){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return F({children:m,lineNumber:u,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:c,lineProps:t,className:b,showLineNumbers:o,wrapLongLines:k,wrapLines:n})}function y(m,u){if(o&&u&&c){var b=ne(l,u,s);m.unshift(oe(u,b))}return m}function v(m,u){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n||b.length>0?p(m,u,b):y(m,u)}for(var f=function(){var u=r[i],b=u.children[0].value,E=ve(b);if(E){var C=b.split(`
4
4
  `);C.forEach(function(q,O){var z=o&&g.length+a,H={type:"text",value:"".concat(q,`