PageSourceSearch

https://cypherscribe.com/_next/static/chunks/2689.bff3ed53a3a3aac3.js

js cypherscribe.com collected 2026-10-04 13:31:48 UTC 3,699 bytes, 1 lines download raw bytes

1!function(){var e={};e.d=function(l,t){for(var n in t)e.o(t,n)&&!e.o(l,n)&&Object.defineProperty(l,n,{enumerable:!0,get:t[n]})},e.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},function(){"use strict";function e(e){return console.log(e),e.replace(/[\s\/!@#$%^&*()=+{}[\]|\\:;'"<>,.?~%]+/g,"-").replace(/\.+/g,"-").replace(/--+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function l(e,l){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null==e?void 0:e.some((e,n)=>e.title.toLowerCase()===l.toLowerCase()&&n!==t)}let t=(l,t,n)=>{let i="/edit",r=l;for(let l=0;l<t.length;l++){let n=t[l];i+="/".concat(r[n].href||e(r[n].title)),r=r[n].children}return i+"/".concat(n)},n=(e,l)=>{let t=e?e.split("-").map(Number):[],n=t.join("-");if(t.length){let e=l[t[t.length-1]].children.length;n+="-".concat(e)}else n="".concat(l.length-1);return n},i=(e,l,t,n,i)=>{if(console.log("items: ",e),null===t)e.push(n),l.push(i);else{let r=t.split("-").map(Number),s=e,h=l;for(let e=0;e<r.length;e++){let l=r[e];e===r.length-1?(s[l].children||(s[l].children=[]),s[l].children.push(n),h[l]||(h[l]={children:[]}),h[l].children||(h[l].children=[]),h[l].children.push(i)):(s[l].children||(s[l].children=[]),s=s[l].children,h[l]||(h[l]={children:[]}),h[l].children||(h[l].children=[]),h=h[l].children)}}};self.onmessage=function(r){let{type:s,files:h,pagesContent:o,index:c,parentIndex:a,path:u,newFile:f,newContentPage:d}=r.data;if("delete"===s){let e=[...h],l=[...o];e.splice(c,1),l.splice(c,1),postMessage({updatedFiles:e,updatedPagesContent:l})}if("deleteNested"===s){let e=(l,t,n)=>{if(1===n.length)l.splice(n[0],1),t.splice(n[0],1);else{let i=n[0];e(l[i].children,t[i].children,n.slice(1))}},l=a.split("-").map(Number);l.push(c);let t=[...h],n=[...o];e(t,n,l),postMessage({updatedFiles:t,updatedPagesContent:n})}if("edit"===s){let t=!1,n=null,i=!1,r=null,s=(s,h)=>{let o=s,a=[];for(let l=0;l<h.length-1;l++)o[h[l]].href?a.push(o[h[l]].href):a.push(e(o[h[l]].title)),o=o[h[l]].children||o[h[l]];if(console.log("isDuplicate:",t=l(o,f.title,h[h.length-1])),!t){let l=o[h[h.length-1]],t=l.href;l.title=f.title,null!==t&&(l.href=e(f.title),i=!0),i?n="/edit/"+[...a,l.href].filter(Boolean).join("/"):(r=c(l))&&(n="/edit/"+[...a,e(l.title),...r.path].filter(Boolean).join("/"))}},c=function(l){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(l.href)return{href:l.href,path:t};if(l.children)for(let n=0;n<l.children.length;n++){let i=c(l.children[n],[...t,e(l.children[n].title)]);if(i)return i}return null},a=[...h],d=[...o],p=u.split("-").map(Number);s(a,p),s(d,p),t?(console.log("duplicate from worker"),self.postMessage({error:"Duplicate page name at the same level"})):self.postMessage({updatedFiles:a,updatedPagesContent:d,fullPath:n,hasHref:i||!!r,childWithHref:r?r.href:null})}if("add"===s){let e=!1;if(null===a)e=l(h,f.title);else{let t=a.split("-").map(Number),n=h;for(let e=0;e<t.length;e++)n=n[t[e]].children;e=l(n,f.title)}if(e)self.postMessage({error:"Duplicate page name at the same level"});else{i(h,o,a,f,d);let e=null,l=null;f.href&&(e=t(h,a?a.split("-").map(Number):[],f.href),l=n(a,h)),self.postMessage({updatedFiles:h,updatedPagesContent:o,finalPath:e,finalQueryString:l})}}if("findFile"===s){let l=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=parseInt(n[0]),h=t[s];r.push(s);let o=h.href?[...i,h.href]:[...i,h.title];return 1===n.length?h.href?{file:h,sanitizedFullHref:o.map(e).join("/"),queryString:r.join("-")}:{file:h,sanitizedFullHref:null,queryString:null}:l(h.children,n.slice(1),o,r)},t=l(h,u.split("-"));self.postMessage(t)}}}(),_N_E={}}();

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.