PageSourceSearch

https://community.mamabearsrising.com/packs/js/CodeSnippetEditor-316e41940d0eb8a0.chunk.js

js mamabearsrising.com collected 2026-09-29 04:02:50 UTC 6,035 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[23285],{248542(e,t,r){r.d(t,{CodeSnippetEditor:()=>B});var n=r(391426),o=r(202090),a=r(285305),i=r(82106),c=r(933578),l=r(497198),u=r(584189),s=r(465663),f=r(262091),d=r(9848),p=r(999079),g=r(996647),m=r(417980),h=/<style\b[^>]*>([\s\S]*?)<\/style\s*>/gi,v=/\.[A-Za-z_-][A-Za-z0-9_-]*/g,y=/#[A-Za-z0-9_-]+/g,b=/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,x=/\[\s*data-testid\b[^\]]*\]/gi,A=function(e){return" ".repeat(e.length)},S=function(e){var t,r=[];for(h.lastIndex=0;null!==(t=h.exec(e));){var n=t.index+t[0].indexOf(">")+1,o=t.index+t[0].lastIndexOf("</");o>n&&r.push({from:n,to:o})}return r},C=function(e,t,r,n,o,a){for(t.lastIndex=0;null!==(i=t.exec(e));)if(null==a||!a(i[0])){var i,c=r+i.index,l=c+i[0].length;o.push({from:c,to:l,severity:"warning",message:n})}},L=/<script\b[^>]*>/gi,w=/<\/script\s*>/gi,z=/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|`(?:[^`\\]|\\.)*`/g,H=/\/\/[^\n]*|\/\*[\s\S]*?\*\//g,I=function(e){return" ".repeat(e.length)},O=function(e,t,r,n){var o;for(t.lastIndex=0;null!==(o=t.exec(e));)n.push({from:o.index,to:o.index+o[0].length,severity:"error",message:r})};function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var j="settings.code_snippets.lint",E=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.enableCssAnchorLint;return"javascript"===e?[(0,p.Q2)(),(0,g.bu)((t={get scriptOpen(){return(0,m.t)([j,"script_open"])},get scriptClose(){return(0,m.t)([j,"script_close"])}},function(e){var r=e.state.doc.toString(),n=[],o=r.replace(z,I).replace(H,I);return O(o,L,t.scriptOpen,n),O(o,w,t.scriptClose,n),n}),{delay:300}),(0,g.pJ)()]:[(0,d.qy)({autoCloseTags:!0,matchClosingTags:!0}),(0,l.yU)()].concat(function(e){if(Array.isArray(e))return _(e)}(n=void 0!==a&&a?[(0,g.bu)((r={get classSelector(){return(0,m.t)([j,"class_selector"])},get idSelector(){return(0,m.t)([j,"id_selector"])},get testidSelector(){return(0,m.t)([j,"testid_selector"])}},function(e){var t=e.state.doc.toString(),n=[],o=S(t),a=!0,i=!1,c=void 0;try{for(var l,u=o[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value,f=t.slice(s.from,s.to).replace(/\/\*[\s\S]*?\*\//g,A).replace(/"[^"]*"|'[^']*'/g,A).replace(/url\([^)]*\)/gi,A);C(f,v,s.from,r.classSelector,n),C(f,y,s.from,r.idSelector,n,function(e){return b.test(e)}),C(f,x,s.from,r.testidSelector,n)}}catch(e){i=!0,c=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw c}}return n}),{delay:300}),(0,g.pJ)()]:[])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e){if(e){if("string"==typeof e)return _(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function R(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return k(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return k(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $=function(e){var t=e.parent,r=e.value,n=e.language,o=e.minHeight,i=e.maxHeight,c=e.themeCompartment,d=e.themeExtension,p=e.onDocChange,g=e.onBlur,m=e.ariaLabel,h=e.enableCssAnchorLint,v=f.Lz.updateListener.of(function(e){e.docChanged&&p(e.state.doc.toString()),e.focusChanged&&!e.view.hasFocus&&g()}),y=f.Lz.theme({"&":{maxHeight:i,fontSize:"13px"},".cm-scroller":{overflow:"auto",lineHeight:"1.55"},".cm-content":{minHeight:o},".cm-tooltip-lint":{maxWidth:"385px"}}),b=a.$t.create({doc:null!=r?r:"",extensions:[(0,f.$K)(),(0,f.Wu)(),(0,s.Lv)(),(0,u.b6)(),(0,f.VH)(),(0,s.WD)(),(0,s.SG)(),(0,l.wm)(),(0,s.y9)(s.Zt,{fallback:!0}),(0,f.dz)()].concat(R(E(n,{enableCssAnchorLint:h})),[f.w4.of(R(l.Bc).concat(R(u.pw),R(u.cL),R(s.f7),R("html"===n?l.OO:[]))),y,c.of(d),f.Lz.lineWrapping,v,f.Lz.contentAttributes.of(m?{"aria-label":m}:{})])});return new f.Lz({state:b,parent:t})},B=function(e){var t=e.value,r=e.onChange,l=e.onBlur,u=e.name,s=e.language,f=void 0===s?"html":s,d=e.minHeight,p=void 0===d?"180px":d,g=e.maxHeight,m=void 0===g?"520px":g,h=e.ariaLabel,v=e.enableCssAnchorLint,y=void 0!==v&&v,b=(0,o.wR)().isDarkAppearance,x=(0,c.useRef)(null),A=(0,c.useRef)(null),S=(0,c.useRef)(r),C=(0,c.useRef)(l),L=(0,c.useMemo)(function(){return new a.xx},[]);S.current=r,C.current=l;var w=(0,c.useMemo)(function(){return b?i.Q4:i.al},[b]);
1return(0,c.useEffect)(function(){if(x.current){var e=$({parent:x.current,value:t,language:f,minHeight:p,maxHeight:m,themeCompartment:L,themeExtension:w,onDocChange:function(e){return S.current(e)},onBlur:function(){var e;return null==(e=C.current)?void 0:e.call(C)},ariaLabel:h,enableCssAnchorLint:y});return A.current=e,function(){e.destroy(),A.current=null}}},[y]),(0,c.useEffect)(function(){var e=A.current;e&&e.dispatch({effects:L.reconfigure(w)})},[w,L]),(0,c.useEffect)(function(){var e=A.current;if(e){var r=e.state.doc.toString();r!==t&&e.dispatch({changes:{from:0,to:r.length,insert:null!=t?t:""}})}},[t]),(0,n.jsx)("div",{ref:x,"aria-label":h,"data-name":u,className:"overflow-hidden rounded-md border border-primary"})}}}]);
2//# sourceMappingURL=/packs/js/CodeSnippetEditor-316e41940d0eb8a0.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.