Discuz.Web/space/javascript/ifpc.js

(完整代码) 4KB

var ifpc_a=(function(){var b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},d={"boolean":function(a){return String(a)},number:function(a){return isFinite(a)?String(a):"null"},string:function(a){if(/["\\\x00-\x1f]/.test(a)){a=a.replace(/([\x00-\x1f\\"])/g,function(c,f){var h=b[f];if(h){return h}h=f.charCodeAt();return"\\u00"+Math.floor(h/16).toString(16)+(h%16).toString(16)})}return'"'+a+'"'},object:function(a){if(a){var c=[],f,h,e,i,g;if(a instanceof Array){c[0]=
"[";i=a.length;for(e=0;e<i;e+=1){g=a[e];h=d[typeof g];if(h){g=h(g);if(typeof g=="string"){if(f){c[c.length]=","}c[c.length]=g;f=true}}}c[c.length]="]"}else if(typeof a.hasOwnProperty==="function"){c[0]="{";for(e in a){if(a.hasOwnProperty(e)){g=a[e];h=d[typeof g];if(h){g=h(g);if(typeof g=="string"){if(f){c[c.length]=","}c.push(d.string(e),":",g);f=true}}}}c[c.length]="}"}else{return}return c.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",license:"http://www.JSON.org/license.html",stringify:function(a){var c=
d[typeof a];if(c){a=c(a);if(typeof a=="string"){return a}}return null},parse:function(a){try{return!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(a.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+a+")")}catch(c){return false}}}})();function ifpc_q(b){var d=document.createElement("DIV");d.innerHTML="<iframe onload='this.pool_locked=false'></iframe>";var a=d.getElementsByTagName("IFRAME")[0];a.style.visibility="hidden";a.style.width=(a.style.height="0px");a.style.border="0px";a.style.position="absolute";a.pool_locked=b;this.a[this.a.length]=a;d.removeChild(a);d=null;return a}function ifpc_r(b){var d=this;window.setTimeout(function(){var a=null;for(var c=d.a.length-1;c>=0;c--){var f=d.a[c];if(f&&!f.pool_locked){f.parentNode.removeChild(f);
if(window.ActiveXObject){f=null;d.a[c]=null;d.a.splice(c,1)}else{f.pool_locked=true;a=f;break}}}a=a?a:d.m(true);a.src=b;document.body.appendChild(a)},0)}function ifpc_p(){for(var b=0;b<this.a.length;b++){this.a[b].onload=null;this.a[b]=null}this.a.length=0;this.a=[]}function ifpc_o(){this.a=[];this.m=ifpc_q;this.iframe=ifpc_r;this.clear=ifpc_p}function ifpc_m(b,d){_IFPC.d[b]=d}function ifpc_b(b,d,a,c,f,h){a.unshift(_IFPC.r(f));a.unshift(h);a.unshift(d);a.unshift(b);var e=4095-c.length;e=parseInt(e/
3,10);var i=_IFPC.i(a),g=parseInt(i.length/e,10);if(i.length%e>0){g+=1}for(var j=0;j<g;j++){var l=i.substr(j*e,e),k=[b,_IFPC.h,g,j,l];_IFPC.j.iframe(c+"#"+_IFPC.i(k))}_IFPC.h++}function ifpc_d(){_IFPC.d={};_IFPC.c={};_IFPC.j.clear()}function ifpc_(b){if(window.parent===window.top){var d=_IFPC.e(b),a=d.shift(),c;try{c=window.parent.frames[a]}catch(f){throw new Error("Failed to get iframe for relay, id: "+a+", reason: "+f);}c.setTimeout(function(){try{c._IFPC.handleRequest(b)}catch(h){throw new Error("Unable to relay request to iframe: "+
a+", reason: "+h);}},0)}else{var c=window.top;c.setTimeout(function(){c._IFPC.handleRequest(b)},0)}}function ifpc_j(b){var b=_IFPC.e(b),d=b.shift(),a=b.shift(),c=b.shift(),f=b.shift(),h=b.shift(),e=d+"_"+a;if(!_IFPC.b[e])_IFPC.b[e]=[];_IFPC.b[e].push([f,h]);if(_IFPC.b[e].length==c){_IFPC.b[e].sort(function(o,p){return parseInt(o[0],10)-parseInt(p[0],10)});h="";for(var i=0;i<c;i++){h+=_IFPC.b[e][i][1]}_IFPC.b[e]=null;var g=_IFPC.e(h),d=g.shift(),j=g.shift(),l=g.shift(),k=g.shift(),m=_IFPC.p(j);if(m){var n=
m.apply(null,g);if(_IFPC.q(k)){n.unshift(k);_IFPC.call(d,_IFPC.g,n,l,null,"")}}else{throw new Error("Service "+j+" not registered.");}}}function ifpc_i(b){if(_IFPC.d.hasOwnProperty(b)){return _IFPC.d[b]}else{return null}}function ifpc_l(b){var d="";if(b&&typeof b=="function"){d=_IFPC.o();_IFPC.c[d]=b}return d}function ifpc_n(b){if(_IFPC.c.hasOwnProperty(b)){_IFPC.c[b]=null}}function ifpc_g(b){if(b&&_IFPC.c.hasOwnProperty(b)){return _IFPC.c[b]}return null}function ifpc_h(){return _IFPC.f+_IFPC.k++}
function ifpc_k(b){return(b+"").indexOf(_IFPC.f)==0}function ifpc_e(b){var d=b.split("&");for(var a=0;a<d.length;a++){var c=decodeURIComponent(d[a]);try{c=ifpc_a.parse(c)}catch(f){}d[a]=c}return d}function ifpc_f(b){var d=[];for(var a=0;a<b.length;a++){var c=ifpc_a.stringify(b[a]);d.push(encodeURIComponent(c))}return d.join("&")}function ifpc_c(b){var d=_IFPC.n(b);if(d){var a=[];for(var c=1;c<arguments.length;c++){a[a.length]=arguments[c]}d.apply(null,a);_IFPC.s(b)}else{throw new Error("Invalid callbackId");
}}var _IFPC={registerService:ifpc_m,call:ifpc_b,clear:ifpc_d,relayRequest:ifpc_,processRequest:ifpc_,handleRequest:ifpc_j,f:"cbid",g:"ifpc_callback",j:new ifpc_o,b:{},d:{},c:{},k:0,h:0,p:ifpc_i,r:ifpc_l,s:ifpc_n,n:ifpc_g,o:ifpc_h,q:ifpc_k,e:ifpc_e,i:ifpc_f,l:ifpc_c};_IFPC.registerService(_IFPC.g,_IFPC.l);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。