PageSourceSearch

https://host.terminal.icu/assets/modules/quickreply.46d7e88d3c348437a815.min.js

js terminal.icu collected 2026-10-08 19:05:23 UTC 3,242 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,18314,34271,49897,87212,99127],{49897(_,l,u){u.r(l),u.d(l,{del:()=>S,get:()=>E,head:()=>p,patch:()=>O,post:()=>w,put:()=>P});var f=u(91749),c=u.n(f),o=u(33530),a=u.n(o);const r=config.relative_path+"/api/v3";async function s(t,n){if(t.url=t.url.startsWith("/api")?config.relative_path+t.url:r+t.url,typeof n=="function"){y(t).then(e=>n(null,e),e=>n(e));return}try{return await y(t)}catch(e){if(e.message==="A valid login session was not found. Please log in and try again."){const{url:h}=await(0,f.fire)("filter:admin.reauth",{url:"login"});return(0,o.confirm)("[[error:api.reauth-required]]",d=>{d&&ajaxify.go(h)})}throw e}}async function y(t){const{url:n}=t;delete t.url,t.data&&!(t.data instanceof FormData)&&(t.data=JSON.stringify(t.data||{}),t.headers["content-type"]="application/json; charset=utf-8"),{options:t}=await(0,f.fire)("filter:api.options",{options:t}),t.data&&(t.body=t.data,delete t.data);const e=await fetch(n,t),{headers:h}=e;if(h.get("x-redirect"))return y({url:h.get("x-redirect"),...t});const d=h.get("content-type"),g=d&&d.startsWith("application/json");let i;if(t.method!=="HEAD"&&(g?i=await e.json():i=await e.text()),!e.ok){if(i){const m=g&&(i.status?.message||i.error||"");throw new Error(g&&m?m:i)}throw new Error(e.statusText)}return g&&i&&i.hasOwnProperty("status")&&i.hasOwnProperty("response")?i.response:i}function E(t,n,e){return s({url:t+(n&&Object.keys(n).length?"?"+$.param(n):"")},e)}function p(t,n,e){return s({url:t+(n&&Object.keys(n).length?"?"+$.param(n):""),method:"HEAD"},e)}function w(t,n,e){return s({url:t,method:"POST",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function O(t,n,e){return s({url:t,method:"PATCH",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function P(t,n,e){return s({url:t,method:"PUT",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function S(t,n,e){return s({url:t,method:"DELETE",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}},68636(_,l,u){var f;f=(function(){function c(){this._store={},this._keys=[]}c.prototype.isMock=!0,c.prototype.setItem=function(r,s){r=String(r),this._keys.indexOf(r)===-1&&this._keys.push(r),this._store[r]=s},c.prototype.getItem=function(r){return r=String(r),this._keys.indexOf(r)===-1?null:this._store[r]},c.prototype.removeItem=function(r){r=String(r),this._keys=this._keys.filter(function(s){return s!==r}),this._store[r]=null},c.prototype.clear=function(){this._keys=[],this._store={}},c.prototype.key=function(r){return r=parseInt(r,10)||0,this._keys[r]},Object.defineProperty&&Object.defineProperty(c.prototype,"length",{get:function(){return this._keys.length}});let o;const a=Date.now().toString();try{if(o=window.localStorage,o.setItem(a,a),o.getItem(a)!==a)throw Error("localStorage behaved unexpectedly");return o.removeItem(a),o}catch(r){console.warn(r),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(a,a),o.getItem(a)!==a)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(a),o}catch(s){return console.warn(s),console.warn("sessionStorage failed, falling back on memory storage"),new c}}}).call(l,u,l,_),f!==void 0&&(_.exports=f)}}]);

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.