PageSourceSearch

https://czarpress.com/wp-content/plugins/use-your-drive/includes/js/Bridge.min.js?v=3.10.4&ver=3.10.4

js czarpress.com collected 2026-10-05 03:42:19 UTC 5,148 bytes, 1 lines download raw bytes

1(function(e){"use strict";function t(e,t){const o=String(e||"0.0.0").split(".").map(Number),n=String(t||"0.0.0").split(".").map(Number),r=Math.max(o.length,n.length);for(let e=0;e<r;e++){const t=(o[e]||0)-(n[e]||0);if(0!==t)return t}return 0}function o(){if(e.crypto&&"function"==typeof e.crypto.randomUUID)return e.crypto.randomUUID();if(e.crypto&&"function"==typeof e.crypto.getRandomValues){const t=new Uint8Array(16);return e.crypto.getRandomValues(t),Array.from(t,function(e){return e.toString(16).padStart(2,"0")}).join("")}return Date.now().toString(36)+Math.random().toString(36).slice(2)}function n(e,t,o){return[e,t,o].join("\0")}function r(e){return null!==e&&"object"==typeof e&&1===e.wpcp&&l.includes(e.protocol)&&"string"==typeof e.product&&""!==e.product&&"string"==typeof e.id&&""!==e.id&&"string"==typeof e.action&&""!==e.action&&"string"==typeof e.target&&""!==e.target&&"string"==typeof e.source&&""!==e.source&&Number.isInteger(e.hops)&&e.hops>=0&&e.hops<=f}function i(e){b.set(e,!0),b.size>g&&b.delete(b.keys().next().value)}function c(){const t=[e,e.parent,e.top];e.opener&&t.push(e.opener);for(let o=0;o<e.frames.length;o++)t.push(e.frames[o]);return t.filter(function(e,t,o){return e&&o.indexOf(e)===t})}function s(e){if(e.hops>=f)return;const t=Object.assign({},e,{hops:e.hops+1});c().forEach(function(e){e.postMessage(t,"*")})}function a(e){const t=Object.assign({},e,{hops:0});if(!r(t))throw new TypeError("Invalid bridge message.");
1c().forEach(function(e){e.postMessage(t,"*")})}function p(e){a({wpcp:1,product:e.product,protocol:e.protocol,id:o(),action:"wpcp-acknowledge",payload:{messageId:e.id},target:e.source,source:e.target})}function u(t){if(!r(t.data))return;const c=t.data;if(b.has(c.id))return;if(i(c.id),"wpcp-diagnostics-request"===c.action)return a({wpcp:1,product:c.product,protocol:c.protocol,id:o(),action:"wpcp-diagnostics-response",payload:{product:c.product,protocol:c.protocol,crossOriginIsolated:!0===e.crossOriginIsolated,role:e.parent===e?e.opener?"popup":"top":"frame",url:e.location.href,runtimeVersion:d,capabilities:e[m]?e[m].capabilities:[]},target:c.source,source:j}),void s(c);if("wpcp-diagnostics-response"===c.action){const e=I.get(c.target);return void(e?e.push(Object.assign({frameId:c.source},c.payload)):s(c))}if("wpcp-acknowledge"===c.action){const t=c.payload&&c.payload.messageId,o=v.get(t);return o&&c.target===o.source?(e.clearTimeout(o.timeout),v.delete(t),void o.resolve(c)):void s(c)}const u=n(c.product,c.action,c.target),l=h.get(u);l&&0!==l.size?(l.forEach(function(e){e(c.payload,c)}),p(c)):s(c)}const d="1.1.0",l=[1],f=8,g=1e3,w=1e3,m="WPCP_Bridge",y=e[m];if(y){if(t(y.runtimeVersion,d)>=0)return;if("function"!=typeof y.shutdown)return void console.warn("[WP Cloud Plugins] A newer bridge runtime could not replace the installed runtime.",{installedVersion:y.runtimeVersion||"unknown",availableVersion:d});y.shutdown()}const h=new Map,b=new Map,v=new Map,I=new Map;e.addEventListener("message",u);const j=o();e[m]=Object.freeze({runtimeVersion:d,supportedProtocols:l.slice(),capabilities:Object.freeze(["acknowledgements","instance-targets","opener-relay","product-namespaces","relay"]),pageInstanceId:j,shutdown:function(){e.removeEventListener("message",u),v.forEach(function(t){e.clearTimeout(t.timeout),t.reject(new Error("The bridge runtime was replaced."))}),v.clear(),h.clear(),I.clear(),b.clear()},createInstanceId:o,subscribe:function(e,t,o,r){if(![e,t,o].every(e=>"string"==typeof e&&""!==e))throw new TypeError("Bridge subscriptions require product, action, and target identifiers.");if("function"!=typeof r)throw new TypeError("Bridge subscription handler must be a function.");const i=n(e,t,o),c=h.get(i)||new Set;return c.add(r),h.set(i,c),function(){c.delete(r),0===c.size&&h.delete(i)}},send:function(t,n,i,c,s){const p=Object.assign({timeout:w,protocol:1},s),u=o(),d={wpcp:1,product:t,protocol:p.protocol,id:o(),action:n,payload:i,target:c,source:u};if(!r(Object.assign({},d,{hops:0})))return Promise.reject(new TypeError("Invalid bridge message."));const l=new Promise(function(o,r){const i=e.setTimeout(function(){v.delete(d.id);const e=new Error("The bridge message was not acknowledged.");console.warn("[WP Cloud Plugins] Bridge delivery failed.",{product:t,protocol:1,action:n,source:u,target:c,messageId:d.id}),r(e)},p.timeout);v.set(d.id,{resolve:o,reject:r,timeout:i,source:u})});return a(d),l},resolveInstanceId:function(){try{const t=new URL(e.location.href).searchParams.get("wpcp_instance_id");if(t)return t}catch(e){}const t=document.querySelector("body[data-wpcp-instance-id], #wpcp-form[data-wpcp-instance-id]");return t?t.getAttribute("data-wpcp-instance-id"):""},showDeliveryError:function(t){t=t||"The selection could not be passed back and stored. Reload the page and try again.","function"!=typeof e.showNotification?e.alert(t):e.showNotification(!1,t)},collectDiagnostics:function(t,n){const r=o(),i=[];return I.set(r,i),a({wpcp:1,product:t,protocol:1,id:o(),action:"wpcp-diagnostics-request",payload:{},target:r,source:r}),new Promise(function(t){e.setTimeout(function(){I.delete(r),t(i)},Number.isInteger(n)?n:750)})}})})(window);

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.