UNPKG

magix-inspector

Version:
1 lines 37.8 kB
/*!1.2.14 kooboy_li@163.com*/!function(){var e,t,w=document,C=window;if(w.___)C.postMessage({__b:"__a",__d:"__c"},"*");else{C.addEventListener("message",function(e){var t=e.data;t&&"__a"==t.__b&&"__c"==t.__d&&b.__c()},!1),w.___=1;function s(e){return w.getElementById(e)}function v(e){return e.replace(r,function(e){return"&"+o[e]+";"})}var a=this&&this.__awaiter||function(e,o,_,s){return new(_=_||Promise)(function(a,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function r(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?a(e.value):((t=e.value)instanceof _?t:new _(function(e){e(t)})).then(n,r)}i((s=s.apply(e,o||[])).next())})},_=this&&this.__generator||function(a,n){var r,i,o,_={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;_;)try{if(r=1,i&&(o=2&t[0]?i.return:t[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,t[1])).done)return o;switch(i=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return _.label++,{value:t[1],done:!1};case 5:_.label++,i=t[1],t=[0];continue;case 7:t=_.ops.pop(),_.trys.pop();continue;default:if(!(o=0<(o=_.trys).length&&o[o.length-1])&&(6===t[0]||2===t[0])){_=0;continue}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]<o[3])){_.label=t[1];break}if(6===t[0]&&_.label<o[1]){_.label=o[1],o=t;break}if(o&&_.label<o[2]){_.label=o[2],_.ops.push(t);break}o[2]&&_.ops.pop(),_.trys.pop();continue}t=n.call(a,_)}catch(e){t=[6,e],i=0}finally{r=o=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},l={__aa:function(n){return new Promise(function(e,t){var a=new XMLHttpRequest;a.open("GET",n,!0),a.onreadystatechange=function(){a.readyState===XMLHttpRequest.DONE&&a.responseText&&(200===a.status?e(a.responseText):t(new Error("Network failed("+a.status+"): "+n)))},a.send()})},__ac:function(e){for(var a=[],t=1;t<arguments.length;t++)a[t-1]=arguments[t];l.__ab(e).then(function(t){return Promise.all(a.map(function(e){return l.__aa(t+encodeURIComponent(e))}))}).then(function(e){}).catch(function(e){})},__ab:function(e){return l.determinedURL&&l.determinedBase==e?Promise.resolve(l.determinedURL):l.__ad(e)},__ad:function(o){return a(this,void 0,void 0,function(){var t,a,n,r,i;return _(this,function(e){switch(e.label){case 0:t=3,a=0,n=function(e,t){for(var a=0,n=0;n<e.length;n++)a=e.charCodeAt(n)+(a<<6)+(a<<16)-a;return a>>>=0,t&&(a%=t),a}(o,8192)+32768,e.label=1;case 1:r="http://127.0.0.1:"+n+"/",e.label=2;case 2:return e.trys.push([2,4,,5]),[4,l.__aa(r)];case 3:if(e.sent()!=o)throw"";return i=r+"open?link=",[3,5];case 4:return e.sent(),[3,5];case 5:a++,n++,e.label=6;case 6:if(!i&&a<t)return[3,1];e.label=7;case 7:if(!i)throw new Error("Cannot find available port within range: "+(n-t)+" ~ "+n);return l.determinedBase=o,[2,l.determinedURL=i]}})})}},E="#008B00",k="#FF3030",T="#BC8F8F",c="#FF3030",p="#9AC0CD",g="#8B5F65",m="#EED5B7",L="#94d694",S={__af:550,__ag:470,__ah:530,__ai:400,__aj:490,__ak:34,__al:6,__am:15,__I:5,__an:5,__ao:40,__ap:40,__i:{r:0,g:153,b:102},__j:{r:255,g:255,b:0},__u:15,__v:5,__w:12,__x:5,__y:12},I=["FFC125","C71585","CDBA96","FF7F00","BA55D3","8B4726","7CFC00","4A4A4A","EE7AE9"],$="#CC9966",q="#99CCCC",H="#FF9999",A="#CCCC99",i={__r:"MsCPoEb",__t:"MsCPoEa"},n=function(n,a,r){function i(e){(e=C.getSelection)?e().removeAllRanges():(e=w.selection)&&(e.empty?e.empty():e=null)}function o(e){e.preventDefault()}function _(e){s.iMove&&s.move(e)}var s,l=n(C),c=n(w),u="mousemove touchmove",f="mouseup touchend",h="keydown mousewheel DOMMouseScroll",d=function(e){var t;s&&(c[a](u,_)[a](f,d)[a](h,o),l[a]("blur",d),t=s.node,n(t)[a]("losecapture",d),t.setCapture&&t.releaseCapture(),s.iStop&&s.stop(e),s=null)};return{__Y:function(e,t,a){d(),e&&(i(),e.setCapture&&e.setCapture(),s={move:t,stop:a,node:e,iMove:r(t),iStop:r(a)},c.on(u,_).on(f,d).on(h,o),l.on("blur",d),n(e).on("losecapture",d))},__Z:i}},r=/[&<>]/g,o={"&":"amp","<":"lt",">":"gt"},b={__M:function(){var e=w.createElement("div");e.innerHTML='<div class="MsCPoEe" id="__as"><ul class="MsCPoEp MsCPoEd" id="__at"><li class="MsCPoEl MsCPoEn MsCPoEm" id="__aG">\u25b3</li><li class="MsCPoEk MsCPoEn MsCPoEm">VOM</li><li class="MsCPoEk MsCPoEn MsCPoEm">Tracer</li><li class="MsCPoEk MsCPoEn MsCPoEm">Manager</li></ul><div id="__aI"><div style="width:{__af}px;height:{__ai}px;overflow-x:auto;overflow-y:hidden" id="__aN"><canvas width="{__af}" height="{__ai}" id="__aw"></canvas></div><label class="MsCPoEk MsCPoEh"><input type="checkbox" class="MsCPoEj" id="__aF"/>\u63a7\u5236\u53f0\u663e\u793aview\u4fe1\u606f</label><label class="MsCPoEk MsCPoEh"><input type="checkbox" class="MsCPoEj" id="__z"/>\u663e\u793a\u7ec4\u4ef6view</label><ul class="MsCPoEp MsCPoEk" id="__aY"></ul></div><div id="__aJ" style="height:{__ai}px;overflow:scroll;overflow-x:auto;display:none;padding:8px;"></div><div id="__aK" style="display:none"><div style="height:{__ai}px;overflow:scroll;overflow-x:auto;" id="__aT"><canvas width="{__ah}" height="{__ai}" id="__aB"></canvas></div><ul class="MsCPoEp MsCPoEn" id="__aW"></ul></div><div id="__aD" class="MsCPoEr"></div><div id="__aS" class="MsCPoEr"></div></div>'.replace(/\{(\w+|(?:@\{[^\}]+\}))\}/g,function(e,t){return S[t]||e}),w.documentElement.appendChild(e),b.__aq(),z.__e().__ar("#__as","#__at")},__aq:function(){var e;b.__au();var a=z.__e();a.__av("__aw","mousemove",b["@{$mousemove}"]=function(t){clearTimeout(e),e=setTimeout(function(){var e=a.__ax("__aw");b.__ay({x:t.pageX-e.left,y:t.pageY-e.top})},10)}),a.__av("__aw","click",b.__az=function(e){b.__aA(e)}),a.__av("__aw","mouseout",b["@{$mouseout}"]=function(){clearTimeout(e),b.__ay({x:-1,y:-1})}),a.__av("__aB","mousemove",b["@{$mangerMousemove}"]=function(t){clearTimeout(e),e=setTimeout(function(){var e=a.__ax("__aB");b.__aC({x:t.pageX-e.left,y:t.pageY-e.top})},10)}),a.__av("__aB","mouseout",b["@{$managerMouseout}"]=function(){clearTimeout(e),b.__aC({x:-1,y:-1})}),a.__av("__aD","mouseover",b["@{$imouseover}"]=function(){clearTimeout(b["@{$hideTimer}"])}),a.__av("__aD","mouseout",b["@{$imouseout}"]=function(){b.__aE()}),a.__av("__aF","click",function(){s("__aF").checked&&C.console.dir(a.__p().all())}),a.__av("__z","click",function(){z.__O()}),a.__av("__as","click",b["@{$click}"]=function(e){var t;"__aG"==e.target.id?(t=s("__as"),"\u25b3"==e.target.innerHTML?(t.style.height=S.__ak+"px",t.style.width="40px",t.style.overflow="hidden",e.target.innerHTML="\u25bd",a.__aH("#__at").addClass("MsCPoEs")):(t.style.height=S.__ag+"px",t.style.width=S.__af+"px",t.style.overflow="inherit",e.target.innerHTML="\u25b3",a.__aH("#__at").removeClass("MsCPoEs"))):"VOM"==e.target.innerHTML?((t=s("__aI")).style.display="block",(t=s("__aJ")).style.display="none",(t=s("__aK")).style.display="none"):"Tracer"==e.target.innerHTML?((t=s("__aI")).style.display="none",(t=s("__aK")).style.display="none",(t=s("__aJ")).style.display="block"):"Manager"==e.target.innerHTML&&((t=s("__aI")).style.display="none",(t=s("__aJ")).style.display="none",(t=s("__aK")).style.display="block")})},__c:function(){var e,t=s("__aG"),a=z.__e();"\u25bd"==t.innerHTML&&((e=s("__as")).style.height=S.__ag+"px",e.style.width=S.__af+"px",e.style.overflow="inherit",t.innerHTML="\u25b3",a.__aH("#__at").removeClass("MsCPoEs"))},__N:function(){var e,t=s("__aG"),a=z.__e();"\u25b3"==t.innerHTML&&((e=s("__as")).style.height=S.__ak+"px",e.style.width="40px",e.style.overflow="hidden",t.innerHTML="\u25bd",a.__aH("#__at").addClass("MsCPoEs"))},__au:function(){var e=z.__e();e.__aL("__aw","mousemove",b["@{$mousemove}"]),e.__aL("__aw","mouseout",b["@{$mouseout}"]),e.__aL("__aw","click",b.__az),e.__aL("__aB","mousemove",b["@{$managerMousemove}"]),e.__aL("__aB","mouseout",b["@{$managerMouseout}"]),e.__aL("__aG","click",b["@{$click}"]),e.__aL("__aD","mouseoout",b["@{$imouseout}"]),e.__aL("__aD","mouseover",b["@{$imouseover}"])},__aR:function(f,h){clearTimeout(b["@{$hideTimer}"]),s("__aF").checked&&C.console.log(f);var e=s("__aM");e||((e=w.createElement("div")).className="MsCPoEf",e.id="__aM",w.body.appendChild(e));var t=s("__aD");t.style.display="block";var a=h.center.x-S.__aj/2-s("__aN").scrollLeft;t.style.left=a+"px",t.style.top=h.center.y+h.radius+S.__ak+5+"px";var d=z.__e();d.__aO(e.style,f.id),e.style.display="block",t.innerHTML='<ul><li><b class="MsCPoEc">id:</b>{id}</li><li><b class="MsCPoEc">view:</b>{view}</li>{events} {location} {share} {mixins} {state}<li class="MsCPoEo">{ex}</li><li><b class="MsCPoEc">resources</b></li><li style="{__aj}px;overflow:auto;max-height:200px;">{res}</li></ul>'.replace(/\{(\w+|(?:@\{[^\}]+\}))\}/g,function(e,t){switch(t){case"id":return h.id;case"view":if(f){if(f.$v||f.path)return v(f.path);if(f.view)return v(f.view.path)}return"";case"events":var a=z.__f(f);return a.total?'<li><b class="MsCPoEc">listen:</b>'+a.list+"</li>":"";case"share":var n=z.__g(f);return n.length?'<li><b class="MsCPoEc">share:</b>'+n+"</li>":"";case"location":var r=z.__h(f);if(r.path||r.keys&&r.keys.length){var i=[];return r.path&&i.push('<span style="color:#FFC125">path</span>'),r.keys&&(i=i.concat(r.keys)),'<li><b class="MsCPoEc">location:</b>'+i+"</li>"}return"";case"mixins":var o=z.__m(f);return o.length?'<li><b class="MsCPoEc">mixins:</b>'+d.__aP(o).join(",")+"</li>":"";case"state":var _=z.__n(f);return _.length?'<li><b class="MsCPoEc">state:</b>'+_.join(",")+"</li>":"";case"ex":if(h.il)return"\u88ab\u5b64\u7acb\u7684\u8282\u70b9\uff0c\u597d\u53ef\u601c\u2026\u2026";if(!f)return"vframe\u5df2\u88ab\u9500\u6bc1\uff0c\u4f46\u672a\u4ecevom\u4e2d\u79fb\u9664";if(f.path){if(f.cM&&!f.view||f.$c&&!f.$v)return"\u672a\u52a0\u8f7dview"}else if(!f.view)return"\u672a\u52a0\u8f7dview";if(f.cM){if(!f.fcc)return f.rC!=f.cC?"\u6b63\u7b49\u5f85\u5b50view\u52a0\u8f7d":"\u6b63\u7b49\u5f85view\u52a0\u8f7d"}else if(!f.$cr)return f.$rc!=f.$cc?"\u6b63\u7b49\u5f85\u5b50view\u52a0\u8f7d":"\u6b63\u7b49\u5f85view\u52a0\u8f7d";return f.fca||f.$ca?"\u7b49\u5f85view\u6e32\u67d3":"";case"res":var s=[],l=f&&f.view&&f.view.$res,c=void 0;if(l=l||f&&f.$v&&f.$v.$r){for(var u in l){c=!0;break}if(c){for(var u in s.push('<table style="width:100%"><tr><td>key</td><td>type</td></tr>'),l)s.push("<tr><td>",u,"</td><td>",d.__aQ(l[u]),"</td></tr>");s.push("</table>")}}return s.join("");default:return S[t]||e}})},__aE:function(){var e=s("__aD"),t=s("__aM");b["@{$hideTimer}"]=setTimeout(function(){e.style.display="none",t.style.display="none"},150)},__aU:function(a){clearTimeout(b["@{$hideManagerTimer}"]);var e=s("__aS");e.style.display="block",e.style.left=a.rect[0]+"px";var t=a.rect[1]+a.rect[3]+S.__ak;t-=s("__aT").scrollTop,e.style.top=t+"px",e.innerHTML="<ul><li><b>key:</b>{id}</li><li><b>url:</b>{url}</li><li><b>\u63cf\u8ff0:</b>{desc}</li><li><b>\u7f13\u5b58:</b>{cache}</li><li><b>\u6e05\u7406\u7f13\u5b58:</b>{cleans}</li><li><b>\u9884\u5904\u7406:</b>{hasAfter}</li></ul>".replace(/\{(\w+)\}/g,function(e,t){switch(t){case"id":return a.id;default:return a[t]||""}})},__aV:function(){var e=s("__aS");b["@{$hideManagerTimer}"]=setTimeout(function(){e.style.display="none"},150)},__aX:function(a){s("__aW").innerHTML='<li class="MsCPoEk MsCPoEg">{groups}\u4e2a\u63a5\u53e3\u6587\u4ef6\uff0c\u5171{total}\u4e2a\u63a5\u53e3</li>'.replace(/\{(\w+)\}/g,function(e,t){switch(t){case"groups":return a.groups.length;case"total":return a.total;default:return e}})},__aZ:function(a){s("__aY").innerHTML='<li class="MsCPoEk MsCPoEg MsCPoEi">view\u7edf\u8ba1:[{count}]</li>'.replace(/\{(\w+)\}/g,function(e,t){switch(t){case"count":return"com:"+a.comTotal+",vom:"+a.vomTotal+",total:"+a.total;default:return e}})},__b_:function(e){s("__aB").height=0|e},__ba:function(e){var t=s("__aw");t.width=0|e,t.parentNode.scrollLeft=(t.width-S.__ah)/2},__ay:function(e){},__aC:function(e){},__aA:function(e){}};e='vframe{display:block}.MsCPoE_:before{width:12px;content:"M";height:12px;border-radius:6px;position:absolute;background-color:#008b00;opacity:.4;font-size:10px;line-height:12px;text-align:center;color:#fff}.MsCPoEa:before{background-color:#ff3030}.MsCPoEb:before{background-color:#bc8f8f}.MsCPoEc{padding-right:5px}.MsCPoEd{background:#eee;cursor:move;margin:0;padding:0}.MsCPoEe{position:fixed;right:20px;top:20px;width:550px;height:470px;z-index:2147483647;box-shadow:0 0 5px #b9b9b9;background-color:#fff;font-size:12px;line-height:1.5}.MsCPoEf{position:absolute;opacity:.7;background-color:#90ee90}.MsCPoEe ul{list-style:none;padding:0;margin:0}.MsCPoEg{padding:5px}.MsCPoEh{height:28px;line-height:28px;margin:0 0 0 5px;padding:0}.MsCPoEi{color:#bbb}.MsCPoEj{margin-right:3px}.MsCPoEk{float:left}.MsCPoEl{float:right}.MsCPoEm{cursor:pointer}.MsCPoEn{padding:8px}.MsCPoEo{color:red}.MsCPoEp:after,.MsCPoEp:before{content:"";display:table}.MsCPoEp:after{clear:both}.MsCPoEp{*zoom:1}.MsCPoEq{height:1px;border:0;padding:0;margin:5px;background:rgba(0,0,0,.2);background:-webkit-gradient(linear,left top,right top,from(rgba(165,69,243,0)),color-stop(.5,rgba(125,118,132,.33)),to(rgba(165,69,243,0)))}.MsCPoEr{position:absolute;background-color:#eee;padding:8px;width:440px;display:none;box-shadow:0 2px 2px 2px #b9b9b9;word-break:break-all}.MsCPoEs:before{left:4px;bottom:5px}.MsCPoEs:after,.MsCPoEs:before{content:" ";position:absolute;top:10px;border:2px dotted #b9b1b1;height:10px;cursor:move}.MsCPoEs:after{left:9px}',t=w.createElement("style"),w.documentElement.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(w.createTextNode(e));function u(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function f(e){var t="array"===u(e)?e:[e];"string"==u(e)&&(t=document.querySelectorAll(e)),this.__bn=t}var x={__P:function(e,t){var a,n=s("__aJ");x.__bb&&((a=w.createElement("hr")).className="MsCPoEq",n.insertBefore(a,n.firstChild),delete x.__bb);var r=w.createElement("div");r.innerHTML=e,t&&(r.style.color=t),n.insertBefore(r,n.firstChild),200<n.getElementsByTagName("div").length&&(n.removeChild(n.lastChild),n.removeChild(n.lastChild)),clearTimeout(x.__bc),x.__bc=setTimeout(function(){x.__bb=!0},1500)}},j={__bg:function(){var r=j;r.list=[],delete r.__bd,b.__ay=function(e){var t,a;if(r.__bd?(a=r.__bd,Math.pow(Math.pow(a.center.x-e.x,2)+Math.pow(a.center.y-e.y,2),.5)>a.radius&&(r.__be({item:a,action:"leave"}),delete r.__bd,t=!0)):t=!0,t)for(var n=r.list.length-1;0<=n;n--)if(a=r.list[n],Math.pow(Math.pow(a.center.x-e.x,2)+Math.pow(a.center.y-e.y,2),.5)<=a.radius){r.__bd!=a&&(r.__bd=a,r.__be({item:a,action:"enter"}));break}},b.__aA=r.__bf},__bj:function(){var i=j;i.managerList=[],delete i.__bh,b.__aC=function(e){var t,a,n;if(i.__bh?(n=(a=i.__bh).rect,(e.x<n[0]||e.y<n[1]||e.x>n[0]+n[2]||e.y>n[1]+n[3])&&(i.__bi({item:a,action:"leave"}),delete i.__bh,t=!0)):t=!0,t)for(var r=i.managerList.length-1;0<=r;r--)n=(a=i.managerList[r]).rect,e.x>=n[0]&&e.y>=n[1]&&e.x<=n[0]+n[2]&&e.y<=n[1]+n[3]&&i.__bh!=a&&(i.__bh=a,i.__bi({item:a,action:"enter"}))}},__bk:function(e,t,a){var n=0,r=0,i={},o=function(e,t){e.deep=t,r<t&&(r=t),i[t]||(i[t]=0),e.leftCount=i[t],i[t]++,i[t]>n&&(n=i[t]);for(var a=0;a<e.children.length;a++)e.children[a],o(e.children[a],e.deep+1)};e.deepMap=i,o(e,1,0);var _=t/(n=Math.max(n,e.isolated.length+1))-S.__al,s=a/r-S.__al,l=t,c=2*S.__am;_<c&&3e4<(l=(_=c)*n+(n+1)*S.__al)&&(l=3e4),b.__ba(l);var u=Math.floor(Math.min(s,_)/2),f=(u/20).toFixed(1);return{width:l,margin:S.__al,radius:u,band:f}},__O:function(M,w){if(M.id){var C=S.__af,e=S.__ai,P=j;P.__bg();var E=P.__bk(M,C,e),C=E.width,k=s("__aw").getContext("2d");k.clearRect(0,0,C,e);var r=2*E.radius-2*(E.band+1)-1;P.__bl||(P.__bl={});function T(e){for(var t,a=1,n=0;a<=e.length;){if(!((n+=(t=e.substring(a-1,a),P.__bl[t]||(k.font="normal 12px Arial",P.__bl[t]=k.measureText(t).width),P.__bl[t]))<r))return e.substring(0,a-3)+"..";a+=1}return e}var f=0,h=function(e,t,a,n){var r,i,o;a&&(k.beginPath(),(r=180*Math.atan((t.y-a.y)/(t.x-a.x))/Math.PI)<0&&(r+=180),i=Math.round(a.x+E.radius*Math.cos(r*Math.PI/180)),o=Math.round(a.y+E.radius*Math.sin(r*Math.PI/180)),k.moveTo(i,o),k.lineTo(t.x,t.y),k.lineWidth=E.band/1.5,k.strokeStyle=n,k.stroke());var _=M.deepMap[e.deep+1];if(_)for(var s,l=(C-(_*E.radius*2+(_-1)*E.margin))/2,c="#"+I[f++%I.length],u=0;u<e.children.length;u++)s=e.children[u],h(s,{x:l+s.leftCount*(2*E.radius+E.margin)+E.radius,y:t.y+E.margin+2*E.radius},t,c)},$=function(e,t){k.moveTo(t.x,t.y),k.beginPath(),k.arc(t.x,t.y,E.radius,0,2*Math.PI,!0),k.fillStyle=e.status,e.id==w&&(e.flag?k.fillStyle=L:k.fillStyle=e.status,e.flag=!e.flag),k.fill();var a,n,r,i,o,_,s,l,c,u,f=Math.max(.5,E.radius/10),h=t.y+E.radius/2,d=t.x-E.radius/2+f;e.event&&(k.beginPath(),k.arc(d,h,f,0,2*Math.PI,!0),k.fillStyle=e.event,k.fill()),e.location&&(k.beginPath(),k.arc(t.x,h+f,f,0,2*Math.PI,!0),k.fillStyle=e.location,k.fill()),e.mixins&&(u=(l=h)+f,n=((s=d)+(c=t.x)+Math.sqrt(3)*(u-l))/2-(c-s)/10,r=(l+u-Math.sqrt(3)*(c-s))/2+(c-s)/3,k.beginPath(),k.arc(n,r,f,0,2*Math.PI,!0),k.fillStyle=e.mixins,k.fill()),e.shared&&(a=t.x+E.radius/2-f,k.beginPath(),k.arc(a,h,f,0,2*Math.PI,!0),k.fillStyle=e.shared,k.fill()),e.state&&(l=h+f,u=h,n=((s=t.x)+(c=t.x+E.radius/2-f)+Math.sqrt(3)*(u-l))/2+(c-s)/10,r=(l+u-Math.sqrt(3)*(c-s))/2+(c-s)/3,k.beginPath(),k.arc(n,r,f,0,2*Math.PI,!0),k.fillStyle=e.state,k.fill()),e.inline&&(k.beginPath(),i=E.radius-E.band-1,o=-2*Math.PI/360*60,_=-2*Math.PI/360*120,s=t.x+i*Math.cos(o),l=t.y+i*Math.sin(o),c=t.x+i*Math.cos(_),u=t.y+i*Math.sin(_),k.moveTo(s,l),k.quadraticCurveTo(t.x,t.y-i/2,c,u),k.moveTo(s,l),k.quadraticCurveTo(t.x,t.y-E.radius-E.band,c,u),k.fillStyle="#fff",k.fill()),k.moveTo(t.x,t.y),k.beginPath(),k.arc(t.x,t.y,E.radius-E.band-1,0,2*Math.PI,!0),k.lineWidth=E.band,k.strokeStyle="#fff",k.stroke(),P.list.push({id:e.id,center:t,il:e.il,radius:E.radius}),k.beginPath(),k.moveTo(t.x,t.y),k.font="normal 12px Arial",k.fillStyle="#eee";var v=T(e.id),p=Math.round(k.measureText(v).width),g=(2*E.radius-p)/2;k.fillText(v,t.x+g-E.radius,t.y+4);var m=M.deepMap[e.deep+1];if(m)for(var b,x=(C-(m*E.radius*2+(m-1)*E.margin))/2,y=0;y<e.children.length;y++)b=e.children[y],$(b,{x:x+b.leftCount*(2*E.radius+E.margin)+E.radius,y:t.y+E.margin+2*E.radius})},t=M.isolated,a=C/2;if(t.length){a=(C-(t.length+1)*E.radius*2+t.length*E.margin)/2;for(var n=0;n<t.length;n++)$(t[n],{x:a+(n+1)*(2*E.radius+E.margin)+E.radius,y:E.margin+E.radius});a+=E.radius}h(M,{x:a,y:E.margin+E.radius}),$(M,{x:a,y:E.margin+E.radius}),b.__aZ(M,E)}},__U:function(e){var o=j;o.__bj();var t=S.__an*(e.rows+1)+e.rows*S.__ao+(S.__ap+S.__an)*e.groups.length;b.__b_(t);var x=s("__aB").getContext("2d");x.clearRect(0,0,S.__ah,t);function y(e,t,a,n){e.beginPath(),e.moveTo(t[0],t[1]),e.fillStyle=a.color,e.fillRect(t[0],t[1],t[2],t[3]),e.beginPath(),e.moveTo(t[0],t[1]+10),e.font="normal 14px Arial",e.fillStyle="#282828";for(var r,i=a.id;(i.length-3)*_>t[2];)i=i.slice(0,-1),r=!0;r&&(i=i.slice(0,-3)+"..."),e.fillText(i,t[0]+5,t[1]+25),a.package=n,a.rect=t,o.managerList.push(a)}var M=S.__an,w=(S.__ah-(1+S.__I)*S.__an)/S.__I|0,_=(x.font="normal 14px Arial",x.measureText("M").width);!function(e){for(var t=0;t<e.length;t++){var a=e[t],n=S.__an,r=!1;x.beginPath(),x.moveTo(n,M),x.font="normal 14px Arial",x.fillStyle="#282828",x.fillText(a.name,n+5,M+25),M+=S.__ap;for(var i=void 0,o=void 0,_=Math.max(a.maxLeft,a.maxRight),s={},l=0,c=(_-a.maxLeft)/2*(S.__ao+S.__an),u=(_-a.maxRight)/2*(S.__ao+S.__an),i=0;i<_;i++){var f=a.cleans.left[i],h=a.cleans.right[i];f&&(y(x,[n,M+c,150,S.__ao],f,a.name),s[f.id]=f),h&&(y(x,[S.__ah-S.__an-150,M+u,150,S.__ao],h,a.name),(s[h.id]=h).lineColor=I[l++%I.length]),M+=S.__an+S.__ao}for(var d in s)if((o=s[d]).cleans)for(var v={x:o.rect[0]+o.rect[2],y:o.rect[1]+(o.rect[3]/2|0)},p=(o.cleans+"").split(","),g=p.length-1;0<=g;g--){var m=s[p[g]],b={x:m.rect[0],y:m.rect[1]+(m.rect[3]/2|0)};x.beginPath(),x.moveTo(v.x,v.y),x.lineTo(b.x,b.y),x.lineWidth=1,x.strokeStyle="#"+(m.lineColor||"996699"),x.stroke()}for(i=0;i<a.caches.length;i++)y(x,[n,M,w,S.__ao],a.caches[i],a.name),r=(i+1)%S.__I==0?(M+=(n=S.__an)+S.__ao,!1):(n+=w+S.__an,!0);for(n=S.__an,r&&(M+=S.__an+S.__ao),i=0;i<a.items.length;i++)o=a.items[i],y(x,[n,M,w,S.__ao],o,a.name),r=(i+1)%S.__I==0?(M+=(n=S.__an)+S.__ao,!1):(n+=w+S.__an,!0);n=S.__an,r&&(M+=S.__ap)}}(e.groups),b.__aX(e)},__be:function(e){var t=z.__e().__p();"enter"==e.action?(j.__bm=t.get(e.item.id),b.__aR(t.get(e.item.id),e.item)):(j.__bm=null,b.__aE())},__bi:function(e){"enter"==e.action?b.__aU(e.item):b.__aV()},__bf:function(e){var t,a,n=j.__bm;!n||(t=n.view&&n.view.path||n.path)&&(a=C.Site&&C.Site.onlineHostname||C.location.hostname,l.__ac(a,t+".js",t+".html"))}};f.prototype={off:function(e,t){for(var a=0,n=this.__bn;a<n.length;a++)for(var r=n[a],i=0,o=e.split(/\s+/);i<o.length;i++){var _=o[i];r.removeEventListener(_,t)}return this},on:function(e,t){for(var a=0,n=this.__bn;a<n.length;a++)for(var r=n[a],i=0,o=e.split(/\s+/);i<o.length;i++){var _=o[i];r.addEventListener(_,t,!1)}return this},removeClass:function(e){for(var t=0,a=this.__bn;t<a.length;t++){a[t].classList.remove(e)}return this},addClass:function(e){for(var t=0,a=this.__bn;t<a.length;t++){a[t].classList.add(e)}return this},css:function(e){var t=this.__bn;if("string"==u(e)){var a=t[0];return a?o=(o=getComputedStyle(a,null))[e]:null}for(var n=0,r=t;n<r.length;n++){var i=r[n];for(var o in e){var _=e[o];/^\d+$/.test(_)&&(_+="px"),i.style[o]=_}}return this},offset:function(){var e=this.__bn[0];return e?e.getBoundingClientRect():null},prev:function(){var e=this.__bn[0];if(e){for(;1!=e.nodeType;)e=e.previousSibling;return e}return null},height:function(){var e=this.__bn[0];return e?e.clientHeight:0},width:function(){var e=this.__bn[0];return e?e.clientWidth:0},children:function(){var e=this.__bn[0];return e?new f(e.children):0},parent:function(){var e=this.__bn[0];return e?e.parentElement:0}};function h(e){return new f(e)}h.type=u,h.isFunction=function(e){return"function"===u(e)};var d={$:["zepto","fn.jquery"],jquery:["fn.jquery"],zepto:["zepto"],magix:["safeExec","toTry"]},y={},M=C.KISSY,P={__K:function(){M.use("node")},__o:function(){var e=M.Env.mods["magix/magix"]?M.require("magix/magix"):M.require("magix");return e.config("rootId")},__p:function(){if(M.Env.mods["magix/magix"])return M.require("magix/vom");var e=M.require("magix");return e.VOM||e.Vframe},__C:function(){var e=M.Env.mods,t=[];for(var a in e){var n=e[a].exports||e[a].value;n&&(n.$mMetas&&n.$mCache||n.$mm&&n.$mc||n.$m&&n.$c)&&t.push({name:e[a].name,exports:n})}return t},__L:function(){var e=M.Env.mods["magix/magix"],t=M.Env.mods.node;if(e){var a=M.Env.mods["magix/vom"];return e.status===M.Loader.Status.ATTACHED&&a&&a.status===M.Loader.Status.ATTACHED&&t&&t.status===M.Loader.Status.ATTACHED}try{return(e=M.require("magix"))&&e.toTry&&t&&t.status===M.Loader.Status.ATTACHED}catch(e){return!1}},__aO:function(e,t){var a=M.require("node").one("#"+t);if(a){var n=a.prev();"absolute"==a.css("position")&&n&&"input"==n.nodeName()&&(a=n);var r,i=a,o={height:i.outerHeight?i.outerHeight():i.height(),width:i.outerWidth?i.outerWidth():i.width()};if(o.height)r=i.offset(),e.left=r.left+"px",e.top=r.top+"px",e.position="absolute",o.width=Math.max(o.width,i.children().width()||0),0;else{var _=4;do{if(i=i.children(),o.height=i.height(),o.height){var s=i.css("position");"fixed"==s?(s=i.css("left"),e.left=s,e.position=s,s=i.css("top"),e.top=s,s=i.css("right"),e.right=s,s=i.css("bottom"),e.bottom=s):(r=i.offset(),e.left=r.left+"px",e.top=r.top+"px",e.position="absolute",o.width=Math.max(o.width,i.children().width()||0));break}_--}while(i.length&&!o.height&&0<=_)}var l,c=-1;do{l=l||"none"==a.css("display");var u=parseInt(a.css("z-index"))||1;u&&c<u&&(c=u),a=a.parent()}while(a);l&&(o={width:0,height:0}),1==c&&(c=2147483640),e.zIndex=c+1,e.width=o.width+"px",e.height=o.height+"px"}},__ax:function(e){return M.require("node").one("#"+e).offset()},__av:function(e,t,a){var n=M.require("node");return M.isString(e)&&(e="#"+e),n.one(e).on(t,a)},__aL:function(e,t,a){var n=M.require("node");return M.isString(e)&&(e="#"+e),n.one(e).detach(t,a)},__aP:function(e){for(var t=M.Env.mods,a=[],n=0;n<e.length;n++){var r=e[n];if(r)if(r["\x1e"])a.push('<span style="color:#C71585">State.clean("'+r["\x1e"]+'")</span>');else for(var i in t){var o=t[i];if((o.exports||o.value)==r){a.push(i);break}}a.length<=n&&a.push("unknown")}return a},__aQ:function(e){var t="",a=e.res||e.e;if(a)if(a.all&&a.constructor&&a.constructor.cached)t="Magix.Service";else if(a.fetchAll||a.all&&a.one&&a.next&&a.then)t="Model Manager";else if(a.bricks)t="Pagelet";else if(a.__attrs&&a.__attrVals&&a.constructor){var n=M.Env.mods,r=void 0;for(var i in n){var o=n[i],_=o.value||o.exports;if(_&&a.constructor==_){t=o.name,r=!0;break}}r||(t=a.hasOwnProperty("pagelet")?"Brick":"extend S Attribute")}else t=M.isFunction(a)?"\u51fd\u6570\u6216\u6784\u9020\u5668":M.type(a);else t=M.type(a);return t},__V:function(e){var t=M.Loader.Utils.attachMod;M.Loader.Utils.attachMod=function(){t.apply(M.Loader.Utils,arguments),e()}},__ar:function(e,t){var _=M.one(e),s=n(M.one,"detach",M.isFunction);M.one(t).on("mousedown",function(e){var n,r,i,o;e.target.id==t.slice(1)&&(n=parseInt(_.css("right"),10),r=parseInt(_.css("top"),10),i=e.pageX,o=e.pageY,s.__Y(e.target,function(e){s.__Z();var t=e.pageX-i,a=e.pageY-o;r+a<0&&(a=-r),_.css({right:n-t,top:r+a})}))})},__T:function(e){for(var t=e.length-1;0<=t;t--){var a=e[t],n=M.one("#"+a.id);n&&n.removeClass("MsCPoEa").removeClass("MsCPoEb").addClass("MsCPoE_"),a.cls&&n&&n.addClass(i[a.cls])}},__aH:function(e){return M.one(e)},__W:function(e){var t,a=M.Env.mods.magix;(a=a&&M.require("magix"))&&a.View&&a.View.prototype.share&&(t=a.View.prototype.share,a.View.prototype.share=function(){t.apply(this,arguments),e()})}},F={__K:function(){},__V:function(e){C.MutationObserver&&new C.MutationObserver(function(){clearTimeout(void 0),setTimeout(e,1e3)}).observe(w.body,{subtree:!0,childList:!0,characterData:!0})},__bo:function(e){var t=require.s.contexts._.defined,a=t[e]||y[e];if(!a&&d[e]){var n=d[e];for(var r in t){for(var i=!1,o=n.length-1;0<=o;o--){for(var _=n[o].split("."),s=t[r];_.length&&s;)s=s[_.shift()];if(s){i=!0;break}}if(i){a=t[r],y[e]=a;break}}}return a},__bp:function(){return this.__bo("$")||this.__bo("jquery")||this.__bo("zepto")||h},__o:function(){var e=this.__bo("magix/magix"),t=e||this.__bo("magix");return t.config("rootId")},__p:function(){var e=this.__bo("magix/vom");if(e)return e;var t=this.__bo("magix");return t.VOM||t.Vframe},__C:function(){var e=require.s.contexts._.defined,t=[];for(var a in e){var n=e[a];n&&(n.$mMetas&&n.$mCache||n.$mm&&n.$mc||n.$m&&n.$c)&&t.push({name:a,exports:n})}return t},__L:function(){return this.__bo("magix/magix")||this.__bo("magix")},__aO:function(e,t){var a=this.__bp(),n=a("#"+t),r=n.prev();"absolute"==n.css("position")&&"INPUT"==r.prop("tagName")&&(n=r);var i,o=n,_={height:o.outerHeight?o.outerHeight():o.height(),width:o.outerWidth?o.outerWidth():o.width()};if(_.height)i=o.offset(),e.left=i.left+"px",e.top=i.top+"px",e.position="absolute",_.width=Math.max(_.width,o.children().width()||0),0;else{var s=4;do{if(o=o.children(),_.height=o.height(),_.height){var l=o.css("position");"fixed"==l?(l=o.css("left"),e.left=l,e.position=l,l=o.css("top"),e.top=l,l=o.css("right"),e.right=l,l=o.css("bottom"),e.bottom=l):(i=o.offset(),e.left=i.left+"px",e.top=i.top+"px",e.position="absolute",_.width=Math.max(_.width,o.children().width()||0));break}s--}while(o.length&&!_.height&&0<=s)}var c,u=-1;do{c=c||"none"==n.css("display");var f=parseInt(n.css("z-index"))||1;f&&u<f&&(u=f),n=n.parent()}while(n.length&&a.contains(w.body,n[0]));c&&(_={width:0,height:0}),1==u&&(u=2147483640),e.zIndex=u+1,e.width=_.width+"px",e.height=_.height+"px"},__ax:function(e){return this.__bp()("#"+e).offset()},__av:function(e,t,a){var n=this.__bp();return"string"==n.type(e)&&(e="#"+e),n(e).on(t,a)},__aL:function(e,t,a){var n=this.__bp();return"string"==n.type(e)&&(e="#"+e),n(e).off(t,a)},__aP:function(e){for(var t=require.s.contexts._.defined,a=[],n=0;n<e.length;n++){var r=e[n];if(r)if(r["\x1e"])a.push('<span style="color:#C71585">State.clean("'+r["\x1e"]+'")</span>');else for(var i in t){if(t[i]==r){a.push(i);break}}a.length<=n&&a.push("unknown")}return a},__aQ:function(e){var t=e.res||e.e,a=this.__bp(),n=a.type(e);return t&&(t.all&&t.constructor&&t.constructor.cached?n="Magix.Service":t.fetchAll||t.all&&t.one&&t.next&&t.then?n="Model Manager":t.bricks?n="Pagelet":a.isFunction(t)&&(n="\u51fd\u6570\u6216\u6784\u9020\u5668")),n},__ar:function(e,t){var a=this.__bp(),_=a(e),s=n(a,"off",a.isFunction);a(t).on("mousedown",function(e){var n,r,i,o;e.target.id==t.slice(1)&&(n=parseInt(_.css("right"),10),r=parseInt(_.css("top"),10),i=e.pageX,o=e.pageY,s.__Y(e.target,function(e){s.__Z();var t=e.pageX-i,a=e.pageY-o;r+a<0&&(a=-r),_.css({right:n-t,top:r+a})}))})},__T:function(e){for(var t=this.__bp(),a=e.length-1;0<=a;a--){var n=e[a],r=t("#"+n.id);r&&r.removeClass("MsCPoEa").removeClass("MsCPoEb").addClass("MsCPoE_"),n.cls&&r&&r.addClass(i[n.cls])}},__aH:function(e){return this.__bp()(e)},__W:function(e){var t,a=this.__bo("magix");a&&a.View&&a.View.prototype.share&&(t=a.View.prototype.share,a.View.prototype.share=function(){t.apply(this,arguments),e()})}},B={},D={},O={};for(var V in F)B[V]=D[V]=O[V]=F[V];B.__bo=function(e){var t=seajs.cache,a=y[e];if(!a)for(var n in t){var r=t[n];if(r.id===e)return r.exports}if(!a&&d[e]){var i=d[e];for(var n in t){for(var o=!1,_=i.length;_--;){for(var s=i[_].split("."),l=t[n].exports;s.length&&l;)l=l[s.shift()];if(l){o=!0;break}}if(o){a=t[n].exports,y[e]=a;break}}}return a},B.__C=function(){var e=seajs.cache,t=[];for(var a in e){var n=e[a],r=n.exports;r&&r.$m&&r.$s&&t.push({name:n.id,exports:r})}return t},B.__aP=function(e){for(var t=seajs.cache,a=[],n=0;n<e.length;n++){var r=e[n];if(r)if(r["\x1e"])a.push('<span style="color:#C71585">State.clean("'+r["\x1e"]+'")</span>');else for(var i in t){var o=t[i];if(o.exports==r){a.push(o.id);break}}a.length<=n&&a.push("unknown")}return a},D.__bo=function(e){var t;try{t=require(e)}catch(e){}return t||C.console.warn("seajs standalone\u6a21\u5f0f\u4e0b\u65e0\u6cd5\u627e\u5230\u6a21\u5757\uff1a"+e+"\uff0c\u4e5f\u65e0\u6cd5\u667a\u80fd\u63a2\u6d4b\u3002\u5982\u9700\u66f4\u591a\u5e2e\u52a9\u4fe1\u606f\u8bf7\u9489\u9489\u8054\u7cfb\uff1a\u884c\u5217"),t},D.__C=function(){return[]},D.__aP=function(e){return new Array(e.length+2).join("unknown").slice(1)},O.__bo=function(e){if("magix"==e)return C.Magix},O.__bp=function(){return C.$||C.jQuery||C.Zepto},O.__o=function(){return Magix.config("rootId")},O.__p=function(){return Magix.VOM||Magix.Vframe},O.__C=function(){return[]},O.__aP=function(e){return new Array(e.length+2).join("unknown").slice(1)},O.__L=function(){return!0};var z={__e:function(){return C.KISSY?P:C.requirejs?F:C.seajs?B:C.Magix?O:C.define&&C.require?D:void C.console.error("getEnvError:\u65e0\u6cd5\u5728\u5f53\u524d\u73af\u5883\u4e0b\u542f\u52a8Magix Inspector\uff0c\u5982\u9700\u66f4\u591a\u5e2e\u52a9\uff0c\u8bf7\u9489\u9489\u8054\u7cfb\uff1a\u884c\u5217")},__f:function(e){var t=[],a=0;if(e){var n=e.view&&(e.view.events||e.view.$evts)||e.$v&&e.$v.$eo,r=[],i=[];for(var o in n){a++;var _=n[o];isFinite(_)?(1==(1&_)&&r.push(o),2==(2&_)&&i.push(o)):r.push(o)}var s=e.view&&e.view.tmplEvents;s&&s.length&&(r=r.concat(s),a+=s.length),r.length&&t.push("&lt;"+r+"&gt;");var l=e.$v&&e.$v.$el;e.$v&&e.$v.constructor&&e.$v.constructor.prototype.$el&&(l=e.$v.constructor.prototype.$el);var c=[],u=[],f=[],h={};if(l){for(var d,v=0,p=void 0;v<l.length;v++){a++,(p=l[v]).e?p.e==C?c.push(p.n):p.e==w&&u.push(p.n):(d=h[p.s])?d.push(p.n):h[p.s]=[p.n]}for(var o in h)f.push("$"+o+"&lt;"+h[o]+"&gt;")}var g=e.$v&&e.$v.$so;if(i.length){for(var m,b={},x=0;x<i.length;x++)for(var y in g[m=i[x]]){var M=b[y];M?M.push(m):b[y]=[m]}for(var o in b)f.push("$"+o+"&lt;"+b[o]+"&gt;")}c.length&&t.push('<span style="color:#'+I[1]+'">$win&lt;'+c+"&gt;</span>"),u.length&&t.push('<span style="color:#'+I[3]+'">$doc&lt;'+u+"&gt;</span>"),f.length&&t.push('<span style="color:#'+I[4]+'">'+f+"</span>")}return{list:t,total:a}},__g:function(e){var t=[];if(e&&e.$v){var a=e.$v.$sd;if(a)for(var n in a)t.push(n)}return t},__h:function(e){var t,a,n,r=[];return e&&(!e.view||(a=e.view.$ol)&&(t=a.pn,r=a.keys||a.ks),!e.$v||(n=e.$v.$l)&&n.f&&(t=n.p,r=n.k)),{path:t,keys:r}},__k:function(e,t){var a=S.__i,n=S.__j,r=(n.r-a.r)/t,i=(n.g-a.g)/t,o=(n.b-a.b)/t;return"#"+("0"+parseInt(a.r+e*r).toString(16)).slice(-2)+("0"+parseInt(a.g+e*i).toString(16)).slice(-2)+("0"+parseInt(a.b+e*o).toString(16)).slice(-2)},__l:function(e){if(e){var t=e.view;if(t)return!t.template&&!t.tmpl;if(t=e.$v)return!t.tmpl}return!1},__m:function(e){if(e){var t=e.$v;if(t&&t.mixins)return t.mixins}return[]},__n:function(e){if(e){var t=e.$v;if(t&&t.$os)return t.$os}return[]},__B:function(e){var t=e.__o(),b=e.__p(),x=[],y={},M={total:0,comTotal:0,vomTotal:0,children:[]},a=b.all(),w={},C=!1;for(var n in a)a.hasOwnProperty(n)&&M.vomTotal++,w[n]=1;var P=function(e,t){var a=b.get(e),n={};if(a){M.total++,t.id=a.id,n.id=a.id,delete w[a.id],a.fcc||a.$cr?(t.status=E,n.cls=""):a.fca||a.$ca?(t.status=T,n.cls="__r",(a.cM&&!a.view||a.$c&&!a.$v)&&(t.status=k,n.cls="__t")):(t.status=k,n.cls="__t"),x.push(n),y[a.id]=t;var r,i=z.__f(a).total;i&&(r=S.__u,i=Math.min(i,r),t.event=z.__k(i,r));var o=z.__g(a);o.length&&(f=S.__v,h=Math.min(o.length,f),t.shared=z.__k(h,f));var _,s,l=z.__h(a);(l.path||l.keys&&l.keys.length)&&(_=S.__w,s=l.keys||[],h=Math.min(_,s.length),t.location=z.__k(h,_));var c,u=z.__m(a);u.length&&(c=S.__x,h=Math.min(u.length,c),t.mixins=z.__k(h,c));var f,h,d=z.__n(a);d.length&&(f=S.__y,h=Math.min(d.length,f),t.state=z.__k(h,f)),t.inline=z.__l(a);var v=a.path;(t.inline||v&&(0<v.indexOf("gallery/")||0<v.indexOf("/gallery")))&&(C=!0,t.component=!0,M.comTotal++);var p=a.cM||a.$c;for(var g in p){var m={children:[]};P(g,m),m.id&&t.children.push(m)}}};P(t,M);var r=s("__z");r&&r.checked||!C||(C=function(e){for(var t=e.children.length-1;0<=t;t--){var a=e.children[t];a.component?e.children.splice(t,1):C(a)}})(M);var i=[];for(var o in w)i.push({id:o,il:!0,status:c,children:[]}),x.push({id:o,cls:"__t"});return M.isolated=i,{tree:M,flattened:x,map:y}},__J:function(e){for(var t=e.__C(),a=[],n=0,r={},i=0,o={},_=0,s=0;s<t.length;s++){var l=t[s],c=l.exports.$mMetas||l.exports.$mm||l.exports.$m;c.__D||(c.__D="t"+_++),o[c.__D]&&(o[c.__D].continued=!0),o[c.__D]=l}for(var u=0;u<t.length;u++){var f=t[u],h=[],d={left:[],right:[]},v=[],p=0,g=0,m=0,b=void 0,x=void 0,y=f.exports.$mMetas||f.exports.$mm||f.exports.$m;if(delete y.__D,!f.continued){for(b in y)if((x=y[b]).cleans)for(var M=(x.cleans+"").split(","),w=0;w<M.length;w++)r[M[w]]=b;for(b in y){x=y[b];var C=A,P={id:b,color:C,url:x.url||x.uri,cache:(x.cache||0|x.cacheTime)/1e3+"sec",desc:x.desc||"",cleans:x.cleans||"",cleaned:r[b]||"",hasAfter:x.after?(x.after+"").substr(0,200):""};x.cleans?(C=H,P.color=C,d.left.push(P),g++):r[b]?(C=q,P.color=C,d.right.push(P),m++):x.cache||x.cacheTime?(C=$,P.color=C,v.push(P)):(h.push(P),p++),i++}}n+=Math.ceil(p/S.__I),n+=Math.max(g,m),n+=Math.ceil(v.length/S.__I),a.push({name:f.name,rows:n,cleans:d,caches:v,maxLeft:g,maxRight:m,items:h})}return{groups:a,rows:n,total:i}},__K:function(e){var t=z.__e();t.__K();var a=50,n=function(){--a?w.body&&t.__L()?e():setTimeout(n,500):C.console.error("prepareError:\u65e0\u6cd5\u5728\u5f53\u524d\u73af\u5883\u4e0b\u542f\u52a8Magix Inspector(\u9700\u8981\u7684\u6a21\u5757\u5982jquery,magix\u7b49\u68c0\u6d4b\u4e0d\u5230)\uff0c\u5982\u9700\u66f4\u591a\u5e2e\u52a9\uff0c\u8bf7\u9489\u9489\u8054\u7cfb\uff1a\u884c\u5217")};n()},__X:function(){z.__K(function(){b.__M(),b.__N();function i(){_&&e&&(a=0,j.__O(r.tree),clearInterval(e),_=e="")}function o(){a=16,_&&!e&&(j.__O(r.tree,_),e=setInterval(function(){a?(a--,j.__O(r.tree,_)):i()},600))}var n,e,t,_,r,s=z.__e(),l=s.__p(),a=0;w.onmouseout=w.onmouseover=function(r){clearTimeout(t),t=setTimeout(function(){for(var e,t=l.all(),a="mouseout"==r.type?r.relatedTarget:r.target;a&&a.parentNode;){var n=a.id;if(n&&t[n]){e=n;break}if(a.vframe){e=a.vframe.id;break}a=a.parentNode}e?e!=_&&(_=e,o()):i()},50)};function c(a){a.on("created",function(){x.__P("vframe:"+a.id+"["+(a.path||a.view.path||"")+"]\u6e32\u67d3\u5b8c\u6bd5",E),f()}),a.on("alter",function(e){var t;e.id&&!e.logged&&(e.logged=1,(t=l.get(e.id))&&x.__P("\u4ecevframe:"+t.id+"["+(t.path||t.view.path||"")+"] \u53d1\u8d77\u754c\u9762\u53d8\u66f4",p)),x.__P("vframe:"+a.id+"\u6536\u5230\u53d8\u66f4\u6d88\u606f",T),f()}),a.on("viewInited",function(){x.__P("vframe:"+a.id+"\u7684view["+a.view.path+"]\uff0cinit\u8c03\u7528\u5b8c\u6bd5",E)}),a.on("viewUnmounted",function(){var e=(e=a.path||a.view&&a.view.path||"")&&"["+e+"]";x.__P("vframe:"+a.id+"\u7684view"+e+"\u9500\u6bc1\u5b8c\u6bd5",g)}),a.on("viewMounted",function(){x.__P("vframe:"+a.id+"\u7684view["+(a.path||a.view.path||"")+"]\uff0c\u9996\u6b21\u6e32\u67d3\u5b8c\u6bd5",E)}),a.___mh=!0}function u(){var e=l.all();for(var t in e){var a=l.get(t);a.___mh||c(a)}}var f=function(e){var t,a;e&&("remove"==e.type?e.vframe?((t=e.vframe).off("created"),t.off("alter"),t.off("viewInited"),t.off("viewUnmounted"),t.off("viewMounted"),!(a=t.path)&&t.view&&(a=t.view.path),a=a?"("+a+")":"",x.__P("\u4eceVOM\u4e2d\u79fb\u9664vframe:"+t.id+a,m)):x.__P("remove:",e):"created"==e.type&&u()),clearTimeout(n),n=setTimeout(function(){i(),r=z.__B(s),j.__O(r.tree),o(),s.__T(r.flattened)},0)};l.on("add",function(e){f(),e.vframe.pId&&x.__P("\u627e\u5230vframe:"+e.vframe.pId+"\u7684\u5b50vframe:"+e.vframe.id,p),x.__P("\u521b\u5efavframe:"+e.vframe.id,p),c(e.vframe)}),l.on("remove",f);var h,d=l.get(s.__o());d&&d.on("created",f),u(),f(),z.__O=f;function v(){clearTimeout(h),h=setTimeout(function(){var e=z.__J(s);j.__U(e)},500)}s.__V(v),s.__W(f),v()})}};z.__X()}}();