PageSourceSearch

https://www.befunky.com/web/js/dplV26_api.min.js

js befunky.com collected 2026-09-24 07:58:35 UTC 4,425 bytes, 1 lines download raw bytes

1window.DirectUPL=function(){var n=[],r=!1;function s(e){n.push(e),r||function e(){if(!n.length)return void(r=!1);r=!0;var t=n.shift();setTimeout(function(){try{t()}catch(e){}e()},0)}()}var c=1,u={},v={signReq:null,uploadReq:null,parseXml:function(e){return(new window.DOMParser).parseFromString(e,"text/xml")},postToJAJ:function(e,t,n,i,r){try{var o=new XMLHttpRequest;function a(){try{o&&o.upload&&(o.upload.removeEventListener("error",c),o.upload.removeEventListener("abort",s))}catch(e){}}function s(){a(),v.signReq=null;try{r&&r("abort")}catch(e){}}function c(e){a(),v.signReq=null;try{var t=e&&("string"==typeof e||e instanceof String)?e:null;null==t&&(o&&o.status&&(t="Status: "+o.status),o&&o.statusText&&(t=(t?t+", ":"")+o.statusText)),o&&(o.response||o.responseText)&&(null==t&&(t=""),t+=" Response: "+(null!=o.response?o.response:o.responseText)),e&&e.type&&(t=(t||"")+" Type: "+e.type);try{console.log("DPL_SIG err log: "+t)}catch(e){}}catch(e){}try{r&&r("error")}catch(e){}}(v.signReq=o).onload=function(){a(),v.signReq=null;try{var e=null!=o.response?o.response:o.responseText;n(e)}catch(e){}};var u="";if("object"==typeof t){var l,p=0;for(l in t)t.hasOwnProperty(l)&&(0<p++&&(u+="&"),u+=l+"="+t[l])}else u=t;try{o.upload.addEventListener("error",c),o.upload.addEventListener("abort",s),o.withCredentials=!0,o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");try{o.setRequestHeader("X-CSRF-Token",getCsToken())}catch(e){}o.send(u)}catch(e){}}catch(e){}},upload:function(t,p){var e=c++,d={id:e,active:!0,sigXhr:null,uplXhr:null};function f(e){d.active&&(d.active=!1,s(function(){try{"function"==typeof t&&t(e)}catch(e){}}),n())}function h(e){d.active&&(d.active=!1,s(function(){try{"function"==typeof t&&t(e)}catch(e){}}),n())}function n(){try{d.sigXhr&&d.sigXhr.upload&&(d.sigXhr.upload.onabort=d.sigXhr.upload.onerror=null),d.uplXhr&&d.uplXhr.upload&&(d.uplXhr.upload.onabort=d.uplXhr.upload.onerror=null)}catch(e){}d.sigXhr=null,d.uplXhr=null,delete u[e]}u[e]=d;var r,o,y=null,a={id:e,cancel:function(){if(d.active){d.active=!1;try{d.sigXhr&&d.sigXhr.abort()}catch(e){}try{d.uplXhr&&d.uplXhr.abort()}catch(e){}s(function(){try{"function"==typeof t&&t({abort:1})}catch(e){}}),n()}},get uploadReq(){return d.uplXhr},get signReq(){return d.sigXhr},xhrReady:new Promise(function(e){y=e})};return r=void 0!==window.BeFunky?window.BeFunky.Params.siteUrl+"api/direct-upload/":"https://upload.befunky.com/direct_upl.php",o=getCsToken(),o="bucket="+p.bucket+"&content_type="+p.content_type+"&CSRFtoken="+o,p.isBFP&&(o+="&isBfp=1"),null!=p.filename&&(o+="&filename="+encodeURIComponent(p.filename)),v.postToJAJ(r,o,function(e){if(d.active){var t=e;try{t=JSON.parse(e)}catch(e){}t&&t.data&&t.data.url&&t.data.inputs?function r(o,a,s){if(!d.active)return;var c=new XMLHttpRequest;d.uplXhr=c;v.uploadReq=c;"function"==typeof y&&y(c);var u=!1;c.onload=function(){if(!u&&(u=!0,d.active)){var e=null;try{e=null!=c.response?c.response:null!=c.responseText?c.responseText:c.responseXML}catch(e){}if(null!=e){var t,n,r,o,a=null;try{a=v.parseXml(e)}catch(e){return l()}if(a){try{t=a.getElementsByTagName("Location")[0],n=a.getElementsByTagName("Key")[0],r=t&&t.childNodes[0]&&t.childNodes[0].nodeValue,o=n&&n.childNodes[0]&&n.childNodes[0].nodeValue}catch(e){}r&&0<r.length?f({url:(r||"").replace("%2F","/"),s3_name:o}):l(e)}else l()}else l()}};function l(e){if(0===s&&d.active){try{console&&console.log&&console.log("Retrying direct upload once...")}catch(e){}var t=o;if(!t||!t.data)try{t=JSON.parse(a)}catch(e){}r(t,a,1)}else{try{var n="";try{c&&c.status&&(n+="Status: "+c.status),c&&c.statusText&&(n+=(n?", ":"")+c.statusText),c&&(c.response||c.responseText)&&(n+=" Response: "+(null!=c.response?c.response:c.responseText))}catch(e){}try{console.log("S3 Error log: "+n)}catch(e){}}catch(e){}try{"undefined"!=typeof Sentry&&Sentry.captureException(new Error("S3 error: transfer failed"))}catch(e){}h({error:1})}}var e=function(e){d.active&&l()};var i=function(){d.active&&f({abort:1})};try{c.upload&&(c.upload.addEventListener("error",e),c.upload.addEventListener("abort",i));var t,n=new FormData;for(t in o.data.inputs)o.data.inputs.hasOwnProperty(t)&&n.append(t,o.data.inputs[t]);n.append("file",p.blob),c.open("POST",o.data.url,!0),c.send(n)}catch(e){l()}}(t,e,0):h({error:1})}},"json",function(e){d.active&&("abort"===e?f({abort:1}):h({error:1}))}),d.sigXhr=v.signReq,a}};return v}();

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.