admin/view/javascript/ckfinder/ckfinder.js
(开头部分) 349KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var CKFinder=function(){function Ra(q,x,n){var r=x.getElementsByTagName("head")[0];x=x.createElement("script");x[x.innerText?"innerText":"innerHTML"]=n+".CKFinder._setup( window, document );CKFinder.start("+JSON.stringify(q)+");";r.appendChild(x)}function Z(q,x){return q?q:x}function cb(q){var x=[],n;for(n in q)x.push(encodeURIComponent(n)+"="+encodeURIComponent(q[n]));return"?"+x.join("&")}function db(q,x){for(var n in x)x.hasOwnProperty(n)&&(q[n]=x[n]);return q}function Ga(q,x){if(q&&!q._omitCheckOnInit&&
"function"==typeof q.onInit){var n=q.onInit;delete q.onInit;x.addEventListener("ckfinderReady",function(x){q._initCalled||(q._initCalled=!0,n(x.detail.ckfinder))})}}var r={open:function(q){function x(a,c,b){c.forEach(function(c){a.addEventListener(c,b)})}function n(a,c,b){c.forEach(function(c){a.removeEventListener(c,b)})}function H(a){return 0===a.type.indexOf("touch")?{x:a.touches[0].pageX,y:a.touches[0].pageY}:{x:document.all?window.event.clientX:a.pageX,y:document.all?window.event.clientX:a.pageY}}
function k(a){a=H(a);t=a.x;p=a.y;a=p-P;l.style.left=t-z+"px";l.style.top=(0>a?0:a)+"px"}function h(a){var b,e;a=H(a);c?(b=d-(y-a.x),e=f-(F-a.y),200<b&&(A.style.width=b+"px"),200<e&&(A.style.height=e+"px")):m&&(b=d+(y-a.x),e=f-(F-a.y),200<b&&(A.style.width=b+"px",l.style.left=z-(y-a.x)+"px"),200<e&&(A.style.height=e+"px"))}function b(){C.parentNode===A&&A.removeChild(C);m=c=!1;n(document,["mousemove","touchmove"],h);n(document,["mouseup","touchend"],b)}function g(a){a.preventDefault();a=H(a);y=a.x;
F=a.y;d=A.clientWidth;f=A.clientHeight;A.appendChild(C);x(document,["mousemove","touchmove"],h);x(document,["mouseup","touchend"],b)}if(q=q||{},!r.div){r.heightAdded=48;r.widthAdded=2;var d,f,e=Math.min(Z(q.width,1E3),window.innerWidth-r.widthAdded),a=Math.min(Z(q.height,700),window.innerHeight-r.heightAdded),c=!1,m=!1,t=0,p=0,w=q.width,v=q.height;q.width=q.height="100%";var l=r.div=document.createElement("div");l.id="ckf-modal";l.style.position="fixed";l.style.top=(document.documentElement.clientHeight-
r.heightAdded)/2-a/2+"px";l.style.left=(document.documentElement.clientWidth-r.widthAdded)/2-e/2+"px";l.style.background="#fff";l.style.border="1px solid #aaa";l.style.boxShadow="3px 3px 5px rgba(0,0,0,0.2)";l.style.borderTopLeftRadius=l.style.borderTopRightRadius="5px";l.style.zIndex=8999;l.innerHTML='<div id="ckf-modal-header" style="cursor: move; border-top-left-radius:5px; border-top-right-radius:5px; background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y3ZjdmNyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhZGFkYWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);border-bottom:1px solid #c9c9c9;height:35px !important;"><a style="float: right; padding: 7px 10px 0 !important; margin: 0 !important; font-family: Arial, sans-serif !important; font-weight:bold; font-size: 20px !important; line-height: 20px !important; text-decoration: none !important; color: #888 !important;" id="ckf-modal-close" href="#">\u00d7</a></div><div id="ckf-modal-body" style="position: relative;width: '+
e+"px; height: "+a+'px"></div><div id="ckf-modal-footer" style="height: 10px !important; background: #f3f3f3"><span id="ckf-modal-resize-handle-sw" style="cursor: sw-resize; width: 7px; height: 7px; display: block; float: left; border-left: 3px solid #ddd; border-bottom: 3px solid #ddd;"></span><span id="ckf-modal-resize-handle-se" style="cursor: se-resize; width: 7px; height: 7px; display: block; float: right; border-right: 3px solid #ddd; border-bottom: 3px solid #ddd;"></span></div>';document.body.appendChild(l);
CKFinder.widget("ckf-modal-body",q);r.footer=document.getElementById("ckf-modal-footer");window.addEventListener("orientationchange",function(){r.maximized||setTimeout(function(){e=Math.min(w?w:1E3,document.documentElement.clientWidth-r.widthAdded);a=Math.min(v?v:700,document.documentElement.clientHeight-r.heightAdded);var c=document.getElementById("ckf-modal-body");c.style.width=e+"px";c.style.height=a+"px";l.style.top=(document.documentElement.clientHeight-r.heightAdded)/2-a/2+"px";l.style.left=
(document.documentElement.clientWidth-r.widthAdded)/2-e/2+"px"},100)});q=document.getElementById("ckf-modal-close");x(q,["click","touchend"],function(a){a.stopPropagation();a.preventDefault();r.close()});q=r.header=document.getElementById("ckf-modal-header");var z=l.offsetLeft,P=l.offsetTop;x(q,["mousedown","touchstart"],function(a){a.preventDefault();a=H(a);t=a.x;p=a.y;z=t-l.offsetLeft;P=p-l.offsetTop;A.appendChild(C);x(document,["mousemove","touchmove"],k)});x(q,["mouseup","touchend"],function(){C.parentNode===
A&&A.removeChild(C);n(document,["mousemove","touchmove"],k)});q=document.getElementById("ckf-modal-resize-handle-se");var D=document.getElementById("ckf-modal-resize-handle-sw"),A=r.body=document.getElementById("ckf-modal-body"),C=document.createElement("div");C.style.position="absolute";C.style.top=C.style.right=C.style.bottom=C.style.left=0;C.style.zIndex=1E5;x(q,["mousedown","touchstart"],function(a){c=!0;g(a)});x(D,["mousedown","touchstart"],function(a){z=l.offsetLeft;m=!0;g(a)});var y,F}},close:function(){r.div&&
(document.body.removeChild(r.div),r.div=null,r.maximized&&(document.documentElement.style.overflow=r.preDocumentOverflow,document.documentElement.style.width=r.preDocumentWidth,document.documentElement.style.height=r.preDocumentHeight))},maximize:function(q){q?(r.preDocumentOverflow=document.documentElement.style.overflow,r.preDocumentWidth=document.documentElement.style.width,r.preDocumentHeight=document.documentElement.style.height,document.documentElement.style.overflow="hidden",document.documentElement.style.width=
0,document.documentElement.style.height=0,r.preLeft=r.div.style.left,r.preTop=r.div.style.top,r.preWidth=r.body.style.width,r.preHeight=r.body.style.height,r.preBorder=r.div.style.border,r.div.style.left=r.div.style.top=r.div.style.right=r.div.style.bottom=0,r.body.style.width="100%",r.body.style.height="100%",r.div.style.border="",r.header.style.display="none",r.footer.style.display="none",r.maximized=!0):(document.documentElement.style.overflow=r.preDocumentOverflow,document.documentElement.style.width=
r.preDocumentWidth,document.documentElement.style.height=r.preDocumentHeight,r.div.style.right=r.div.style.bottom="",r.div.style.left=r.preLeft,r.div.style.top=r.preTop,r.div.style.border=r.preBorder,r.body.style.width=r.preWidth,r.body.style.height=r.preHeight,r.header.style.display="block",r.footer.style.display="block",r.maximized=!1)}},R;return{basePath:function(){if(parent&&parent.CKFinder&&parent.CKFinder.basePath)return parent.CKFinder.basePath;var q,x,n,r=document.getElementsByTagName("script");
for(q=0;q<r.length&&(x=r[q],n=void 0!==x.getAttribute.length?x.src:x.getAttribute("src"),!n||"ckfinder.js"!==n.split("/").slice(-1)[0]);q++);return n.split("/").slice(0,-1).join("/")+"/"}(),modal:function(q){return"close"===q?r.close():"visible"===q?!!r.div:"maximize"===q?r.maximize(!0):"minimize"===q?r.maximize(!1):void r.open(q)},config:function(q){CKFinder._config=q},widget:function(q,x){function n(h){return h+(/^[0-9]+$/.test(h)?"px":"")}if(x=x||{},!q)throw'No "id" option defined in CKFinder.widget() call.';
var r;r="border:none;"+("width:"+n(Z(x.width,"100%"))+";");r+="height:"+n(Z(x.height,"400"))+";";var k=document.createElement("iframe");k.src="";k.setAttribute("style",r);k.setAttribute("seamless","seamless");k.setAttribute("scrolling","auto");k.attachEvent?k.attachEvent("onload",function(){Ra(x,k.contentDocument,"parent")}):k.onload=function(){Ra(x,k.contentDocument,"parent")};r=document.getElementById(q);r.innerHTML="";r.appendChild(k);Ga(x,k.contentWindow)},popup:function(q){q=q||{};window.CKFinder._popupOptions=
q;var x,n,r=-1,k=("Microsoft Internet Explorer"==navigator.appName&&(x=navigator.userAgent,n=/MSIE ([0-9]{1,}[.0-9]{0,})/,null!==n.exec(x)&&(r=parseFloat(RegExp.$1))),9===r)?window.CKFinder.basePath+"ckfinder.html":"about:blank";x="location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes,width="+Z(q.width,1E3);x+=",height="+Z(q.height,700);x+=",top=50,left=100";"undefined"==typeof R||R.closed||R.close();var h;try{var b="CKFPopup"+Date.now();
R=window.open(k,b,x,!0);h=R.document}catch(g){return}return R?(h.open(),h.write('<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"><title>CKFinder 3 - File Browser</title></head><body><script src="'+window.CKFinder.basePath+'ckfinder.js">\x3c/script><script>window.isCKFinderPopup=true;window.onload=function() { CKFinder.start( window.opener.CKFinder._popupOptions );}\x3c/script></body></html>'),h.close(),R.focus(),
R):void 0},start:function(q){if(!q){var x=window.opener,n={};q={};var r=window.location.search.substring(1);if(r)for(var r=r.split("&"),k=0;k<r.length;++k){var h=r[k].split("=");n[h[0]]=h[1]||null}if(n.popup&&(window.isCKFinderPopup=!0),x&&n.configId&&x.CKFinder&&x.CKFinder._popupOptions)q=decodeURIComponent(n.configId),q=x.CKFinder._popupOptions[q]||{},q._omitCheckOnInit=!0}CKFinder._setup(window,document);Ga(q,window);CKFinder.start(q)},setupCKEditor:function(q,x,n){if(!q){for(var r in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[r]);
return void CKEDITOR.on("instanceCreated",function(k){CKFinder.setupCKEditor(k.editor)})}q.config.filebrowserBrowseUrl=window.CKFinder.basePath+"ckfinder.html";n=db({command:"QuickUpload",type:"Files"},n);r=window.CKFinder.basePath+"core/connector/php/connector.php";x&&(window.CKFinder._popupOptions||(window.CKFinder._popupOptions={}),x._omitCheckOnInit=!0,window.CKFinder._popupOptions[q.name]=x,q.config.filebrowserBrowseUrl+="?popup=1&configId="+encodeURIComponent(q.name),x.connectorPath?r=x.connectorPath:
x.connectorLanguage&&(r=window.CKFinder.basePath+"core/connector/"+x.connectorLanguage+"/connector."+x.connectorLanguage));q.config.filebrowserUploadUrl=r+cb(n)},_setup:function(q,r){q.CKFinder=q.CKFinder||{};q.CKFinder.basePath=function(){if(q.parent&&q.parent.CKFinder&&q.parent.CKFinder.basePath)return q.parent.CKFinder.basePath;for(var k,h,b=r.getElementsByTagName("script"),g=0;g<b.length&&(k=b[g],h=void 0!==k.getAttribute.length?k.src:k.getAttribute("src"),!h||"ckfinder.js"!==h.split("/").slice(-1)[0]);g++);
return h.split("/").slice(0,-1).join("/")+"/"}();var n;!function(){if(!n||!n.requirejs){n?h=n:n={};var k,h,b;!function(g){function d(a){return"[object Function]"===E.call(a)}function f(a){return"[object Array]"===E.call(a)}function e(a,c){if(a){var b;for(b=0;b<a.length&&(!a[b]||!c(a[b],b,a));b+=1);}}function a(a,c){if(a){var b;for(b=a.length-1;-1<b&&(!a[b]||!c(a[b],b,a));--b);}}function c(a,c){return sa.call(a,c)}function m(a,b){return c(a,b)&&a[b]}function t(a,b){for(var d in a)if(c(a,d)&&b(a[d],
d))break}function p(a,b,m,e){return b&&t(b,function(b,u){(m||!c(a,u))&&(!e||"object"!=typeof b||!b||f(b)||d(b)||b instanceof RegExp?a[u]=b:(a[u]||(a[u]={}),p(a[u],b,m,e)))}),a}function w(a,c){return function(){return c.apply(a,arguments)}}function v(a){throw a;}function l(a){if(!a)return a;var c=g;return e(a.split("."),function(a){c=c[a]}),c}function z(a,c,b,d){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+a);return c.requireType=a,c.requireModules=d,b&&(c.originalError=b),c}function n(b){function h(a,
c,b){var d,f,e,u,p,t,g,k,v;c=c&&c.split("/");var E=M.map,w=E&&E["*"];if(a){a=a.split("/");p=a.length-1;M.nodeIdCompat&&K.test(a[p])&&(a[p]=a[p].replace(K,""));"."===a[0].charAt(0)&&c&&(u=c.slice(0,c.length-1),a=u.concat(a));u=a;for(p=0;p<u.length;p++)(e=u[p],"."===e)?(u.splice(p,1),--p):".."!==e||0===p||1===p&&".."===u[2]||".."===u[p-1]||0<p&&(u.splice(p-1,2),p-=2);a=a.join("/")}if(b&&E&&(c||w)){b=a.split("/");e=b.length;a:for(;0<e;--e){if(p=b.slice(0,e).join("/"),c)for(u=c.length;0<u;--u)if(f=m(E,
c.slice(0,u).join("/")),f&&(f=m(f,p))){t=f;g=e;break a}!k&&w&&m(w,p)&&(k=m(w,p),v=e)}!t&&k&&(t=k,g=v);t&&(b.splice(0,g,t),a=b.join("/"))}return d=m(M.pkgs,a),d?d:a}function k(a){V&&e(r.getElementsByTagName("script"),function(c){return c.getAttribute("data-requiremodule")===a&&c.getAttribute("data-requirecontext")===y.contextName?(c.parentNode.removeChild(c),!0):void 0})}function E(a){var c=m(M.paths,a);return c&&f(c)&&1<c.length?(c.shift(),y.require.undef(a),y.makeRequire(null,{skipMap:!0})([a]),
!0):void 0}function sa(a){var c,b=a?a.indexOf("!"):-1;return-1<b&&(c=a.substring(0,b),a=a.substring(b+1,a.length)),[c,a]}function D(a,c,b,d){var f,e,u,p,t=null,g=c?c.name:null,k=a,v=!0,E="";return a||(v=!1,a="_@r"+(ma+=1)),p=sa(a),t=p[0],a=p[1],t&&(t=h(t,g,d),e=m(Q,t)),a&&(t?E=e&&e.normalize?e.normalize(a,function(a){return h(a,g,d)}):-1===a.indexOf("!")?h(a,g,d):a:(E=h(a,g,d),p=sa(E),t=p[0],E=p[1],b=!0,f=y.nameToUrl(E))),u=!t||e||b?"":"_unnormalized"+(Ja+=1),{prefix:t,name:E,parentMap:c,unnormalized:!!u,
url:f,originalName:k,isDefine:v,id:(t?t+"!"+E:E)+u}}function O(a){var c=a.id,b=m(T,c);return b||(b=T[c]=new y.Module(a)),b}function q(a,b,d){var f=a.id,e=m(T,f);!c(Q,f)||e&&!e.defineEmitComplete?(e=O(a),e.error&&"error"===b?d(e.error):e.on(b,d)):"defined"===b&&d(Q[f])}function P(a,c){var b=a.requireModules,d=!1;c?c(a):(e(b,function(c){(c=m(T,c))&&(c.error=a,c.events.error&&(d=!0,c.emit("error",a)))}),d||A.onError(a))}function G(){ra.length&&(N.apply(ia,[ia.length,0].concat(ra)),ra=[])}function ba(a){delete T[a];
delete H[a]}function I(a,c,b){var d=a.map.id;a.error?a.emit("error",a.error):(c[d]=!0,e(a.depMaps,function(d,f){var e=d.id,u=m(T,e);!u||a.depMatched[f]||b[e]||(m(c,e)?(a.defineDep(f,Q[e]),a.check()):I(u,c,b))}),b[d]=!0)}function gb(){var a,c,b=1E3*M.waitSeconds,d=b&&y.startTime+b<(new Date).getTime(),m=[],f=[],u=!1,p=!0;if(!S){if(S=!0,t(H,function(a){var b=a.map,e=b.id;if(a.enabled&&(b.isDefine||f.push(a),!a.error))if(!a.inited&&d)E(e)?(c=!0,u=!0):(m.push(e),k(e));else if(!a.inited&&a.fetched&&b.isDefine&&
(u=!0,!b.prefix))return p=!1}),d&&m.length)return a=z("timeout","Load timeout for modules: "+m,null,m),a.contextName=y.contextName,P(a);p&&e(f,function(a){I(a,{},{})});d&&!c||!u||!V&&!wa||Y||(Y=setTimeout(function(){Y=0;gb()},50));S=!1}}function X(a){c(Q,a[0])||O(D(a[0],null,!0)).init(a[1],a[2])}function C(a){a=a.currentTarget||a.srcElement;var c=y.onScriptLoad;a.detachEvent&&!Ca?a.detachEvent("onreadystatechange",c):a.removeEventListener("load",c,!1);c=y.onScriptError;a.detachEvent&&!Ca||a.removeEventListener("error",
c,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function J(){var a;for(G();ia.length;){if(a=ia.shift(),null===a[0])return P(z("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));X(a)}}var S,B,y,F,Y,M={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},T={},H={},R={},ia=[],Q={},Z={},xa={},ma=1,Ja=1;return F={require:function(a){return a.require?a.require:a.require=y.makeRequire(a.map)},exports:function(a){return a.usingExports=!0,a.map.isDefine?
a.exports?Q[a.map.id]=a.exports:a.exports=Q[a.map.id]={}:void 0},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m(M.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}},B=function(a){this.events=m(R,a.id)||{};this.map=a;this.shim=m(M.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0},B.prototype={init:function(a,c,b,d){d=d||{};this.inited||(this.factory=c,b?this.on("error",b):this.events.error&&
(b=w(this,function(a){this.emit("error",a)})),this.depMaps=a&&a.slice(0),this.errback=b,this.inited=!0,this.ignore=d.ignore,d.enabled||this.enabled?this.enable():this.check())},defineDep:function(a,c){this.depMatched[a]||(this.depMatched[a]=!0,--this.depCount,this.depExports[a]=c)},fetch:function(){if(!this.fetched){this.fetched=!0;y.startTime=(new Date).getTime();var a=this.map;return this.shim?void y.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],w(this,function(){return a.prefix?
this.callPlugin():this.load()})):a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;Z[a]||(Z[a]=!0,y.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,c,b=this.map.id,m=this.depExports,f=this.exports,e=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(d(e)){if(this.events.error&&this.map.isDefine||A.onError!==v)try{f=y.execCb(b,e,m,f)}catch(u){a=
u}else f=y.execCb(b,e,m,f);if(this.map.isDefine&&void 0===f&&(c=this.module,c?f=c.exports:this.usingExports&&(f=this.exports)),a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",P(this.error=a)}else f=e;this.exports=f;this.map.isDefine&&!this.ignore&&(Q[b]=f,A.onResourceLoad&&A.onResourceLoad(y,this.map,this.depMaps));ba(b);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,
this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=D(a.prefix);this.depMaps.push(d);q(d,"defined",w(this,function(d){var f,e,u,p=m(xa,this.map.id),g=this.map.name,k=this.map.parentMap?this.map.parentMap.name:null,E=y.makeRequire(a.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(d.normalize&&(g=d.normalize(g,function(a){return h(a,k,!0)})||""),e=D(a.prefix+"!"+g,this.map.parentMap),q(e,"defined",w(this,
function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),u=m(T,e.id),void(u&&(this.depMaps.push(e),this.events.error&&u.on("error",w(this,function(a){this.emit("error",a)})),u.enable()))):p?(this.map.url=y.nameToUrl(p),void this.load()):(f=w(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),f.error=w(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];t(T,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&ba(a.map.id)});P(a)}),f.fromText=
w(this,function(d,m){var e=a.name,u=D(e),p=ka;m&&(d=m);p&&(ka=!1);O(u);c(M.config,b)&&(M.config[e]=M.config[b]);try{A.exec(d)}catch(t){return P(z("fromtexteval","fromText eval for "+b+" failed: "+t,t,[b]))}p&&(ka=!0);this.depMaps.push(u);y.completeLoad(e);E([e],f)}),void d.load(a.name,E,f,M))}));y.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){H[this.map.id]=this;this.enabling=this.enabled=!0;e(this.depMaps,w(this,function(a,b){var d,f;if("string"==typeof a){if(a=D(a,this.map.isDefine?
this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[b]=a,d=m(F,a.id))return void(this.depExports[b]=d(this));this.depCount+=1;q(a,"defined",w(this,function(a){this.undefed||(this.defineDep(b,a),this.check())}));this.errback?q(a,"error",w(this,this.errback)):this.events.error&&q(a,"error",w(this,function(a){this.emit("error",a)}))}d=a.id;f=T[d];c(F,d)||!f||f.enabled||y.enable(a,this)}));t(this.pluginMaps,w(this,function(a){var c=m(T,a.id);c&&!c.enabled&&y.enable(a,this)}));this.enabling=!1;
this.check()},on:function(a,c){var b=this.events[a];b||(b=this.events[a]=[]);b.push(c)},emit:function(a,c){e(this.events[a],function(a){a(c)});"error"===a&&delete this.events[a]}},y={config:M,contextName:b,registry:T,defined:Q,urlFetched:Z,defQueue:ia,Module:B,makeModuleMap:D,nextTick:A.nextTick,onError:P,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var c=M.shim,b={paths:!0,bundles:!0,config:!0,map:!0};t(a,function(a,c){b[c]?(M[c]||(M[c]={}),p(M[c],
a,!0,!0)):M[c]=a});a.bundles&&t(a.bundles,function(a,c){e(a,function(a){a!==c&&(xa[a]=c)})});a.shim&&(t(a.shim,function(a,b){f(a)&&(a={deps:a});!a.exports&&!a.init||a.exportsFn||(a.exportsFn=y.makeShimExports(a));c[b]=a}),M.shim=c);a.packages&&e(a.packages,function(a){var c;a="string"==typeof a?{name:a}:a;c=a.name;a.location&&(M.paths[c]=a.location);M.pkgs[c]=a.name+"/"+(a.main||"main").replace(u,"").replace(K,"")});t(T,function(a,c){a.inited||a.map.unnormalized||(a.map=D(c,null,!0))});(a.deps||a.callback)&&
y.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var c;return a.init&&(c=a.init.apply(g,arguments)),c||a.exports&&l(a.exports)}},makeRequire:function(f,e){function u(a,m,p){var t,h,g;return e.enableBuildCallback&&m&&d(m)&&(m.__requireJsBuild=!0),"string"==typeof a?d(m)?P(z("requireargs","Invalid require call"),p):f&&c(F,a)?F[a](T[f.id]):A.get?A.get(y,a,f,u):(h=D(a,f,!1,!0),t=h.id,c(Q,t)?Q[t]:P(z("notloaded",'Module name "'+t+'" has not been loaded yet for context: '+
b+(f?"":". Use require([])")))):(J(),y.nextTick(function(){J();g=O(D(null,f));g.skipMap=e.skipMap;g.init(a,m,p,{enabled:!0});gb()}),u)}return e=e||{},p(u,{isBrowser:V,toUrl:function(a){var c,b=a.lastIndexOf("."),d=a.split("/")[0];return-1!==b&&(!("."===d||".."===d)||1<b)&&(c=a.substring(b,a.length),a=a.substring(0,b)),y.nameToUrl(h(a,f&&f.id,!0),c,!0)},defined:function(a){return c(Q,D(a,f,!1,!0).id)},specified:function(a){return a=D(a,f,!1,!0).id,c(Q,a)||c(T,a)}}),f||(u.undef=function(c){G();var b=
D(c,f,!0),d=m(T,c);d.undefed=!0;k(c);delete Q[c];delete Z[b.url];delete R[c];a(ia,function(a,b){a[0]===c&&ia.splice(b,1)});d&&(d.events.defined&&(R[c]=d.events),ba(c))}),u},enable:function(a){m(T,a.id)&&O(a).enable()},completeLoad:function(a){var b,d,f,e=m(M.shim,a)||{},u=e.exports;for(G();ia.length;){if(d=ia.shift(),null===d[0]){if(d[0]=a,b)break;b=!0}else d[0]===a&&(b=!0);X(d)}if(f=m(T,a),!b&&!c(Q,a)&&f&&!f.inited){if(!(!M.enforceDefine||u&&l(u)))return E(a)?void 0:P(z("nodefine","No define call for "+
a,null,[a]));X([a,e.deps||[],e.exportsFn])}gb()},nameToUrl:function(a,c,b){var d,e,u,p;d=m(M.pkgs,a);if(d&&(a=d),d=m(xa,a))return y.nameToUrl(d,c,b);if(A.jsExtRegExp.test(a))u=a+(c||"");else{d=M.paths;a=a.split("/");for(e=a.length;0<e;--e)if(u=a.slice(0,e).join("/"),p=m(d,u)){f(p)&&(p=p[0]);a.splice(0,e,p);break}u=a.join("/");u+=c||(/^data\:|\?/.test(u)||b?"":".js");u=("/"===u.charAt(0)||u.match(/^[\w\+\.\-]+:/)?"":M.baseUrl)+u}return M.urlArgs?u+((-1===u.indexOf("?")?"?":"&")+M.urlArgs):u},load:function(a,
c){A.load(y,a,c)},execCb:function(a,c,b,d){return c.apply(d,b)},onScriptLoad:function(a){if("load"===a.type||za.test((a.currentTarget||a.srcElement).readyState))L=null,a=C(a),y.completeLoad(a.id)},onScriptError:function(a){var c=C(a);return E(c.id)?void 0:P(z("scripterror","Script error for: "+c.id,a,[c.id]))}},y.require=y.makeRequire(),y}function D(){return L&&"interactive"===L.readyState?L:(a(r.getElementsByTagName("script"),function(a){return"interactive"===a.readyState?L=a:void 0}),L)}var A,C,
y,F,J,I,L,O,G,X,B=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,Y=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,K=/\.js$/,u=/^\.\//;C=Object.prototype;var E=C.toString,sa=C.hasOwnProperty,N=Array.prototype.splice,V=!("undefined"==typeof q||"undefined"==typeof navigator||!q.document),wa=!V&&"undefined"!=typeof importScripts,za=V&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Ca="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),ba={},S={},ra=[],ka=!1;if("undefined"==
typeof b){if("undefined"!=typeof k){if(d(k))return;S=k;k=void 0}"undefined"==typeof h||d(h)||(S=h,h=void 0);A=k=function(a,c,b,d){var e,u,p="_";return f(a)||"string"==typeof a||(u=a,f(c)?(a=c,c=b,b=d):a=[]),u&&u.context&&(p=u.context),e=m(ba,p),e||(e=ba[p]=A.s.newContext(p)),u&&e.configure(u),e.require(a,c,b)};A.config=function(a){return A(a)};A.nextTick="undefined"!=typeof setTimeout?function(a){setTimeout(a,4)}:function(a){a()};h||(h=A);A.version="2.1.18";A.jsExtRegExp=/^\/|:|\?|\.js$/;A.isBrowser=
V;C=A.s={contexts:ba,newContext:n};A({});e(["toUrl","undef","defined","specified"],function(a){A[a]=function(){var c=ba._;return c.require[a].apply(c,arguments)}});V&&(y=C.head=r.getElementsByTagName("head")[0],F=r.getElementsByTagName("base")[0],F&&(y=C.head=F.parentNode));A.onError=v;A.createNode=function(a){var c=a.xhtml?r.createElementNS("http://www.w3.org/1999/xhtml","html:script"):r.createElement("script");return c.type=a.scriptType||"text/javascript",c.charset="utf-8",c.async=!0,c};A.load=
function(a,c,b){var d,f=a&&a.config||{};if(V)return d=A.createNode(f,c,b),d.setAttribute("data-requirecontext",a.contextName),d.setAttribute("data-requiremodule",c),!d.attachEvent||d.attachEvent.toString&&0>d.attachEvent.toString().indexOf("[native code")||Ca?(d.addEventListener("load",a.onScriptLoad,!1),d.addEventListener("error",a.onScriptError,!1)):(ka=!0,d.attachEvent("onreadystatechange",a.onScriptLoad)),d.src=b,O=d,F?y.insertBefore(d,F):y.appendChild(d),O=null,d;if(wa)try{importScripts(b),a.completeLoad(c)}catch(m){a.onError(z("importscripts",
"importScripts failed for "+c+" at "+b,m,[c]))}};V&&!S.skipDataMain&&a(r.getElementsByTagName("script"),function(a){return y||(y=a.parentNode),J=a.getAttribute("data-main"),J?(G=J,S.baseUrl||(I=G.split("/"),G=I.pop(),X=I.length?I.join("/")+"/":"./",S.baseUrl=X),G=G.replace(K,""),A.jsExtRegExp.test(G)&&(G=J),S.deps=S.deps?S.deps.concat(G):[G],!0):void 0});b=function(a,c,b){var m,e;"string"!=typeof a&&(b=c,c=a,a=null);f(c)||(b=c,c=null);!c&&d(b)&&(c=[],b.length&&(b.toString().replace(B,"").replace(Y,
function(a,b){c.push(b)}),c=(1===b.length?["require"]:["require","exports","module"]).concat(c)));ka&&(m=O||D(),m&&(a||(a=m.getAttribute("data-requiremodule")),e=ba[m.getAttribute("data-requirecontext")]));(e?e.defQueue:ra).push([a,c,b])};b.amd={jQuery:!0};A.exec=function(a){return eval(a)};A(S)}}(this);n.requirejs=k;n.require=h;n.define=b}}();n.define("requireLib",function(){});(function(){function k(a,c,b){b=(b||0)-1;for(var d=a?a.length:0;++b<d;)if(a[b]===c)return b;return-1}function h(a,c){var b=
typeof c;if(a=a.cache,"boolean"==b||null==c)return a[c]?0:-1;"number"!=b&&"string"!=b&&(b="object");var d="number"==b?c:D+c;return a=(a=a[b])&&a[d],"object"==b?a&&-1<k(a,c)?0:-1:a?0:-1}function b(a){var c=this.cache,b=typeof a;if("boolean"==b||null==a)c[a]=!0;else{"number"!=b&&"string"!=b&&(b="object");var d="number"==b?a:D+a,c=c[b]||(c[b]={});"object"==b?(c[d]||(c[d]=[])).push(a):c[d]=!0}}function g(a){return a.charCodeAt(0)}function d(a,c){for(var b=a.criteria,d=c.criteria,m=-1,f=b.length;++m<f;){var e=
b[m],u=d[m];if(e!==u){if(e>u||"undefined"==typeof e)return 1;if(u>e||"undefined"==typeof u)return-1}}return a.index-c.index}function f(a){var d=-1,m=a.length,f=a[0],e=a[m/2|0],u=a[m-1];if(f&&"object"==typeof f&&e&&"object"==typeof e&&u&&"object"==typeof u)return!1;f=c();f["false"]=f["null"]=f["true"]=f.undefined=!1;e=c();e.array=a;e.cache=f;for(e.push=b;++d<m;)e.push(a[d]);return e}function e(a){return"\\"+Ta[a]}function a(){return l.pop()||[]}function c(){return z.pop()||{array:null,cache:null,criteria:null,
"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function m(a){a.length=0;l.length<C&&l.push(a)}function t(a){var c=a.cache;c&&t(c);a.array=a.cache=a.criteria=a.object=a.number=a.string=a.value=null;z.length<C&&z.push(a)}function p(a,c,b){c||(c=0);"undefined"==typeof b&&(b=a?a.length:0);var d=-1;b=b-c||0;for(var f=Array(0>b?0:b);++d<b;)f[d]=a[c+d];return f}function w(b){function l(a){return a&&"object"==typeof a&&!ca(a)&&fa.call(a,"__wrapped__")?
a:new z(a)}function z(a,c){this.__chain__=!!c;this.__wrapped__=a}function q(a){function c(){if(d){var a=p(d);La.apply(a,arguments)}if(this instanceof c){var m=C(b.prototype),a=b.apply(m,a||arguments);return da(a)?a:m}return b.apply(f,a||arguments)}var b=a[0],d=a[2],f=a[4];return hb(c,a),c}function n(c,b,d,f,e){if(d){var u=d(c);if("undefined"!=typeof u)return u}if(!da(c))return c;var l=ga.call(c);if(!x[l])return c;var t=ta[l];switch(l){case wa:case za:return new t(+c);case ba:case ka:return new t(c);
case ra:return u=t(c.source,O.exec(c)),u.lastIndex=c.lastIndex,u}l=ca(c);if(b){var h=!f;f||(f=a());e||(e=a());for(var g=f.length;g--;)if(f[g]==c)return e[g];u=l?t(c.length):{}}else u=l?p(c):Ya({},c);return l&&(fa.call(c,"index")&&(u.index=c.index),fa.call(c,"input")&&(u.input=c.input)),b?(f.push(c),e.push(u),(l?ea:U)(c,function(a,c){u[c]=n(a,b,d,f,e)}),h&&(m(f),m(e)),u):u}function C(a){return da(a)?Za(a):{}}function H(a,c,b){if("function"!=typeof a)return ib;if("undefined"==typeof c||!("prototype"in
a))return a;var d=a.__bindData__;if("undefined"==typeof d&&(Ma.funcNames&&(d=!a.name),d=d||!Ma.funcDecomp,!d)){var f=Sb.call(a);Ma.funcNames||(d=!G.test(f));d||(d=K.test(f),hb(a,d))}if(!1===d||!0!==d&&1&d[1])return a;switch(b){case 1:return function(b){return a.call(c,b)};case 2:return function(b,d){return a.call(c,b,d)};case 3:return function(b,d,f){return a.call(c,b,d,f)};case 4:return function(b,d,f,m){return a.call(c,b,d,f,m)}}return yb(a,c)}function Ta(a){function c(){var a=l?e:this;if(f){var ja=
p(f);La.apply(ja,arguments)}return(m||g)&&(ja||(ja=p(arguments)),m&&La.apply(ja,m),g&&ja.length<u)?(d|=16,Ta([b,h?d:-4&d,ja,null,e,u])):(ja||(ja=arguments),t&&(b=a[k]),this instanceof c)?(a=C(b.prototype),ja=b.apply(a,ja),da(ja)?ja:a):b.apply(a,ja)}var b=a[0],d=a[1],f=a[2],m=a[3],e=a[4],u=a[5],l=1&d,t=2&d,g=4&d,h=8&d,k=b;return hb(c,a),c}function oa(a,c){var b=-1,d=xa(),m=a?a.length:0,e=m>=A&&d===k,u=[];if(e){var p=f(c);p?(d=h,c=p):e=!1}for(;++b<m;)p=a[b],0>d(c,p)&&u.push(p);return e&&t(c),u}function pa(a,
c,b,d){d=(d||0)-1;for(var f=a?a.length:0,m=[];++d<f;){var e=a[d];if(e&&"object"==typeof e&&"number"==typeof e.length&&(ca(e)||Ua(e))){c||(e=pa(e,c,b));var u=-1,p=e.length,l=m.length;for(m.length+=p;++u<p;)m[l++]=e[u]}else b||m.push(e)}return m}function M(c,b,d,f,e,u){if(d){var p=d(c,b);if("undefined"!=typeof p)return!!p}if(c===b)return 0!==c||1/c==1/b;if(!(c!==c||c&&aa[typeof c]||b&&aa[typeof b]))return!1;if(null==c||null==b)return c===b;var l=ga.call(c),t=ga.call(b);if(l==N&&(l=S),t==N&&(t=S),l!=
t)return!1;switch(l){case wa:case za:return+c==+b;case ba:return c!=+c?b!=+b:0==c?1/c==1/b:c==+b;case ra:case ka:return c==ya(b)}t=l==V;if(!t){var g=fa.call(c,"__wrapped__"),h=fa.call(b,"__wrapped__");if(g||h)return M(g?c.__wrapped__:c,h?b.__wrapped__:b,d,f,e,u);if(l!=S)return!1;l=c.constructor;g=b.constructor;if(l!=g&&!(W(l)&&l instanceof l&&W(g)&&g instanceof g)&&"constructor"in c&&"constructor"in b)return!1}l=!e;e||(e=a());u||(u=a());for(g=e.length;g--;)if(e[g]==c)return u[g]==b;var k=0;if(p=!0,
e.push(c),u.push(b),t){if(g=c.length,k=b.length,p=k==g,p||f)for(;k--;)if(t=g,h=b[k],f)for(;t--&&!(p=M(c[t],h,d,f,e,u)););else if(!(p=M(c[k],h,d,f,e,u)))break}else ua(b,function(a,b,m){return fa.call(m,b)?(k++,p=fa.call(c,b)&&M(c[b],a,d,f,e,u)):void 0}),p&&!f&&ua(c,function(a,c,b){return fa.call(b,c)?p=-1<--k:void 0});return e.pop(),u.pop(),l&&(m(e),m(u)),p}function T(a,c,b,d,f){(ca(c)?ea:U)(c,function(c,e){var m,u,p=c,l=a[e];if(c&&((u=ca(c))||jb(c))){for(var t=d.length;t--;)if(m=d[t]==c){l=f[t];break}if(!m){var g;
b&&(p=b(l,c),(g="undefined"!=typeof p)&&(l=p));g||(l=u?ca(l)?l:[]:jb(l)?l:{});d.push(c);f.push(l);g||T(l,c,b,d,f)}}else b&&(p=b(l,c),"undefined"==typeof p&&(p=c)),"undefined"!=typeof p&&(l=p);a[e]=l})}function qa(a,c){return a+Tb(zb()*(c-a+1))}function Z(c,b,d){var e=-1,u=xa(),p=c?c.length:0,l=[],g=!b&&p>=A&&u===k,E=d||g?a():l;g&&(E=f(E),u=h);for(;++e<p;){var v=c[e],w=d?d(v,e,c):v;(b?!e||E[E.length-1]!==w:0>u(E,w))&&((d||g)&&E.push(w),l.push(v))}return g?(m(E.array),t(E)):d&&m(E),l}function ia(a){return function(c,
后面还有 438+ 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
