1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,5719,18314,22067,34271,43602,49897,87212,99127],{47283(D,y,i){var l,d;l=[i(49897),i(65303),i(29930)],d=(function(o,c,a){const f={};f.account=function(h,g){w(h,"[[user:delete-this-account-confirm]]","/account","[[user:account-deleted]]",g)},f.content=function(h,g){w(h,"[[user:delete-account-content-confirm]]","/content","[[user:account-content-deleted]]",g)},f.purge=function(h,g){w(h,"[[user:delete-all-confirm]]","","[[user:account-deleted]]",g)};function w(h,g,_,I,t){c.confirm(g,function(r){r&&o.del(`/users/${encodeURIComponent(h)}${_}`,{}).then(()=>{if(a.success(I),typeof t=="function")return t()}).catch(a.error)})}return f}).apply(y,l),d!==void 0&&(D.exports=d)},49897(D,y,i){i.r(y),i.d(y,{del:()=>A,get:()=>I,head:()=>t,patch:()=>m,post:()=>r,put:()=>P});var l=i(91749),d=i.n(l),o=i(65303),c=i(17459),a=i.n(c),f=i(68636),w=i.n(f);const h=config.relative_path+"/api/v3";async function g(e,s){if(e.url=e.url.startsWith("/api")?config.relative_path+e.url:h+e.url,e.headers=e.headers||{},e.headers["x-return-to"]||(e.headers["x-return-to"]=`${window.location.pathname.slice(config.relative_path.length)}${window.location.search}`),typeof s=="function"){_(e).then(n=>s(null,n),n=>s(n));return}try{return await _(e)}catch(n){if(n.message===await c.translate("[[error:api.401]]",config.userLang)){const{url:u}=await(0,l.fire)("filter:admin.reauth",{url:"login"}),O=await c.translate("[[error:api.reauth-required]]",config.userLang);(0,o.confirm)(O,M=>{M&&(f.setItem("location-hash",window.location.hash),ajaxify.go(u))})}throw n}}async function _(e){const{url:s}=e;delete e.url,e.data&&!(e.data instanceof FormData)&&(e.data=JSON.stringify(e.data||{}),e.headers["content-type"]="application/json; charset=utf-8"),{options:e}=await(0,l.fire)("filter:api.options",{options:e}),e.data&&(e.body=e.data,delete e.data);const n=await fetch(s,e),{headers:u}=n;if(u.get("x-redirect"))return _({url:u.get("x-redirect"),...e});const O=u.get("content-type"),M=O&&O.startsWith("application/json");let E;if(e.method!=="HEAD"&&(M?E=await n.json():E=await n.text()),!n.ok){if(E){const L=M&&(E.status?.message||E.error||""),C=typeof E=="string"?E:n.statusText||`[[error:api.${n.status}]]`;throw new Error(M&&L?L:C)}throw new Error(n.statusText)}return M&&E&&E.hasOwnProperty("status")&&E.hasOwnProperty("response")?E.response:E}function I(e,s,n){return g({url:e+(s&&Object.keys(s).length?"?"+$.param(s):"")},n)}function t(e,s,n){return g({url:e+(s&&Object.keys(s).length?"?"+$.param(s):""),method:"HEAD"},n)}function r(e,s,n,u){return v("POST",e,s,n,u)}function m(e,s,n,u){return v("PATCH",e,s,n,u)}function P(e,s,n,u){return v("PUT",e,s,n,u)}function A(e,s,n,u){return v("DELETE",e,s,n,u)}function v(e,s,n,u,O){return typeof u=="function"&&(O=u,u={}),g({url:s,method:e,data:n,headers:{"x-csrf-token":config.csrf_token,...u}},O)}},65303(D,y,i){i.r(y),i.d(y,{alert:()=>f,confirm:()=>w,dialog:()=>a,prompt:()=>h,promptPassword:()=>g});var l=i(33530),d=i.n(l),o=i(17459),c=i.n(o);l.setDefaults({locale:config.userLang}),o.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(t=>{l.addLocale(config.userLang,{OK:t[0],CANCEL:t[1],CONFIRM:t[2]}),l.setLocale(config.userLang)});async function a(t){const[r,m,P]=await Promise.all([o.translate(t.title||""),_(t)||"",I(t.buttons)]);return l.dialog({...t,title:r,message:m,buttons:P})}async function f(t,r){const[m,P]=await Promise.all([t&&t.title?o.translate(t.title):null,_(t)]);return r=typeof r=="function"?r:t.callback,l.alert({...t,title:m,message:P,callback:r})}async function w(t,r){const[m,P]=await Promise.all([t&&t.title?o.translate(t.title):null,_(t)]);return r=typeof r=="function"?r:t.callback,l.confirm({...t,title:m,message:P,callback:r})}async function h(t,r){const[m,P]=await Promise.all([o.translate(typeof t=="string"?t:t.title),t&&t.message?_(t):null]);return r=typeof r=="function"?r:t.callback,l.prompt({...t,title:m,message:P,callback:r})}async function g(t){return typeof t=="string"&&(t={title:t}),t=t||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(r=>{h({...t,inputType:"password",required:!0,value:"",callback:r})})}function _(t){const r=t&&t.message?t.message:t;return r instanceof jQuery?r:o.translate(r||"")}async function I(t){if(!Object.keys(t||{}).length)return;const r=Object.values(t);return await Promise.all(r.map(async m=>({...m,label:await o.translateKey(m.label)})))}},68636(D,y,i){var l;l=(function(){function d(){this._store={},this._keys=[]}d.prototype.isMock=!0,d.prototype.setItem=function(a,f){a=String(a),this._keys.indexOf(a)===-1&&this._keys.push(a),this._store[a]=f},d.prototype.getItem=function(a){return a=String(a),this._keys.indexOf(a)===-1?null:this._store[a]},d.prototype.removeItem=function(a){a=String(a),this._keys=this._keys.filter(function(f){return f!==a}),this._store[a]=null},d.prototype.clear=function(){this._keys=[],this._store={}},d.prototype.key=function(a){return a=parseInt(a,10)||0,this._keys[a]},Object.defineProperty&&Object.defineProperty(d.prototype,"length",{get:function(){return this._keys.length}});let o;const c=Date.now().toString();try{if(o=window.localStorage,o.setItem(c,c),o.getItem(c)!==c)throw Error("localStorage behaved unexpectedly");return o.removeItem(c),o}
1catch(a){console.warn(a),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(c,c),o.getItem(c)!==c)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(c),o}catch(f){return console.warn(f),console.warn("sessionStorage failed, falling back on memory storage"),new d}}}).call(y,i,y,D),l!==void 0&&(D.exports=l)}}]);
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.