//>>built /* Copyright 2015 The MathWorks, Inc. @exports MW/utils/deprecation */ (function(e,k){var h,l=function(){},b=function(a){for(var f in a)return 0;return 1},m={}.toString,d=function(a){return"[object Function]"==m.call(a)},g=function(a){return"[object String]"==m.call(a)},c=function(a){return"[object Array]"==m.call(a)},a=function(a,f){if(a)for(var c=0;ch;)try{if(P=T[h++],new ActiveXObject(P))break}catch(Q){}I=function(){return new ActiveXObject(P)}}q.getXhr=I;w.add("dojo-gettext-api", 1);q.getText=function(a,f,c){var b=I();b.open("GET",Ua(a),!1);b.send(null);if(200==b.status||!location.host&&!b.status)c&&c(b.responseText,f);else throw u("xhrFailed",b.status);return b.responseText};var L=w("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");q.eval=function(a,f){return L(a+"\r\n//# sourceURL\x3d"+f)};var J={},H=q.signal=function(f,b){var p=J[f];a(p&&p.slice(0),function(a){a.apply(null,c(b)?b:[b])})},V=q.on=function(a,f){var c=J[a]||(J[a]=[]);c.push(f);return{remove:function(){for(var a= 0;al.attributes.length);h.clearElement=function(b){b.innerHTML="";return b};h.normalize=function(b,m){var d=b.match(/[\?:]|[^:\?]*/g),g=0,c=function(a){var f=d[g++];if(":"==f)return 0;if("?"==d[g++]){if(!a&&h(f))return c();c(!0);return c(a)}return f||0};return(b=c())&&m(b)};h.load=function(b,m, d){b?m([b],d):d()};return h})},"dojo/_base/config":function(){define(["../has","require"],function(e,k){var h={},l=k.rawConfig,b;for(b in l)h[b]=l[b];h.updateLocale=function(b,d){var g,c;if(0<=b.indexOf(d)&&"zh"!==d)h.locale=d;else if(g=d.split("-")[0],"zh"===g)h.locale="en-us".toLocaleLowerCase();else{for(var a=0;ar?(r=s+r,0>r&&(r=b)):r=r>=s?s+d:r;for(s&&"string"==typeof n&&(n=n.split(""));r!=m;r+=f)if(n[r]==q)return r;return-1}}var d={},g,c={every:b(!1),some:b(!0),indexOf:m(!0),lastIndexOf:m(!1),forEach:function(a,c,b){var p=0,n=a&&a.length||0;n&&"string"== typeof a&&(a=a.split(""));"string"==typeof c&&(c=d[c]||l(c));if(b)for(;p=d[g].priority;g++);d.splice(g,0,n);c()},f=e.config.addOnLoad;if(f)a[b.isArray(f)?"apply":"call"](e,f);e.config.parseOnLoad&&!e.isAsync&&a(99,function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),h(["dojo/parser"]))});l? l(k):k();return a})},"dojo/domReady":function(){define(["./has"],function(e){function k(a){c.push(a);g&&h()}function h(){if(!a){for(a=!0;c.length;)try{c.shift()(b)}catch(f){console.error(f,"in domReady callback",f.stack)}a=!1;k._onQEmpty()}}var l=function(){return this}(),b=document,m={loaded:1,complete:1},d="string"!=typeof b.readyState,g=!!m[b.readyState],c=[],a;k.load=function(a,c,f){k(f)};k._Q=c;k._onQEmpty=function(){};d&&(b.readyState="loading");if(!g){var f=[],u=function(a){a=a||l.event;g|| "readystatechange"==a.type&&!m[b.readyState]||(d&&(b.readyState="complete"),g=1,h())},p=function(a,f){a.addEventListener(f,u,!1);c.push(function(){a.removeEventListener(f,u,!1)})};if(!e("dom-addeventlistener")){var p=function(a,f){f="on"+f;a.attachEvent(f,u);c.push(function(){a.detachEvent(f,u)})},n=b.createElement("div");try{n.doScroll&&null===l.frameElement&&f.push(function(){try{return n.doScroll("left"),1}catch(a){}})}catch(q){}}p(b,"DOMContentLoaded");p(l,"load");"onreadystatechange"in b?p(b, "readystatechange"):d||f.push(function(){return m[b.readyState]});if(f.length){var r=function(){if(!g){for(var a=f.length;a--;)if(f[a]()){u("poller");return}setTimeout(r,30)}};r()}}return k})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(e,k,h){function l(a,c){throw Error("declare"+(c?" "+c:"")+": "+a);}function b(a,c,f){var b,d,n,p,g,q,r,s=this._inherited=this._inherited||{};"string"==typeof a&&(b=a,a=c,c=f);f=0;p=a.callee;(b=b||p.nom)||l("can't deduce a name to call inherited()", this.declaredClass);g=this.constructor._meta;n=g.bases;r=s.p;if(b!=F){if(s.c!==p&&(r=0,q=n[0],g=q._meta,g.hidden[b]!==p)){(d=g.chains)&&"string"==typeof d[b]&&l("calling chained method with inherited: "+b,this.declaredClass);do if(g=q._meta,d=q.prototype,g&&(d[b]===p&&d.hasOwnProperty(b)||g.hidden[b]===p))break;while(q=n[++r]);r=q?r:-1}if(q=n[++r])if(d=q.prototype,q._meta&&d.hasOwnProperty(b))f=d[b];else{p=y[b];do if(d=q.prototype,(f=d[b])&&(q._meta?d.hasOwnProperty(b):f!==p))break;while(q=n[++r])}f= q&&f||y[b]}else{if(s.c!==p&&(r=0,(g=n[0]._meta)&&g.ctor!==p)){d=g.chains;for((!d||"manual"!==d.constructor)&&l("calling chained constructor with inherited",this.declaredClass);(q=n[++r])&&!((g=q._meta)&&g.ctor===p););r=q?r:-1}for(;(q=n[++r])&&!(f=(g=q._meta)?g.ctor:q););f=q&&f}s.c=f;s.p=r;if(f)return!0===c?f:f.apply(this,c||a)}function m(a,c){return"string"==typeof a?this.__inherited(a,c,!0):this.__inherited(a,!0)}function d(a,c,f){var b=this.getInherited(a,c);if(b)return b.apply(this,f||c||a)}function g(a){for(var c= this.constructor._meta.bases,f=0,b=c.length;fb||90b||111b||192b||222g?g-48:!a.shiftKey&&65<=g&&90>=g?g+32:f[g]||g}b=p(a,{type:"keypress",faux:!0,charCode:g});c.call(a.currentTarget,b);if(d("ie"))try{a.keyCode=b.keyCode}catch(n){}}}),g=k(a,"keypress",function(a){var f=a.charCode;a=p(a,{charCode:32<=f?f:0,faux:!0});return c.call(this,a)});return{remove:function(){b.remove();g.remove()}}}:d("opera")?function(a,c){return k(a,"keypress",function(a){var f=a.which;3==f&&(f=99);f=32>f&&!a.shiftKey?0:f;a.ctrlKey&&(!a.shiftKey&&65<=f&&90>=f)&&(f+=32);return c.call(this, p(a,{charCode:f}))})}:function(c,f){return k(c,"keypress",function(c){a(c);return f.call(this,c)})};var q={_keypress:n,connect:function(a,f,b,d,g){var n=arguments,p=[],q=0;p.push("string"==typeof n[0]?null:n[q++],n[q++]);var u=n[q+1];p.push("string"==typeof u||"function"==typeof u?n[q++]:null,n[q++]);for(u=n.length;qh("jscript"))&&!h("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var b=a[c];if(!b||!b.listeners){var d=b,b=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}"); b.listeners=[];a[c]=b;b.global=this;d&&b.listeners.push(_dojoIEListeners_.push(d)-1)}b.listeners.push(a=b.global._dojoIEListeners_.push(f)-1);return new r(a)}return e.after(a,c,f,!0)},w=function(){this.cancelBubble=!0},y=g._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(h("touch"))var A=function(){},B=window.orientation,C=function(a){return function(c){var f=c.corrected;if(!f){var b= c.type;try{delete c.type}catch(d){}if(c.type){if(h("touch-can-modify-event-delegate"))A.prototype=c,f=new A;else{var f={},g;for(g in c)f[g]=c[g]}f.preventDefault=function(){c.preventDefault()};f.stopPropagation=function(){c.stopPropagation()}}else f=c,f.type=b;c.corrected=f;if("resize"==b){if(B==window.orientation)return null;B=window.orientation;f.type="orientationchange";return a.call(this,f)}"rotation"in f||(f.rotation=0,f.scale=1);var b=f.changedTouches[0],n;for(n in b)delete f[n],f[n]=b[n]}return a.call(this, f)}};return g})},"dojo/topic":function(){define(["./Evented"],function(e){var k=new e;return{publish:function(e,l){return k.emit.apply(k,arguments)},subscribe:function(e,l){return k.on.apply(k,arguments)}}})},"dojo/Evented":function(){define(["./aspect","./on"],function(e,k){function h(){}var l=e.after;h.prototype={on:function(b,m){return k.parse(this,b,m,function(b,g){return l(b,"on"+g,m,!0)})},emit:function(b,m){var d=[this];d.push.apply(d,arguments);return k.emit.apply(k,d)}};return h})},"dojo/aspect":function(){define([], function(){function e(b,g,c,a){var f=b[g],u="around"==g,p;if(u){var n=c(function(){return f.advice(this,arguments)});p={remove:function(){n&&(n=b=c=null)},advice:function(a,c){return n?n.apply(a,c):f.advice(a,c)}}}else p={remove:function(){if(p.advice){var a=p.previous,f=p.next;!f&&!a?delete b[g]:(a?a.next=f:b[g]=f,f&&(f.previous=a));b=c=p.advice=null}},id:b.nextId++,advice:c,receiveArguments:a};if(f&&!u)if("after"==g){for(;f.next&&(f=f.next););f.next=p;p.previous=f}else"before"==g&&(b[g]=p,p.next= f,f.previous=p);else b[g]=p;return p}function k(b){return function(g,c,a,f){var u=g[c],p;if(!u||u.target!=g)g[c]=p=function(){for(var a=p.nextId,c=arguments,f=p.before;f;)f.advice&&(c=f.advice.apply(this,c)||c),f=f.next;if(p.around)var b=p.around.advice(this,c);for(f=p.after;f&&f.idn.clientHeight)&&(a+=n.clientLeft);return 8>b||d?a+n.clientWidth-n.scrollWidth:-a}return a};g.position=function(a,c){a=h.byId(a);var b=k.body(a.ownerDocument),d=a.getBoundingClientRect(),d={x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-d.top};9>e("ie")&&(d.x-=e("quirks")?b.clientLeft+b.offsetLeft:0,d.y-=e("quirks")?b.clientTop+b.offsetTop:0);c&&(b= g.docScroll(a.ownerDocument),d.x+=b.x,d.y+=b.y);return d};g.getMarginSize=function(a,c){a=h.byId(a);var b=g.getMarginExtents(a,c||l.getComputedStyle(a)),d=a.getBoundingClientRect();return{w:d.right-d.left+b.w,h:d.bottom-d.top+b.h}};g.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var c=a.target,c=c&&c.ownerDocument||document,b=e("quirks")?c.body:c.documentElement;a.pageX=a.clientX+g.fixIeBiDiScrollLeft(b.scrollLeft||0,c);a.pageY=a.clientY+(b.scrollTop|| 0)}};return g})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(e,k,h){var l={global:e.global,doc:e.global.document||null,body:function(b){b=b||e.doc;return b.body||b.getElementsByTagName("body")[0]},setContext:function(b,m){e.global=l.global=b;e.doc=l.doc=m},withGlobal:function(b,m,d,g){var c=e.global;try{return e.global=l.global=b,l.withDoc.call(null,b.document,m,d,g)}finally{e.global=l.global=c}},withDoc:function(b,m,d,g){var c=l.doc,a=h("quirks"),f=h("ie"),u,p, n;try{e.doc=l.doc=b;e.isQuirks=h.add("quirks","BackCompat"==e.doc.compatMode,!0,!0);if(h("ie")&&(n=b.parentWindow)&&n.navigator)u=parseFloat(n.navigator.appVersion.split("MSIE ")[1])||void 0,(p=b.documentMode)&&(5!=p&&Math.floor(u)!=p)&&(u=p),e.isIE=h.add("ie",u,!0,!0);d&&"string"==typeof m&&(m=d[m]);return m.apply(d,g||[])}finally{e.doc=l.doc=c,e.isQuirks=h.add("quirks",a,!0,!0),e.isIE=h.add("ie",f,!0,!0)}}};k.mixin(e,l);return l})},"dojo/dom":function(){define(["./sniff","./_base/window"],function(e, k){if(7>=e("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(h){}var l={};e("ie")?l.byId=function(b,d){if("string"!=typeof b)return b;var g=d||k.doc,c=b&&g.getElementById(b);if(c&&(c.attributes.id.value==b||c.id==b))return c;g=g.all[b];if(!g||g.nodeName)g=[g];for(var a=0;c=g[a++];)if(c.attributes&&c.attributes.id&&c.attributes.id.value==b||c.id==b)return c}:l.byId=function(b,d){return("string"==typeof b?(d||k.doc).getElementById(b):b)||null};l.isDescendant=function(b,d){try{b=l.byId(b); for(d=l.byId(d);b;){if(b==d)return!0;b=b.parentNode}}catch(g){}return!1};e.add("css-user-select",function(b,d,g){if(!g)return!1;b=g.style;d=["Khtml","O","Moz","Webkit"];g=d.length;var c="userSelect";do if("undefined"!==typeof b[c])return c;while(g--&&(c=d[g]+"UserSelect"));return!1});var b=e("css-user-select");l.setSelectable=b?function(m,d){l.byId(m).style[b]=d?"":"none"}:function(b,d){b=l.byId(b);var g=b.getElementsByTagName("*"),c=g.length;if(d)for(b.removeAttribute("unselectable");c--;)g[c].removeAttribute("unselectable"); else for(b.setAttribute("unselectable","on");c--;)g[c].setAttribute("unselectable","on")};return l})},"dojo/dom-style":function(){define(["./sniff","./dom","./_base/window"],function(e,k,h){function l(a,c,b){c=c.toLowerCase();if("auto"==b){if("height"==c)return a.offsetHeight;if("width"==c)return a.offsetWidth}if("fontweight"==c)switch(b){case 700:return"bold";default:return"normal"}c in f||(f[c]=u.test(c));return f[c]?d(a,b):b}var b,m={};b=e("webkit")?function(a){var c;if(1==a.nodeType){var b=a.ownerDocument.defaultView; c=b.getComputedStyle(a,null);!c&&a.style&&(a.style.display="",c=b.getComputedStyle(a,null))}return c||{}}:e("ie")&&(9>e("ie")||e("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){if(1===a.nodeType){var c=a.ownerDocument.defaultView;return(c.opener?c:h.global.window).getComputedStyle(a,null)||{}}return{}};m.getComputedStyle=b;var d;d=e("ie")?function(a,c){if(!c)return 0;if("medium"==c)return 4;if(c.slice&&"px"==c.slice(-2))return parseFloat(c);var b=a.style, f=a.runtimeStyle,d=b.left,g=f.left;f.left=a.currentStyle.left;try{b.left=c,c=b.pixelLeft}catch(p){c=0}b.left=d;f.left=g;return c}:function(a,c){return parseFloat(c)||0};m.toPixelValue=d;var g=function(a,c){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(b){return c?{}:null}},c=9>e("ie")||10>e("ie")&&e("quirks")?function(a){try{return g(a).Opacity/100}catch(c){return 1}}:function(a){return b(a).opacity},a=9>e("ie")||10>e("ie")&&e("quirks")?function(c,b){""===b&&(b=1);var f=100* b;1===b?(c.style.zoom="",g(c)&&(c.style.filter=c.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(c.style.zoom=1,g(c)?g(c,1).Opacity=f:c.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+f+")",g(c,1).Enabled=!0);if("tr"==c.tagName.toLowerCase())for(f=c.firstChild;f;f=f.nextSibling)"td"==f.tagName.toLowerCase()&&a(f,b);return b}:function(a,c){return a.style.opacity=c},f={left:!0,top:!0},u=/margin|padding|width|height|max|min|offset/,p={cssFloat:1, styleFloat:1,"float":1};m.get=function(a,b){var f=k.byId(a),d=arguments.length;if(2==d&&"opacity"==b)return c(f);b=p[b]?"cssFloat"in f.style?"cssFloat":"styleFloat":b;var g=m.getComputedStyle(f);return 1==d?g:l(f,b,g[b]||f.style[b])};m.set=function(c,b,f){var d=k.byId(c),g=arguments.length,u="opacity"==b;b=p[b]?"cssFloat"in d.style?"cssFloat":"styleFloat":b;if(3==g)return u?a(d,f):d.style[b]=f;for(var e in b)m.set(c,e,b[e]);return m.getComputedStyle(d)};return m})},"dojo/mouse":function(){define(["./_base/kernel", "./on","./has","./dom","./_base/window"],function(e,k,h,l,b){function m(b,g){var c=function(a,c){return k(a,b,function(b){if(g)return g(b,c);if(!l.isDescendant(b.relatedTarget,a))return c.call(this,b)})};c.bubble=function(a){return m(b,function(c,b){var d=a(c.target),g=c.relatedTarget;if(d&&d!=(g&&1==g.nodeType&&a(g)))return b.call(d,c)})};return c}h.add("dom-quirks",b.doc&&"BackCompat"==b.doc.compatMode);h.add("events-mouseenter",b.doc&&"onmouseenter"in b.doc.createElement("div"));h.add("events-mousewheel", b.doc&&"onmousewheel"in b.doc);b=h("dom-quirks")&&h("ie")||!h("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(b,g){return b.button&g},isLeft:function(b){return b.button&1},isMiddle:function(b){return b.button&4},isRight:function(b){return b.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(b,g){return b.button==g},isLeft:function(b){return 0==b.button},isMiddle:function(b){return 1==b.button},isRight:function(b){return 2==b.button}};e.mouseButtons=b;e=h("events-mousewheel")? "mousewheel":function(b,g){return k(b,"DOMMouseScroll",function(c){c.wheelDelta=-c.detail;g.call(this,c)})};return{_eventHandler:m,enter:m("mouseover"),leave:m("mouseout"),wheel:e,isLeft:b.isLeft,isMiddle:b.isMiddle,isRight:b.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(e,k,h){e._name="browser";k.mixin(e,{isBrowser:!0,isFF:h("ff"),isIE:h("ie"),isKhtml:h("khtml"),isWebKit:h("webkit"),isMozilla:h("mozilla"),isMoz:h("mozilla"),isOpera:h("opera"),isSafari:h("safari"), isChrome:h("chrome"),isMac:h("mac"),isIos:h("ios"),isAndroid:h("android"),isWii:h("wii"),isQuirks:h("quirks"),isAir:h("air")});return h})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(e,k){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:k("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92, SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:k("mac")&&!k("air")?k("safari")?91:224:17}})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "), function(e,k,h,l,b,m,d){var g=function(){},c=Object.freeze||function(){},a=e.Deferred=function(f){function d(a){if(q)throw Error("This deferred has already been resolved");n=a;q=!0;p()}function p(){for(var a;!a&&y;){var c=y;y=y.next;if(a=c.progress==g)q=!1;var f=e?c.error:c.resolved;b("config-useDeferredInstrumentation")&&e&&k.instrumentRejected&&k.instrumentRejected(n,!!f);if(f)try{var d=f(n);d&&"function"===typeof d.then?d.then(m.hitch(c.deferred,"resolve"),m.hitch(c.deferred,"reject"),m.hitch(c.deferred, "progress")):(f=a&&void 0===d,a&&!f&&(e=d instanceof Error),c.deferred[f&&e?"reject":"resolve"](f?n:d))}catch(p){c.deferred.reject(p)}else e?c.deferred.reject(n):c.deferred.resolve(n)}}var n,q,r,s,e,w,y,A=this.promise=new h;this.isResolved=A.isResolved=function(){return 0==s};this.isRejected=A.isRejected=function(){return 1==s};this.isFulfilled=A.isFulfilled=function(){return 0<=s};this.isCanceled=A.isCanceled=function(){return r};this.resolve=this.callback=function(a){this.fired=s=0;this.results= [a,null];d(a)};this.reject=this.errback=function(a){e=!0;this.fired=s=1;b("config-useDeferredInstrumentation")&&k.instrumentRejected&&k.instrumentRejected(a,!!y);d(a);this.results=[null,a]};this.progress=function(a){for(var c=y;c;){var b=c.progress;b&&b(a);c=c.next}};this.addCallbacks=function(a,c){this.then(a,c,g);return this};A.then=this.then=function(c,b,f){var d=f==g?this:new a(A.cancel);c={resolved:c,error:b,progress:f,deferred:d};y?w=w.next=c:y=w=c;q&&p();return d.promise};var B=this;A.cancel= this.cancel=function(){if(!q){var a=f&&f(B);q||(a instanceof Error||(a=new l(a)),a.log=!1,B.reject(a))}r=!0};c(A)};m.extend(a,{addCallback:function(a){return this.addCallbacks(m.hitch.apply(e,arguments))},addErrback:function(a){return this.addCallbacks(null,m.hitch.apply(e,arguments))},addBoth:function(a){var c=m.hitch.apply(e,arguments);return this.addCallbacks(c,c)},fired:-1});a.when=e.when=d;return a})},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise", "./promise/instrumentation"],function(e,k,h,l,b){var m=Object.freeze||function(){},d=function(a,c,b,d,r){2===c&&(f.instrumentRejected&&0===a.length)&&f.instrumentRejected(b,!1,d,r);for(r=0;ra?"0"+a:a});if(c.valueOf()!==c)return d(c.valueOf(),a,f);var p=m?a+m:"",n=m?" ":"",q=m?"\n":"";if(c instanceof Array){var n=c.length,r=[];for(f=0;fb.length?"0"+b:b},this).join("")},toCss:function(b){var d=this.r+", "+this.g+", "+this.b;return(b?"rgba("+d+", "+this.a:"rgb("+d)+")"},toString:function(){return this.toCss(!0)}});b.blendColors=e.blendColors=function(m,d,g,c){var a=c||new b;h.forEach(["r","g","b","a"],function(c){a[c]=m[c]+(d[c]-m[c])*g;"a"!= c&&(a[c]=Math.round(a[c]))});return a.sanitize()};b.fromRgb=e.colorFromRgb=function(m,d){var g=m.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return g&&b.fromArray(g[1].split(/\s*,\s*/),d)};b.fromHex=e.colorFromHex=function(m,d){var g=d||new b,c=4==m.length?4:8,a=(1<>=c;g[b]=4==c?17*d:d});g.a=1;return g};b.fromArray=e.colorFromArray=function(m,d){var g=d||new b;g._set(Number(m[0]),Number(m[1]), Number(m[2]),Number(m[3]));isNaN(g.a)&&(g.a=1);return g.sanitize()};b.fromString=e.colorFromString=function(m,d){var g=b.named[m];return g&&b.fromArray(g,d)||b.fromRgb(m,d)||b.fromHex(m,d)};return b})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),function(e){return e})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(e, k,h){var l=window,b={addOnWindowUnload:function(b,d){e.windowUnloaded||h(l,"unload",e.windowUnloaded=function(){});h(l,"unload",k.hitch(b,d))},addOnUnload:function(b,d){h(l,"beforeunload",k.hitch(b,d))}};e.addOnWindowUnload=b.addOnWindowUnload;e.addOnUnload=b.addOnUnload;return b})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(e,k,h,l,b,m,d,g){e.byId=k.byId;e.isDescendant=k.isDescendant; e.setSelectable=k.setSelectable;e.getAttr=l.get;e.setAttr=l.set;e.hasAttr=l.has;e.removeAttr=l.remove;e.getNodeProp=l.getNodeProp;e.attr=function(c,a,b){return 2==arguments.length?l["string"==typeof a?"get":"set"](c,a):l.set(c,a,b)};e.hasClass=m.contains;e.addClass=m.add;e.removeClass=m.remove;e.toggleClass=m.toggle;e.replaceClass=m.replace;e._toDom=e.toDom=d.toDom;e.place=d.place;e.create=d.create;e.empty=function(c){d.empty(c)};e._destroyElement=e.destroy=function(c){d.destroy(c)};e._getPadExtents= e.getPadExtents=g.getPadExtents;e._getBorderExtents=e.getBorderExtents=g.getBorderExtents;e._getPadBorderExtents=e.getPadBorderExtents=g.getPadBorderExtents;e._getMarginExtents=e.getMarginExtents=g.getMarginExtents;e._getMarginSize=e.getMarginSize=g.getMarginSize;e._getMarginBox=e.getMarginBox=g.getMarginBox;e.setMarginBox=g.setMarginBox;e._getContentBox=e.getContentBox=g.getContentBox;e.setContentSize=g.setContentSize;e._isBodyLtr=e.isBodyLtr=g.isBodyLtr;e._docScroll=e.docScroll=g.docScroll;e._getIeDocumentElementOffset= e.getIeDocumentElementOffset=g.getIeDocumentElementOffset;e._fixIeBiDiScrollLeft=e.fixIeBiDiScrollLeft=g.fixIeBiDiScrollLeft;e.position=g.position;e.marginBox=function(c,a){return a?g.setMarginBox(c,a):g.getMarginBox(c)};e.contentBox=function(c,a){return a?g.setContentSize(c,a):g.getContentBox(c)};e.coords=function(c,a){e.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");c=k.byId(c);var b=h.getComputedStyle(c),b=g.getMarginBox(c,b),d=g.position(c,a);b.x=d.x;b.y=d.y;return b}; e.getProp=b.get;e.setProp=b.set;e.prop=function(c,a,f){return 2==arguments.length?b["string"==typeof a?"get":"set"](c,a):b.set(c,a,f)};e.getStyle=h.get;e.setStyle=h.set;e.getComputedStyle=h.getComputedStyle;e.__toPixelValue=e.toPixelValue=h.toPixelValue;e.style=function(c,a,b){switch(arguments.length){case 1:return h.get(c);case 2:return h["string"==typeof a?"get":"set"](c,a)}return h.set(c,a,b)};return e})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "), function(e,k,h,l,b,m){function d(a,c){var b=a.getAttributeNode&&a.getAttributeNode(c);return!!b&&b.specified}var g={innerHTML:1,textContent:1,className:1,htmlFor:k("ie"),value:1},c={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};e.has=function(a,b){var e=b.toLowerCase();return g[m.names[e]||b]||d(l.byId(a),c[e]||b)};e.get=function(a,b){a=l.byId(a);var e=b.toLowerCase(),p=m.names[e]||b,n=a[p];if(g[p]&&"undefined"!=typeof n)return n;if("textContent"==p)return m.get(a,p);if("href"!= p&&("boolean"==typeof n||h.isFunction(n)))return n;e=c[e]||b;return d(a,e)?a.getAttribute(e):null};e.set=function(a,f,d){a=l.byId(a);if(2==arguments.length){for(var p in f)e.set(a,p,f[p]);return a}p=f.toLowerCase();var n=m.names[p]||f,q=g[n];if("style"==n&&"string"!=typeof d)return b.set(a,d),a;if(q||"boolean"==typeof d||h.isFunction(d))return m.set(a,f,d);a.setAttribute(c[p]||f,d);return a};e.remove=function(a,b){l.byId(a).removeAttribute(c[b.toLowerCase()]||b)};e.getNodeProp=function(a,b){a=l.byId(a); var g=b.toLowerCase(),p=m.names[g]||b;if(p in a&&"href"!=p)return a[p];g=c[g]||b;return d(a,g)?a.getAttribute(g):null}})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(e,k,h,l,b,m,d,g){function c(a){var b="";a=a.childNodes;for(var f=0,d;d=a[f];f++)8!=d.nodeType&&(b=1==d.nodeType?b+c(d):b+d.nodeValue);return b}var a={},f=1,u=k._scopeName+"attrid";h.add("dom-textContent",function(a,c,b){return"textContent"in b});e.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};e.get=function(a,f){a=b.byId(a);var d=f.toLowerCase(),d=e.names[d]||f;return"textContent"==d&&!h("dom-textContent")?c(a):a[d]};e.set=function(c,n,q){c=b.byId(c);if(2==arguments.length&&"string"!=typeof n){for(var r in n)e.set(c,r,n[r]);return c}r=n.toLowerCase();r=e.names[r]||n;if("style"==r&&"string"!= typeof q)return m.set(c,q),c;if("innerHTML"==r)return h("ie")&&c.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(d.empty(c),c.appendChild(d.toDom(q,c.ownerDocument))):c[r]=q,c;if("textContent"==r&&!h("dom-textContent"))return d.empty(c),c.appendChild(c.ownerDocument.createTextNode(q)),c;if(l.isFunction(q)){var s=c[u];s||(s=f++,c[u]=s);a[s]||(a[s]={});var x=a[s][r];if(x)g.disconnect(x);else try{delete c[r]}catch(w){}q?a[s][r]=g.connect(c,r,q):c[r]=null;return c}c[r]= q;return c}})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(e,k,h,l,b,m){function d(a,c){var b=c.parentNode;b&&b.insertBefore(a,c)}function g(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(c){}for(var b;b=a.lastChild;)a.removeChild(b)}var c={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"], colgroup:["table"],col:["table","colgroup"],li:["ul"]},a=/<\s*([\w\:]+)/,f={},u=0,p="__"+k._scopeName+"ToDomId",n;for(n in c)c.hasOwnProperty(n)&&(k=c[n],k.pre="option"==n?'\x3cselect multiple\x3d"multiple"\x3e':"\x3c"+k.join("\x3e\x3c")+"\x3e",k.post="\x3c/"+k.reverse().join("\x3e\x3c/")+"\x3e");var q;8>=h("ie")&&(q=function(a){a.__dojo_html5_tested="yes";var c=r("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==c.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g, function(c){a.createElement(c)});s(c)});e.toDom=function(b,d){d=d||l.doc;var g=d[p];g||(d[p]=g=++u+"",f[g]=d.createElement("div"));8>=h("ie")&&!d.__dojo_html5_tested&&d.body&&q(d);b+="";var n=b.match(a),s=n?n[1].toLowerCase():"",g=f[g];if(n&&c[s]){n=c[s];g.innerHTML=n.pre+b+n.post;for(n=n.length;n;--n)g=g.firstChild}else g.innerHTML=b;if(1==g.childNodes.length)return g.removeChild(g.firstChild);for(s=d.createDocumentFragment();n=g.firstChild;)s.appendChild(n);return s};e.place=function(a,c,f){c=b.byId(c); "string"==typeof a&&(a=/^\s*f?0:f])}else switch(f){case "before":d(a,c);break;case "after":f=a;(g=c.parentNode)&&(g.lastChild==c?g.appendChild(f):g.insertBefore(f,c.nextSibling));break;case "replace":c.parentNode.replaceChild(a,c);break;case "only":e.empty(c);c.appendChild(a);break;case "first":if(c.firstChild){d(a,c.firstChild);break}default:c.appendChild(a)}return a}; var r=e.create=function(a,c,f,d){var g=l.doc;f&&(f=b.byId(f),g=f.ownerDocument);"string"==typeof a&&(a=g.createElement(a));c&&m.set(a,c);f&&e.place(a,f,d);return a};e.empty=function(a){g(b.byId(a))};var s=e.destroy=function(a){if(a=b.byId(a)){var c=a;a=a.parentNode;c.firstChild&&g(c);a&&(h("ie")&&a.canHaveChildren&&"removeNode"in c?c.removeNode(!1):a.removeChild(c))}}})},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(e,k,h){function l(c){if("string"==typeof c|| c instanceof String){if(c&&!m.test(c))return d[0]=c,d;c=c.split(m);c.length&&!c[0]&&c.shift();c.length&&!c[c.length-1]&&c.pop();return c}return!c?[]:k.filter(c,function(a){return a})}var b,m=/\s+/,d=[""],g={};return b={contains:function(c,a){return 0<=(" "+h.byId(c).className+" ").indexOf(" "+a+" ")},add:function(c,a){c=h.byId(c);a=l(a);var b=c.className,d,b=b?" "+b+" ":" ";d=b.length;for(var g=0,n=a.length,q;gb.indexOf(" "+q+" ")&&(b+=q+" ");dc&&(c=this.length+c);this[c]&&a.push(this[c])},this);return a._stash(this)}}); var x=c(g,q);e.query=c(g,function(a){return q(a)});x.load=function(a,b,f){d.load(a,b,function(a){f(c(a,q))})};e._filterQueryResult=x._filterResult=function(a,c,b){return new q(x.filter(a,c,b))};e.NodeList=x.NodeList=q;return x})},"dojo/selector/_loader":function(){define(["../has","require"],function(e,k){if("undefined"!==typeof document){var h=document.createElement("div");e.add("dom-qsa2.1",!!h.querySelectorAll);e.add("dom-qsa3",function(){try{return h.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e", 1==h.querySelectorAll(".TEST:empty").length}catch(b){}})}var l;return{load:function(b,m,d,g){if(g&&g.isBuild)d();else{g=k;b="default"==b?e("config-selectorEngine")||"css3":b;b="css2"==b||"lite"==b?"./lite":"css2.1"==b?e("dom-qsa2.1")?"./lite":"./acme":"css3"==b?e("dom-qsa3")?"./lite":"./acme":"acme"==b?"./acme":(g=m)&&b;if("?"==b.charAt(b.length-1)){b=b.substring(0,b.length-1);var c=!0}if(c&&(e("dom-compliant-qsa")||l))return d(l);g([b],function(a){"./lite"!=b&&(l=a);d(a)})}}}})},"dojo/selector/acme":function(){define(["../dom", "../sniff","../_base/array","../_base/lang","../_base/window"],function(e,k,h,l,b){var m=l.trim,d=h.forEach,g="BackCompat"==b.doc.compatMode,c=!1,a=function(){return!0},f=function(a){a=0<="\x3e~+".indexOf(a.slice(-1))?a+" * ":a+" ";for(var b=function(c,b){return m(a.slice(c,b))},f=[],d=-1,g=-1,n=-1,q=-1,p=-1,s=-1,r=-1,e,l="",h="",u,x=0,y=a.length,w=null,B=null,k=function(){0<=s&&(w.id=b(s,x).replace(/\\/g,""),s=-1);if(0<=r){var a=r==x?null:b(r,x);w[0>"\x3e~+".indexOf(a)?"tag":"oper"]=a;r=-1}0<=p&& (w.classes.push(b(p+1,x).replace(/\\/g,"")),p=-1)};l=h,h=a.charAt(x),xg?g=g%d&&d+g%d:0=d&&(n=g-g%d),g%=d):0>d&&(d*=-1,0=n&&(0>q||a<=q)&&a%d==g};c=g}var p=b(c);return function(a){return C(a)==p}}},I=9>k("ie")||9==k("ie")&&k("quirks")?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(f){return c?f.getAttribute(a): f[a]||f[b]}}:function(a){return function(c){return c&&c.getAttribute&&c.hasAttribute(a)}},O=function(b,f){if(!b)return a;f=f||{};var g=null;"el"in f||(g=u(g,n));"tag"in f||"*"!=b.tag&&(g=u(g,function(a){return a&&(c?a.tagName:a.tagName.toUpperCase())==b.getTag()}));"classes"in f||d(b.classes,function(a,c,b){var f=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");g=u(g,function(a){return f.test(a.className)});g.count=c});"pseudos"in f||d(b.pseudos,function(a){var c=a.name;G[c]&&(g=u(g,G[c](c,a.value)))});"attrs"in f||d(b.attrs,function(a){var c,b=a.attr;a.type&&r[a.type]?c=r[a.type](b,a.matchFor):b.length&&(c=I(b));c&&(g=u(g,c))});"id"in f||b.id&&(g=u(g,function(a){return!!a&&a.id==b.id}));g||"default"in f||(g=a);return g},N=function(a){return function(c,b,f){for(;c=c[x];)if(!s||n(c)){(!f||ia(c,f))&&a(c)&&b.push(c);break}return b}},T=function(a){return function(c,b,f){for(c=c[x];c;){if(y(c)){if(f&&!ia(c,f))break;a(c)&&b.push(c)}c=c[x]}return b}},P=function(c,b){var f=function(a){var c=[];try{c=Array.prototype.slice.call(a)}catch(b){for(var f= 0,d=a.length;f~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g,U=function(a,c,b,f){return b?(c?c+" ":"")+b+(f?" "+f:""):a},ka=/([^[]*)([^\]]*])?/g,S=function(a,c,b){return c.replace(ba,U)+(b||"")}, aa=function(a,c){a=a.replace(ka,S);if(Z){var b=V[a];if(b&&!c)return b}if(b=H[a])return b;var b=a.charAt(0),f=-1==a.indexOf(" ");0<=a.indexOf("#")&&f&&(c=!0);if(Z&&!c&&-1=="\x3e~+".indexOf(b)&&(!k("ie")||-1==a.indexOf(":"))&&!(g&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf(":checked")&&-1==a.indexOf("|\x3d")){var d=0<="\x3e~+".indexOf(a.charAt(a.length-1))?a+" *":a;return V[a]=function(c){if(9==c.nodeType||f)try{var b=c.querySelectorAll(d);b[R]=!0;return b}catch(g){}return aa(a,!0)(c)}}var n= a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return H[a]=2>n.length?W(a):function(a){for(var c=0,b=[],f;f=n[c++];)b=b.concat(W(f)(a));return b}},ha=0,Aa=k("ie")?function(a){return c?a.getAttribute("_uid")||a.setAttribute("_uid",++ha)||ha:a.uniqueID}:function(a){return a._uid||(a._uid=++ha)},ia=function(a,c){if(!c)return 1;var b=Aa(a);return!c[b]?c[b]=1:0},qa=function(a){if(a&&a.nozip)return a;if(!a||!a.length)return[];if(2>a.length)return[a[0]];var b=[];ha++;var f,d;if(k("ie")&&c){var g= ha+"";for(f=0;f= B&&(B=0,s.ioPublish&&(e.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&e.publish("/dojo/io/stop"))},B=0;p.after(n,"_onAction",function(){B-=1});p.after(n,"_onInFlight",A);e._ioCancelAll=n.cancelAll;e._ioNotifyStart=function(a){s.ioPublish&&(e.publish&&!1!==a.ioArgs.args.ioPublish)&&(B||e.publish("/dojo/io/start"),B+=1,e.publish("/dojo/io/send",[a]))};e._ioWatch=function(c,b,f,d){c.ioArgs.options=c.ioArgs.args;a.mixin(c,{response:c.ioArgs,isValid:function(a){return b(c)},isReady:function(a){return f(c)}, handleResponse:function(a){return d(c)}});n(c);A(c)};e._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};e.xhr=function(a,c,b){var f,d=e._ioSetArgs(c,function(a){f&&f.cancel()},w,y),g=d.ioArgs;"postData"in c?g.query=c.postData:"putData"in c?g.query=c.putData:"rawBody"in c?g.query=c.rawBody:(2a?(m=l(d),d=""):(m=l(d.slice(0,a)),d=l(d.slice(a+1)));"string"==typeof b[m]&&(b[m]=[b[m]]);e.isArray(b[m])?b[m].push(d):b[m]=d}return b}}})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query", "./json"],function(e,k,h,l){var b={fieldToObject:function(b){var d=null;if(b=k.byId(b)){var g=b.name,c=(b.type||"").toLowerCase();if(g&&c&&!b.disabled)if("radio"==c||"checkbox"==c)b.checked&&(d=b.value);else if(b.multiple){d=[];for(b=[b.firstChild];b.length;)for(g=b.pop();g;g=g.nextSibling)if(1==g.nodeType&&"option"==g.tagName.toLowerCase())g.selected&&d.push(g.value);else{g.nextSibling&&b.push(g.nextSibling);g.firstChild&&b.push(g.firstChild);break}}else d=b.value}return d},toObject:function(m){var d= {};m=k.byId(m).elements;for(var g=0,c=m.length;g"file|submit|image|reset|button".indexOf(h)&&!a.disabled){var p=d,n=f,a=b.fieldToObject(a);if(null!==a){var q=p[n];"string"==typeof q?p[n]=[q,a]:e.isArray(q)?q.push(a):p[n]=a}"image"==h&&(d[f+".x"]=d[f+".y"]=d[f].x=d[f].y=0)}}return d},toQuery:function(e){return h.objectToQuery(b.toObject(e))},toJson:function(e,d){return l.stringify(b.toObject(e),null,d?4:0)}};return b})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "), function(e,k,h,l,b,m){function d(){for(var b=+new Date,d=0,p;da||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(e){return e("RequestError",function(e,h){this.response=h})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(e,k){return e("RequestTimeoutError",null,k,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError", "./watch","./handlers","./util","../has"],function(e,k,h,l,b){function m(a,c){var b=a.xhr;a.status=a.xhr.status;try{a.text=b.responseText}catch(f){}"xml"===a.options.handleAs&&(a.data=b.responseXML);if(!c)try{h(a)}catch(d){c=d}var g;if(c)this.reject(c);else{try{h(a)}catch(n){g=n}l.checkStatus(b.status)?g?this.reject(g):this.resolve(a):(c=g?new e("Unable to load "+a.url+" status: "+b.status+" and an error in handleAs: transformation of response",a):new e("Unable to load "+a.url+" status: "+b.status, a),this.reject(c))}}function d(a){return this.xhr.getResponseHeader(a)}function g(r,s,h){var A=b("native-formdata")&&s&&s.data&&s.data instanceof FormData,B=l.parseArgs(r,l.deepCreate(q,s),A);r=B.url;s=B.options;var C,F=l.deferred(B,p,a,f,m,function(){C&&C()}),K=B.xhr=g._create();if(!K)return F.cancel(new e("XHR was not created")),h?F:F.promise;B.getHeader=d;u&&(C=u(K,F,B));var G=s.data,I=!s.sync,O=s.method;try{K.open(O,r,I,s.user||n,s.password||n);s.withCredentials&&(K.withCredentials=s.withCredentials); b("native-response-type")&&s.handleAs in c&&(K.responseType=c[s.handleAs]);var N=s.headers;r=A?!1:"application/x-www-form-urlencoded";if(N)for(var T in N)"content-type"===T.toLowerCase()?r=N[T]:N[T]&&K.setRequestHeader(T,N[T]);r&&!1!==r&&K.setRequestHeader("Content-Type",r);(!N||!("X-Requested-With"in N))&&K.setRequestHeader("X-Requested-With","XMLHttpRequest");l.notify&&l.notify.emit("send",B,F.promise.cancel);K.send(G)}catch(P){F.reject(P)}k(F);K=null;return h?F:F.promise}b.add("native-xhr",function(){return"undefined"!== typeof XMLHttpRequest});b.add("dojo-force-activex-xhr",function(){return b("activex")&&"file:"===window.location.protocol});b.add("native-xhr2",function(){if(b("native-xhr")&&!b("dojo-force-activex-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});b.add("native-formdata",function(){return"undefined"!==typeof FormData});b.add("native-response-type",function(){return b("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType}); b.add("native-xhr2-blob",function(){if(b("native-response-type")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var c=a.responseType;a.abort();return"blob"===c}});var c={blob:b("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"},a,f,u,p;b("native-xhr2")?(a=function(a){return!this.isFulfilled()},p=function(a,c){c.xhr.abort()},u=function(a,c,b){function f(a){c.handleResponse(b)}function d(a){a=new e("Unable to load "+b.url+" status: "+a.target.status, b);c.handleResponse(b,a)}function g(a){a.lengthComputable?(b.loaded=a.loaded,b.total=a.total,c.progress(b)):3===b.xhr.readyState&&(b.loaded="loaded"in a?a.loaded:a.position,c.progress(b))}a.addEventListener("load",f,!1);a.addEventListener("error",d,!1);a.addEventListener("progress",g,!1);return function(){a.removeEventListener("load",f,!1);a.removeEventListener("error",d,!1);a.removeEventListener("progress",g,!1);a=null}}):(a=function(a){return a.xhr.readyState},f=function(a){return 4===a.xhr.readyState}, p=function(a,c){var b=c.xhr,f=typeof b.abort;("function"===f||"object"===f||"unknown"===f)&&b.abort()});var n,q={data:null,query:null,sync:!1,method:"GET"};g._create=function(){throw Error("XMLHTTP not available");};if(b("native-xhr")&&!b("dojo-force-activex-xhr"))g._create=function(){return new XMLHttpRequest};else if(b("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),g._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(r){try{new ActiveXObject("Microsoft.XMLHTTP"),g._create= function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(s){}}l.addCommonMethods(g);return g})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(e,k,h,l){function b(c){var b=a[c.options.handleAs];c.data=b?b(c):c.data||c.text;return c}l.add("activex","undefined"!==typeof ActiveXObject);l.add("dom-parser",function(a){return"DOMParser"in a});var m;if(l("activex")){var d=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0", "MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],g;m=function(a){function c(a){try{var f=new ActiveXObject(a);f.async=!1;f.loadXML(n);b=f;g=a}catch(d){return!1}return!0}var b=a.data,n=a.text;b&&(l("dom-qsa2.1")&&!b.querySelectorAll&&l("dom-parser"))&&(b=(new DOMParser).parseFromString(n,"application/xml"));if(!b||!b.documentElement)(!g||!c(g))&&h.some(d,c);return b}}var c=function(a){return!l("native-xhr2-blob")&&"blob"===a.options.handleAs&&"undefined"!==typeof Blob?new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")}): a.xhr.response},a={javascript:function(a){return k.eval(a.text||"")},json:function(a){return e.parse(a.text||null)},xml:m,blob:c,arraybuffer:c,document:c};b.register=function(c,b){a[c]=b};return b})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),function(e,k,h,l,b,m,d,g,c){var a=h.mixin,f={},u=f._Line=function(a,c){this.start=a;this.end=c};u.prototype.getValue=function(a){return(this.end-this.start)*a+this.start}; var p=f.Animation=function(c){a(this,c);h.isArray(this.curve)&&(this.curve=new u(this.curve[0],this.curve[1]))};p.prototype=new l;h.extend(p,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,c=this.easing;return c?c(a):a},_fire:function(a,c){var b=c||[];if(this[a])if(k.debugAtAllCosts)this[a].apply(this,b);else try{this[a].apply(this,b)}catch(f){console.error("exception in animation handler for:",a),console.error(f)}return this},play:function(a, c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var b=a||this.delay,f=h.hitch(this,"_play",c);if(0this._percent?this._startTimer():(this._active=!1,0=n&&(clearInterval(q),q=null,n=0)}});var s=d("ie")?function(a){var b=a.style;!b.width.length&&"auto"==c.get(a,"width")&&(b.width="auto")}:function(){};f._fade=function(b){b.node=g.byId(b.node);var d=a({properties:{}},b);b=d.properties.opacity={};b.start=!("start"in d)?function(){return+c.get(d.node,"opacity")||0}:d.start;b.end=d.end; b=f.animateProperty(d);m.after(b,"beforeBegin",h.partial(s,d.node),!0);return b};f.fadeIn=function(c){return f._fade(a({end:1},c))};f.fadeOut=function(c){return f._fade(a({end:0},c))};f._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var x=function(a){this._properties=a;for(var c in a){var f=a[c];f.start instanceof b&&(f.tempColor=new b)}};x.prototype.getValue=function(a){var c={},f;for(f in this._properties){var d=this._properties[f],g=d.start;g instanceof b?c[f]=b.blendColors(g, d.end,a,d.tempColor).toCss():h.isArray(g)||(c[f]=(d.end-g)*a+g+("opacity"!=f?d.units||"px":0))}return c};f.animateProperty=function(f){var d=f.node=g.byId(f.node);f.easing||(f.easing=e._defaultEasing);f=new p(f);m.after(f,"beforeBegin",h.hitch(f,function(){var f={},g;for(g in this.properties){if("width"==g||"height"==g)this.node.display="block";var n=this.properties[g];h.isFunction(n)&&(n=n(d));n=f[g]=a({},h.isObject(n)?n:{end:n});h.isFunction(n.start)&&(n.start=n.start(d));h.isFunction(n.end)&&(n.end= n.end(d));var q=0<=g.toLowerCase().indexOf("color"),p=function(a,b){var f={height:a.offsetHeight,width:a.offsetWidth}[b];if(void 0!==f)return f;f=c.get(a,b);return"opacity"==b?+f:q?f:parseFloat(f)};"end"in n?"start"in n||(n.start=p(d,g)):n.end=p(d,g);q?(n.start=new b(n.start),n.end=new b(n.end)):n.start="opacity"==g?+n.start:parseFloat(n.start)}this.curve=new x(f)}),!0);m.after(f,"onAnimate",h.hitch(c,"set",f.node),!0);return f};f.anim=function(a,c,b,d,g,n){return f.animateProperty({node:a,duration:b|| p.prototype.duration,properties:c,easing:d,onEnd:g}).play(n||0)};a(e,f);e._Animation=p;return f})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(e,k,h,l,b,m,d){var g=function(a){return a.replace(/\./g,"/")},c=/\/\/>>built/,a=[],f=[],u=function(c,b,g){a.push(g);d.forEach(c.split(","),function(a){a=N(a,b.module);f.push(a);T(a)});p()},p=function(){var c,b;for(b in I)if(c=I[b],void 0===c.noReqPluginCheck&&(c.noReqPluginCheck=/loadInit\!/.test(b)|| /require\!/.test(b)?1:0),!c.executed&&!c.noReqPluginCheck&&c.injected==A)return;V(function(){var c=a;a=[];d.forEach(c,function(a){a(1)})})},n=function(a,c,b){var f=/\(|\)/g,d=1;for(f.lastIndex=c;(c=f.exec(a))&&!(d=")"==c[0]?d-1:d+1,0==d););if(0!=d)throw"unmatched paren around character "+f.lastIndex+" in: "+a;return[e.trim(a.substring(b,f.lastIndex))+";\n",f.lastIndex]},q=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,r=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg, s=/(^|\s)(require|define)\s*\(/m,x=function(a,c){var b,f,d,g=[],p=[];b=[];for(c=c||a.replace(q,function(a){r.lastIndex=s.lastIndex=0;return r.test(a)||s.test(a)?"":a});b=r.exec(c);)f=r.lastIndex,d=f-b[0].length,f=n(c,f,d),"loadInit"==b[2]?g.push(f[0]):p.push(f[0]),r.lastIndex=f[1];b=g.concat(p);return b.length||!s.test(c)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),b.join(""),b]:0},w=h.initSyncLoader(u,p,function(a,f){var d,g,n=[],q=[];if(c.test(f)||!(d=x(f)))return 0;g= a.mid+"-*loadInit";for(var p in N("dojo",a).result.scopeMap)n.push(p),q.push('"'+p+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+g+"',{\n\tnames:"+b.stringify(n)+",\n\tdef:function("+n.join(",")+"){"+d[1]+"}});\n\ndefine("+b.stringify(n.concat(["dojo/loadInit!"+g]))+", function("+n.join(",")+"){\n"+d[0]+"});"}),y=w.sync,A=w.requested,B=w.arrived,C=w.nonmodule,F=w.executing,K=w.executed,G=w.syncExecStack,I=w.modules,O=w.execQ,N=w.getModule,T=w.injectModule,P=w.setArrived,Q=w.signal,L=w.finishExec, J=w.execModule,H=w.getLegacyMode,V=w.guardCheckComplete,u=w.dojoRequirePlugin;e.provide=function(a){var c=G[0],b=m.mixin(N(g(a),h.module),{executed:F,result:m.getObject(a,!0)});P(b);c&&(c.provides||(c.provides=[])).push(function(){b.result=m.getObject(a);delete b.provides;b.executed!==K&&L(b)});return b.result};k.add("config-publishRequireResult",1,0,0);e.require=function(a,c){var b=function(a,c){var b=N(g(a),h.module);if(G.length&&G[0].finish)G[0].finish.push(a);else{if(b.executed)return b.result; c&&(b.result=C);var f=H();T(b);f=H();b.executed!==K&&b.injected===B&&w.guardCheckComplete(function(){J(b)});if(b.executed)return b.result;f==y?b.cjs?O.unshift(b):G.length&&(G[0].finish=[a]):O.push(b)}}(a,c);k("config-publishRequireResult")&&(!m.exists(a)&&void 0!==b)&&m.setObject(a,b);return b};e.loadInit=function(a){a()};e.registerModulePath=function(a,c){var b={};b[a.replace(/\./g,"/")]=c;h({paths:b})};e.platformRequire=function(a){a=(a.common||[]).concat(a[e._name]||a["default"]||[]);for(var c;a.length;)m.isArray(c= a.shift())?e.require.apply(e,c):e.require(c)};e.requireIf=e.requireAfterIf=function(a,c,b){a&&e.require(c,b)};e.requireLocalization=function(a,c,b){h(["../i18n"],function(f){f.getLocalization(a,c,b)})};return{extractLegacyApiApplications:x,require:u,loadInit:function(a,c,b){c([a],function(a){c(a.names,function(){for(var f="",d=[],n=0;np&&(g.l+=g.w-p,g.w=p,f.resize(g));a=a.w-q-g.w-c.minSize;n.w>a&&(n.w=p,d.resize(n));f.set("maxSize",p);d.set("maxSize",a);this.inherited(arguments)},showModelBrowser:!1,_setShowModelBrowserAttr:function(a){var c=this.modelBrowser;this._started&& this.showModelBrowser!==a&&(a?this.addChild(c):this.removeChild(c),this._set("showModelBrowser",a),this.resize())},showInformer:!1,_setShowInformerAttr:function(a){var c=this.informer;this._started&&(this.showInformer!==a&&(a?this.addChild(c):this.removeChild(c),this.resize()),this._set("showInformer",a))},getElementViewer:function(){return this.modelViewer.selectedDiagramTab.lightBox},getDiagram:function(a){return this.data.getDiagram(a)},getElement:function(a){return this.data.getElement(a)},isElement:function(a){return this.data.isElement(a)}, isDiagram:function(a){return this.data.isDiagram(a)},getSelectedDiagram:function(){return this.modelViewer.selectedDiagram},getSelectedElement:function(){return this.modelViewer.selectedDiagramTab.modelGraphicsPane.selectedElement},isDiagramInView:function(a){return a===this.getSelectedDiagram()&&"ViewAllTab"!==this.modelViewer.selectedTab.role},open:function(a,c){var b=this,f=b.id,g=b._deferred,q,p;p=c&&c.nohash;if(g)g.then(function(){b.open(a,c)});else{g=new k;g.id=Math.round(1E3*Math.random()); b._deferred=g;q=d.subscribe(f+"/postOpen",function(c){c===a&&(b._deferred=void 0,q.remove(),g.resolve())});setTimeout(function(){g.isFulfilled()||(b._deferred=void 0,g.reject("timed out"))},5E3);if(!p&&(p=b.isDiagram(a)?f+":"+a.hid.toString():b.getElementViewer().hasContentToShow(a)?f+":"+a.eid:null)&&p!==n())b._ignoreHashChange=!0,n(p);b.emit("open",a);d.publish(f+"/open",a,c)}return g},close:function(a){var c=this.id,b=new k,f,g;if(this.isDiagram(a)){f=this.isDiagramInView(a)?c+"/postOpen":c+"/postClose"; g=d.subscribe(f,function(){g.remove();b.resolve()});try{d.publish(c+"/close",a)}catch(n){g.remove(),b.reject(n)}}else d.publish(c+"/close",a),b.resolve();return b},highlightAndFade:function(c){var b=this.userHighlighter,f,d;if(this.isElement(c))if(b.unhighlightAll(),b.highlight(c,"foo: foo"),f=b.getStylingLayer(c.diagram),d=f.styleElements.get(c.backing.sid).node,a("trident"))var g=new Date,n=setInterval(function(){var a=(new Date-g)/1E3;1I+1E3)&&f.call(this,a)});return{remove:function(){d.remove();g.remove()}}}:function(c,b){return m(c,a,b)}}function u(a){do if(void 0!==a.dojoClick)return a;while(a=a.parentNode)}function p(c,b,f){if(!g.isRight(c)){var d=u(c.target);if(w=!c.target.disabled&&d&&d.dojoClick)if(A=(y="useTarget"==w)?d:c.target,y&&c.preventDefault(),B=c.changedTouches?c.changedTouches[0].pageX-a.global.pageXOffset: c.clientX,C=c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY,F=("object"==typeof w?w.x:"number"==typeof w?w:0)||4,K=("object"==typeof w?w.y:"number"==typeof w?w:0)||4,!x){x=!0;var n=function(c){w=y?h.isDescendant(a.doc.elementFromPoint(c.changedTouches?c.changedTouches[0].pageX-a.global.pageXOffset:c.clientX,c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY),A):w&&(c.changedTouches?c.changedTouches[0].target:c.target)==A&&Math.abs((c.changedTouches? c.changedTouches[0].pageX-a.global.pageXOffset:c.clientX)-B)<=F&&Math.abs((c.changedTouches?c.changedTouches[0].pageY-a.global.pageYOffset:c.clientY)-C)<=K};a.doc.addEventListener(b,function(a){g.isRight(a)||(n(a),y&&a.preventDefault())},!0);a.doc.addEventListener(f,function(a){if(!g.isRight(a)&&(n(a),w)){G=(new Date).getTime();var c=y?A:a.target;"LABEL"===c.tagName&&(c=h.byId(c.getAttribute("for"))||c);var b=a.changedTouches?a.changedTouches[0]:a,f=function(c){var f=document.createEvent("MouseEvents"); f._dojo_click=!0;f.initMouseEvent(c,!0,!0,a.view,a.detail,b.screenX,b.screenY,b.clientX,b.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);return f},d=f("mousedown"),q=f("mouseup"),p=f("click");setTimeout(function(){m.emit(c,"mousedown",d);m.emit(c,"mouseup",q);m.emit(c,"click",p);G=(new Date).getTime()},0)}},!0);c=function(c){a.doc.addEventListener(c,function(a){var b=a.target;w&&(!a._dojo_click&&(new Date).getTime()<=G+1E3&&!("INPUT"==b.tagName&&l.contains(b,"dijitOffScreen")))&&(a.stopPropagation(), a.stopImmediatePropagation&&a.stopImmediatePropagation(),"click"==c&&(("INPUT"!=b.tagName||"radio"==b.type&&(l.contains(b,"dijitCheckBoxInput")||l.contains(b,"mblRadioButton"))||"checkbox"==b.type&&(l.contains(b,"dijitCheckBoxInput")||l.contains(b,"mblCheckBox")))&&"TEXTAREA"!=b.tagName&&"AUDIO"!=b.tagName&&"VIDEO"!=b.tagName)&&a.preventDefault())},!0)};c("click");c("mousedown");c("mouseup")}}}var n=5>d("ios"),q=d("pointer-events")||d("MSPointer"),r=function(){var a={},c;for(c in{down:1,move:1,up:1, cancel:1,over:1,out:1})a[c]=d("MSPointer")?"MSPointer"+c.charAt(0).toUpperCase()+c.slice(1):"pointer"+c;return a}(),s=d("touch-events"),x,w,y=!1,A,B,C,F,K,G,I,O;d("touch")&&(q?c(function(){a.doc.addEventListener(r.down,function(a){p(a,r.move,r.up)},!0)}):c(function(){function c(a){var f=b.delegate(a,{bubbles:!0});6<=d("ios")&&(f.touches=a.touches,f.altKey=a.altKey,f.changedTouches=a.changedTouches,f.ctrlKey=a.ctrlKey,f.metaKey=a.metaKey,f.shiftKey=a.shiftKey,f.targetTouches=a.targetTouches);return f} O=a.body();a.doc.addEventListener("touchstart",function(a){I=(new Date).getTime();var c=O;O=a.target;m.emit(c,"dojotouchout",{relatedTarget:O,bubbles:!0});m.emit(O,"dojotouchover",{relatedTarget:c,bubbles:!0});p(a,"touchmove","touchend")},!0);m(a.doc,"touchmove",function(b){I=(new Date).getTime();var f=a.doc.elementFromPoint(b.pageX-(n?0:a.global.pageXOffset),b.pageY-(n?0:a.global.pageYOffset));f&&(O!==f&&(m.emit(O,"dojotouchout",{relatedTarget:f,bubbles:!0}),m.emit(f,"dojotouchover",{relatedTarget:O, bubbles:!0}),O=f),m.emit(f,"dojotouchmove",c(b))||b.preventDefault())});m(a.doc,"touchend",function(b){I=(new Date).getTime();var f=a.doc.elementFromPoint(b.pageX-(n?0:a.global.pageXOffset),b.pageY-(n?0:a.global.pageYOffset))||a.body();m.emit(f,"dojotouchend",c(b))})}));k={press:f("mousedown","touchstart",r.down),move:f("mousemove","dojotouchmove",r.move),release:f("mouseup","dojotouchend",r.up),cancel:f(g.leave,"touchcancel",q?r.cancel:null),over:f("mouseover","dojotouchover",r.over),out:f("mouseout", "dojotouchout",r.out),enter:g._eventHandler(f("mouseover","dojotouchover",r.over)),leave:g._eventHandler(f("mouseout","dojotouchout",r.out))};return e.touch=k})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable require ./registry".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A,B,C){function F(a){return function(c){g[c?"set":"remove"](this.domNode,a,c);this._set(a,c)}}p.add("dijit-legacy-requires",!n.isAsync);p("dijit-legacy-requires")&&s(0,function(){e(["dijit/_base/manager"])});var K={};return m("dijit._WidgetBase",[x,A],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:F("lang"),dir:"",_setDirAttr:F("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"", srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",a)},attributeMap:{},_blankGif:l.blankGif||e.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var c=a.prototype,b=a._setterAttrs=[],a=a._onMap={},f;for(f in c.attributeMap)b.push(f);for(f in c)/^on/.test(f)&&(a[f.substring(2).toLowerCase()]=f),/^_set[A-Z](.*)Attr$/.test(f)&&(f=f.charAt(4).toLowerCase()+f.substr(5, f.length-9),(!c.attributeMap||!(f in c.attributeMap))&&b.push(f))}},postscript:function(a,c){this.create(a,c)},create:function(a,c){this._introspect();this.srcNodeRef=d.byId(c);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&(this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id)&&(this.id=this.srcNodeRef.id);a&&(this.params=a,q.mixin(this,a));this.postMixInProperties();this.id||(this.id=C.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument= this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=y.body(this.ownerDocument);C.add(this);this.buildRendering();var b;if(this.domNode){this._applyAttributes();var f=this.srcNodeRef;f&&(f.parentNode&&this.domNode!==f)&&(f.parentNode.replaceChild(this.domNode,f),b=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();b&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},c;for(c in this.params||{})a[c]=this._get(c); k.forEach(this.constructor._setterAttrs,function(c){if(!(c in a)){var b=this._get(c);b&&this.set(c,b)}},this);for(c in a)this.set(c,a[c])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(k.map(a,function(a){return a+"Rtl"})));c.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started= !0,k.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&q.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function c(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a)}this._beingDestroyed=!0;this.uninitialize();k.forEach(this._connects,q.hitch(this,"disconnect"));k.forEach(this._supportingWidgets,c);this.domNode&&k.forEach(C.findWidgets(this.domNode, this.containerNode),c);this.destroyRendering(a);C.remove(this.id);this._destroyed=!0},destroyRendering:function(c){this.bgIframe&&(this.bgIframe.destroy(c),delete this.bgIframe);this.domNode&&(c?g.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(c||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){k.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var c= this.domNode;q.isObject(a)?u.set(c,a):c.style.cssText=c.style.cssText?c.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(a,b,f){f=3<=arguments.length?f:this.attributeMap[a];k.forEach(q.isArray(f)?f:[f],function(f){var d=this[f.node||f||"domNode"];switch(f.type||"attribute"){case "attribute":q.isFunction(b)&&(b=q.hitch(this,b));f=f.attribute?f.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;d.tagName?g.set(d,f,b):d.set(f,b);break;case "innerText":d.innerHTML="";d.appendChild(this.ownerDocument.createTextNode(b)); break;case "textContent":d.textContent=b;break;case "innerHTML":d.innerHTML=b;break;case "class":c.replace(d,b,this[a]);break;case "toggleClass":c.toggle(d,f.className||a,b)}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this._get(a)},set:function(a,c){if("object"===typeof a){for(var b in a)this.set(b,a[b]);return this}b=this._getAttrNames(a);var f=this[b.s];if(q.isFunction(f))var d=f.apply(this,Array.prototype.slice.call(arguments,1));else{var f=this.focusNode&& !q.isFunction(this.focusNode)?"focusNode":"domNode",g=this[f]&&this[f].tagName,n;if(n=g)if(!(n=K[g])){n=this[f];var p={},s;for(s in n)p[s.toLowerCase()]=!0;n=K[g]=p}s=n;b=a in this.attributeMap?this.attributeMap[a]:b.s in this?this[b.s]:s&&b.l in s&&"function"!=typeof c||/^aria-|^data-|^role$/.test(a)?f:null;null!=b&&this._attrToDom(a,c,b);this._set(a,c)}return d||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];var b=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length- 1).toUpperCase()});return c[a]={n:a+"Node",s:"_set"+b+"Attr",g:"_get"+b+"Attr",l:b.toLowerCase()}},_set:function(a,c){var b=this[a];this[a]=c;if(this._created&&!(b===c||b!==b&&c!==c))this._watchCallbacks&&this._watchCallbacks(a,b,c),this.emit("attrmodified-"+a,{detail:{prevValue:b,newValue:c}})},_get:function(a){return this[a]},emit:function(a,c,b){c=c||{};void 0===c.bubbles&&(c.bubbles=!0);void 0===c.cancelable&&(c.cancelable=!0);c.detail||(c.detail={});c.detail.widget=this;var f,d=this["on"+a]; d&&(f=d.apply(this,b?b:[c]));this._started&&!this._beingDestroyed&&r.emit(this.domNode,a.toLowerCase(),c);return f},on:function(a,c){var b=this._onMap(a);return b?h.after(this,b,c,!0):this.own(r(this.domNode,a,c))[0]},_onMap:function(a){var c=this.constructor,b=c._onMap;if(!b){var b=c._onMap={},f;for(f in c.prototype)/^on/.test(f)&&(b[f.replace(/^on/,"").toLowerCase()]=f)}return b["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+ "]"},getChildren:function(){return this.containerNode?C.findWidgets(this.containerNode):[]},getParent:function(){return C.getEnclosingWidget(this.domNode.parentNode)},connect:function(a,c,f){return this.own(b.connect(a,c,this,f))[0]},disconnect:function(a){a.remove()},subscribe:function(a,c){return this.own(w.subscribe(a,q.hitch(this,c)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():f.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&& "none"!=u.get(this.domNode,"display")},placeAt:function(c,b){var f=!c.tagName&&C.byId(c);f&&f.addChild&&(!b||"number"===typeof b)?f.addChild(this,b):(f=f&&"domNode"in f?f.containerNode&&!/after|before|replace/.test(b||"")?f.containerNode:f.domNode:d.byId(c,this.ownerDocument),a.place(this.domNode,f,b),!this._started&&(this.getParent()||{})._started&&this.startup());return this},defer:function(a,c){var b=setTimeout(q.hitch(this,function(){b&&(b=null,this._destroyed||q.hitch(this,a)())}),c||0);return{remove:function(){b&& (clearTimeout(b),b=null);return null}}}})})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(e,k,h,l){return e("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(b){var e=this._attrPairNames;return e[b]?e[b]:e[b]={s:"_"+b+"Setter",g:"_"+b+"Getter"}},postscript:function(b){b&&this.set(b)},_get:function(b,e){return"function"===typeof this[e.g]?this[e.g]():this[b]},get:function(b){return this._get(b,this._getAttrNames(b))},set:function(b, e){if("object"===typeof b){for(var d in b)b.hasOwnProperty(d)&&"_watchCallbacks"!=d&&this.set(d,b[d]);return this}d=this._getAttrNames(b);var g=this._get(b,d);d=this[d.s];var c;"function"===typeof d?c=d.apply(this,Array.prototype.slice.call(arguments,1)):this[b]=e;if(this._watchCallbacks){var a=this;l(c,function(){a._watchCallbacks(b,g,e)})}return this},_changeAttrValue:function(b,e){var d=this.get(b);this[b]=e;this._watchCallbacks&&this._watchCallbacks(b,d,e);return this},watch:function(b,e){var d= this._watchCallbacks;if(!d)var g=this,d=this._watchCallbacks=function(a,c,b,n){var q=function(d){if(d){d=d.slice();for(var n=0,q=d.length;n=n||7==n&&e?!1:k("position-fixed-support")&&"fixed"==m.get(a,"position").toLowerCase()},A=this,B=function(a,c,b){"BODY"==a.tagName||"HTML"==a.tagName?A.get(a.ownerDocument).scrollBy(c,b):(c&&(a.scrollLeft+=c),b&&(a.scrollTop+=b))};if(!q(c))for(;y;){y==d&&(y=f);var C=b.position(y),F=q(y),K="rtl"==m.getComputedStyle(y).direction.toLowerCase();if(y==f){C.w=s;C.h=x;if(f==g&&(n||k("trident"))&& K)C.x+=f.offsetWidth-C.w;C.x=0;C.y=0}else{var G=b.getPadBorderExtents(y);C.w-=G.w;C.h-=G.h;C.x+=G.l;C.y+=G.t;var I=y.clientWidth,O=C.w-I;0C.y&&(C.h+=C.y,C.y=0),0>C.x&&(C.w+=C.x,C.x=0),C.y+C.h>x&&(C.h=x-C.y),C.x+C.w>s&&(C.w=s-C.x));var N=w.x-C.x,T=w.y-C.y,P=N+w.w-C.w,Q=T+w.h-C.h,L,J;if(0y.offsetHeight)){L=Math[0>N?"max":"min"](N,P);if(K&& (8==n&&!e||5<=k("trident")))L=-L;J=y.scrollLeft;B(y,L,0);L=y.scrollLeft-J;w.x-=L}if(0y.offsetHeight))L=Math.ceil(Math[0>T?"max":"min"](T,Q)),J=y.scrollTop,B(y,0,L),L=y.scrollTop-J,w.y-=L;y=y!=f&&!F&&y.parentNode}}}catch(H){console.error("scrollIntoView: "+H),c.scrollIntoView(!1)}}};e.setObject("dojo.window",g);return g})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(e, k,h,l,b,m,d){var g={_isElementShown:function(c){var a=l.get(c);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=h.get(c,"type")},hasDefaultTabStop:function(c){switch(c.nodeName.toLowerCase()){case "a":return h.has(c,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var a;try{var b=c.contentDocument;if("designMode"in b&&"on"==b.designMode)return!0;a=b.body}catch(d){try{a=c.contentWindow.document.body}catch(g){return!1}}return a&& ("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==c.contentEditable}},effectiveTabIndex:function(c){return h.get(c,"disabled")?void 0:h.has(c,"tabIndex")?+h.get(c,"tabIndex"):g.hasDefaultTabStop(c)?0:void 0},isTabNavigable:function(c){return 0<=g.effectiveTabIndex(c)},isFocusable:function(c){return-1<=g.effectiveTabIndex(c)},_getTabNavigable:function(c){function a(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&& a.name&&a.name.toLowerCase()}var b,d,p,n,q,e,s={},l=g._isElementShown,k=g.effectiveTabIndex,y=function(c){for(c=c.firstChild;c;c=c.nextSibling)if(!(1!=c.nodeType||9>=m("ie")&&"HTML"!==c.scopeName||!l(c))){var g=k(c);if(0<=g){if(0==g)b||(b=c),d=c;else if(0=e)e=g,q=c}g=a(c);h.get(c,"checked")&&g&&(s[g]=c)}"SELECT"!=c.nodeName.toUpperCase()&&y(c)}};l(c)&&y(c);return{first:s[a(b)]||b,last:s[a(d)]||d,lowest:s[a(p)]||p,highest:s[a(q)]||q}},getFirstInTabbingOrder:function(c, a){var b=g._getTabNavigable(k.byId(c,a));return b.lowest?b.lowest:b.first},getLastInTabbingOrder:function(c,a){var b=g._getTabNavigable(k.byId(c,a));return b.last?b.last:b.highest}};b.mixin(d,g);return g})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(e,k,h,l,b){var m=b.doc.documentElement;b=l("ie");var d=l("trident"),g=l("opera"),c=Math.floor,a=l("ff"),f=e.boxModel.replace(/-/,""),g={dj_quirks:l("quirks"),dj_opera:g,dj_khtml:l("khtml"), dj_webkit:l("webkit"),dj_safari:l("safari"),dj_chrome:l("chrome"),dj_edge:l("edge"),dj_gecko:l("mozilla"),dj_ios:l("ios"),dj_android:l("android")};b&&(g.dj_ie=!0,g["dj_ie"+c(b)]=!0,g.dj_iequirks=l("quirks"));d&&(g.dj_trident=!0,g["dj_trident"+c(d)]=!0);a&&(g["dj_ff"+c(a)]=!0);g["dj_"+f]=!0;var u="",p;for(p in g)g[p]&&(u+=p+" ");m.className=k.trim(m.className+" "+u);h(function(){if(!e.isBodyLtr()){var a="dj_rtl dijitRtl "+u.replace(/ /g,"-rtl ");m.className=k.trim(m.className+" "+a+"dj_rtl dijitRtl "+ u.replace(/ /g,"-rtl "))}});return l})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(e,k,h,l){h(function(){k("highcontrast")&&e.add(l.body(),"dijit_a11y")});return k})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(e,k,h,l,b,m,d){b.add("highcontrast",function(){var g=d.doc.createElement("div");try{g.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+ (k.blankGif||e.toUrl("./resources/blank.gif"))+'");';d.body().appendChild(g);var c=l.getComputedStyle(g),a=c.backgroundImage;return c.borderTopColor==c.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(f){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+f.toString()),!1}finally{8>=b("ie")?g.outerHTML="":d.body().removeChild(g)}});m(function(){b("highcontrast")&&h.add(d.body(),"dj_a11y")});return b})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "), function(e,k,h,l,b,m,d,g){var c=k("dijit._TemplatedMixin",g,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var c=this.declaredClass,b=this;return d.substitute(a,this,function(a,d){"!"==d.charAt(0)&&(a=l.getObject(d.substr(1),!1,b));if("undefined"==typeof a)throw Error(c+" template:"+d);return null==a?"":"!"==d.charAt(0)?a:this._escapeValue(""+a)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;", "\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=e(this.templatePath,{sanitize:!0}));var a=c.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),b;if(l.isString(a)){if(b=h.toDom(this._stringRepl(a),this.ownerDocument),1!=b.nodeType)throw Error("Invalid template: "+a);}else b=a.cloneNode(!0);this.domNode=b}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef); this._rendered=!0},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)}});c._templateCache={};c.getCachedTemplate=function(a,b,g){var p=c._templateCache,n=a,q=p[n];if(q){try{if(!q.ownerDocument||q.ownerDocument==(g||document))return q}catch(e){}h.destroy(q)}a=d.trim(a);if(b||a.match(/\$\{([^\}]+)\}/g))return p[n]=a;b=h.toDom(a,g);if(1!=b.nodeType)throw Error("Invalid template: "+a);return p[n]=b};m("ie")&&b(window,"unload",function(){var a= c._templateCache,b;for(b in a){var d=a[b];"object"==typeof d&&h.destroy(d);delete a[b]}});return c})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(e){return e.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(e,k,h,l){var b;b=function(a,c,b){l(a,{sync:!!c,headers:{"X-Requested-With":null}}).then(b)};var m={},d=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=a.match(/]*>\s*([\s\S]+)\s*<\/body>/im); c&&(a=c[1])}else a="";return a},g={},c={};e.cache=function(a,c,g){var p;"string"==typeof a?/\//.test(a)?(p=a,g=c):p=k.toUrl(a.replace(/\./g,"/")+(c?"/"+c:"")):(p=a+"",g=c);a=void 0!=g&&"string"!=typeof g?g.value:g;g=g&&g.sanitize;if("string"==typeof a)return m[p]=a,g?d(a):a;if(null===a)return delete m[p],null;p in m||b(p,!0,function(a){m[p]=a});return g?d(m[p]):m[p]};return{dynamic:!0,normalize:function(a,c){var b=a.split("!"),d=b[0];return(/^\./.test(d)?c(d):d)+(b[1]?"!"+b[1]:"")},load:function(a, f,e){a=a.split("!");var p=1'"\/]/g,l={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},b={};k.setObject("dojo.string",b);b.escape=function(b){return!b?"":b.replace(h,function(b){return l[b]})};b.rep=function(b,d){if(0>=d||!b)return"";for(var g=[];;){d& 1&&g.push(b);if(!(d>>=1))break;b+=b}return g.join("")};b.pad=function(e,d,g,c){g||(g="0");e=String(e);d=b.rep(g,Math.ceil((d-e.length)/g.length));return c?e+d:d+e};b.substitute=function(b,d,g,c){c=c||e.global;g=g?k.hitch(c,g):function(a){return a};return b.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,b,e){if(""==b)return"$";a=k.getObject(b,!1,d);e&&(a=k.getObject(e,!1,c).call(c,a,b));return g(a,b).toString()})};b.trim=String.prototype.trim?k.trim:function(b){b=b.replace(/^\s+/,""); for(var d=b.length-1;0<=d;d--)if(/\S/.test(b.charAt(d))){b=b.substring(0,d+1);break}return b};return b})},"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(e,k,h,l,b,m,d,g,c){var a=b.delegate(g,{mouseenter:m.enter,mouseleave:m.leave,keypress:h._keypress}),f;h=l("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments); this._attachTemplateNodes(this.domNode);this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(a){for(var c=a;;)if(1==c.nodeType&&(this._processTemplateNode(c,function(a,c){return a.getAttribute(c)},this._attach)||this.searchContainerNode)&&c.firstChild)c=c.firstChild;else{if(c==a)break;for(;!c.nextSibling;)if(c=c.parentNode,c==a)return;c=c.nextSibling}},_processTemplateNode:function(a,c,f){var d=!0,g=this.attachScope||this,e=c(a,"dojoAttachPoint")||c(a,"data-dojo-attach-point"); if(e)for(var m=e.split(/\s*,\s*/);e=m.shift();)b.isArray(g[e])?g[e].push(a):g[e]=a,d="containerNode"!=e,this._attachPoints.push(e);if(c=c(a,"dojoAttachEvent")||c(a,"data-dojo-attach-event")){e=c.split(/\s*,\s*/);for(m=b.trim;c=e.shift();)if(c){var h=null;-1!=c.indexOf(":")?(h=c.split(":"),c=m(h[0]),h=m(h[1])):c=m(c);h||(h=c);this._attachEvents.push(f(a,c,b.hitch(g,h)))}}return d},_attach:function(c,b,g){b=b.replace(/^on/,"").toLowerCase();b="dijitclick"==b?f||(f=e("./a11yclick")):a[b]||b;return d(c, b,g)},_detachTemplateNodes:function(){var a=this.attachScope||this;k.forEach(this._attachPoints,function(c){delete a[c]});this._attachPoints=[];k.forEach(this._attachEvents,function(a){a.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});b.extend(c,{dojoAttachEvent:"",dojoAttachPoint:""});return h})},"dijit/layout/LayoutContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-style dojo/_base/lang ../_WidgetBase ./_LayoutWidget ./utils".split(" "), function(e,k,h,l,b,m,d,g){k=k("dijit.layout.LayoutContainer",d,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(e.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(c){this.inherited(arguments);c.region&&h.add(c.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var c=e.map(this.getChildren(),function(a,c){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1: -1)*(/top|bottom/.test(a.region)?1:-1),c]}},this);c.sort(function(a,c){for(var b=a.weight,d=c.weight,g=0;gn)?-1:1}return 0});if(h&&(h.start||h.count)){var g=b.length;b=b.slice(h.start||0,(h.start||0)+(h.count||Infinity));b.total=g}return b}switch(typeof k){default:throw Error("Can not query with a "+typeof k);case "object":case "undefined":var b=k;k=function(e){for(var d in b){var g=b[d];if(g&&g.test){if(!g.test(e[d],e))return!1}else if(g!=e[d])return!1}return!0};break;case "string":if(!this[k])throw Error("No filter function "+k+" was found in store");k=this[k];case "function":}l.matches=k;return l}})}, "webview/utils/pathParts":function(){define([],function(){return function(e){var k,h,l;for(l=e.length-1;0A.indexOf(w))){m=w;k=p;(q||!a)&&d.splice(p,1);break}}}if(q){if(a&&(q.matches?q.matches(a):q([a]).length))p=-1=b.zOrder){e.insertBefore(b.node,g.node);d.splice(c,0,b);return}e.appendChild(b.node);d.push(b)},_removeStylingLayer:function(b){var e=this.stylingLayers,d=k.indexOf(e,b);-1this.elementStrokeWidth?(d=e.stroke,h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke",d);b.setAttribute(a,"stroke-width",g-1);b.setAttribute(a,"stroke-opacity",e["stroke-opacity"]);b.setAttribute(a,"fill",d);b.setAttribute(a,"fill-opacity",e["stroke-opacity"])})):h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke","none")})},removeStyle:function(){var c=this.node,a,f=this.appliedStyleMap; if(f){for(a in f)f.hasOwnProperty(a)&&b.setAttribute(c,a,f[a]);h.forEach(this.noStrokeFillNodes,function(a){b.setAttribute(a,"stroke","none");b.removeAttribute(a,"fill");b.removeAttribute(a,"fill-opacity")})}this.appliedStyleMap={}},showStyle:function(){b.setAttribute(this.node,"display","inline")},hideStyle:function(){b.setAttribute(this.node,"display","none")}}),g=e(null,{constructor:function(c){var a=c.svgDocument,f=c.node,d=c.id+"-mask",g=b.createSvgElement(a,"mask",{id:d,x:"-100%",y:"-100%", width:"300%",height:"300%"},f);c._isLine()&&(b.setAttribute(g,"x","-300%"),b.setAttribute(g,"y","-300%"),b.setAttribute(g,"width","700%"),b.setAttribute(g,"height","700%"));this.styleElement=c;this.maskNode=g;b.createSvgElement(a,"use",{"xlink:href":"#"+c.styler.maskBackgroundNode.id},g);this.maskObj=c._createUnstyledObj(g);this.styleObj=c._createUnstyledObj(f);b.setAttribute(this.styleObj.node,"mask","url(#"+d+")")},destroy:function(){this.maskObj.destroy();this.styleObj.destroy();this.styleElement.node.removeChild(this.maskNode)}, update:function(){this.setStyle(this.styleMap)},setStyle:function(b){var a=this.styleElement,f=a.stylingLayer,d=a.elementId,g=k.mixin({},b),e=a.styleObj.appliedStyleMap["stroke-width"]||a._getElementStrokeWidth(),e=parseFloat(e);this.styleMap=b;h.forEach(a.styler.stylingLayers,function(a){var b;if(a!==f&&a.show&&a.zOrdera.zOrder&&(f=f.getStyle(b))&&f.show&&f.outerStroke?(f.outerStroke.update(),!0):!1})},_isLine:function(){var c=b.getParent(this.elementNode),c=b.getAttribute(c,"data-tags");return!this._getFrameNode()&&(!c||-1!==c.indexOf("line"))},_getBackgroundColor:function(){var c=this._backgroundColor, a,f;c||(b.someElement(this.elementNode.childNodes,function(d){return"text"!==d.nodeName&&(f=(a=b.getAttribute(d,"data-tags"))?a.split(" "):[],-1===f.indexOf("line")&&-1===f.indexOf("frame")&&(c=b.getAttribute(d,"fill")||"none","none"!==c))?!0:!1}),this._backgroundColor=c||"none");return this._backgroundColor},_removeBackgroundColor:function(){var c=this._getBackgroundColor(),a=this.backgroundNodes;"none"!==c&&(a||(a=b.getDescendentNodes(this.elementNode,{filter:function(a){return a.nodeType===b.ELEMENT_NODE&& !/defs|image|text/.test(a.tagName)}}),this.backgroundNodes=a=h.filter(a,function(a){return b.getAttribute(a,"fill")===c})),h.forEach(this.backgroundNodes,function(a){var c=b.getAttribute(a,"fill");if(c&&(b.hasAttribute(a,"data-orig-fill")||b.setAttribute(a,"data-orig-fill",c),b.setAttribute(a,"fill","#ffffff"),c=b.getAttribute(a,"fill-opacity")))b.hasAttribute(a,"data-orig-fill-opacity")||b.setAttribute(a,"data-orig-fill-opacity",c),b.setAttribute(a,"fill-opacity","1")}))},_restoreBackgroundColor:function(){this.backgroundNodes&& h.forEach(this.backgroundNodes,function(c){var a=b.getAttribute(c,"data-orig-fill"),f=b.getAttribute(c,"data-orig-fill-opacity");a&&b.setAttribute(c,"fill",a);f&&b.setAttribute(c,"fill-opacity",f)})}})})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),function(e,k,h,l,b,m,d,g,c){h.add("dojo-preload-i18n-Api",1);var a=e.i18n={},f=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,u=function(a,b,c,f){var d=[c+f];b=b.split("-"); for(var g="",e=0;e=this._outstandingPaintOperations&&(!this._adjustWidthsTimer&&this._started)&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});y(a,b,b)},_adjustWidths:function(){this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer); this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%"},_createTreeNode:function(a){return new W(a)},focus:function(){this.lastFocusedChild?this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});R.PathError=f("TreePathError");R._TreeNode=W;return R})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "), function(e,k,h,l,b,m,d,g,c,a,f){h.isAsync||a(0,function(){f(["./fx/Toggler"])});h=h.fx={};a={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var u=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;l.forEach(this._animations,function(a){a&&("undefined"!=typeof a.duration&&(this.duration+=a.duration),a.delay&&(this.duration+=a.delay))},this)};u.prototype=new k;e.extend(u,{_onAnimate:function(){this._fire("onAnimate", arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=b.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx=b.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,c){this._current||(this._current=this._animations[this._index=0]);if(!c&&"playing"== this._current.status())return this;var f=b.after(this._current,"beforeBegin",e.hitch(this,function(){this._fire("beforeBegin")}),!0),d=b.after(this._current,"onBegin",e.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),g=b.after(this._current,"onPlay",e.hitch(this,function(a){this._fire("onPlay",arguments);f.remove();d.remove();g.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=b.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0);this._onEndCtx&& this._onEndCtx.remove();this._onEndCtx=b.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=b.after(this._current,"onPause",e.hitch(this,function(b){this._fire("onPause",arguments);a.remove()}),!0);this._current.pause()}return this},gotoPercent:function(a,b){this.pause();var c=this.duration*a;this._current=null;l.some(this._animations,function(a,b){if(c<=a.duration)return this._current=a,this._index= b,!0;c-=a.duration;return!1},this);this._current&&this._current.gotoPercent(c/this._current.duration);b&&this.play();return this},stop:function(a){if(this._current){if(a){for(;this._index+1this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a, b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,b){var c=this.duration*a;l.forEach(this._animations,function(a){a.gotoPercent(a.durationa?"previousSibling":"nextSibling"])&&"getAttribute"in b){var f=d.byNode(b);if(f)return f}return null}})})}, "dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(e,k,h,l){return h("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(b){l.mixin(this,b);this.connects=[];b=this.store;if(!b.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");b.getFeatures()["dojo.data.api.Notification"]&& (this.connects=this.connects.concat([k.after(b,"onNew",l.hitch(this,"onNewItem"),!0),k.after(b,"onDelete",l.hitch(this,"onDeleteItem"),!0),k.after(b,"onSet",l.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var b;b=this.connects.pop();)b.remove()},getRoot:function(b,e){this.root?b(this.root):this.store.fetch({query:this.query,onComplete:l.hitch(this,function(d){if(1!=d.length)throw Error("dijit.tree.TreeStoreModel: root query returned "+d.length+" items, but must return exactly one");this.root= d[0];b(this.root)}),onError:e})},mayHaveChildren:function(b){return e.some(this.childrenAttrs,function(e){return this.store.hasAttribute(b,e)},this)},getChildren:function(b,h,d){var g=this.store;if(g.isItemLoaded(b)){for(var c=[],a=0;ab?b=c:(b=a,a=c);for(c=[];b!=a;)c.push(b),b=this.tree._getNext(b);c.push(a);this.setSelection(c)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},forInSelectedItems:function(a, b){b=b||h.global;for(var c in this.selection)a.call(b,this.getItem(c),c,this)}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(e,k,h,l){var b=h.getObject("dojo.dnd",!0);b.getCopyKeyState=function(b){return b[e("mac")?"metaKey":"ctrlKey"]};b._uniqueId=0;b.getUniqueId=function(){var e;do e=k._scopeName+"Unique"+ ++b._uniqueId;while(l.byId(e));return e};b._empty={};b.isFormElement=function(b){b=b.target;3==b.nodeType&&(b=b.parentNode);return 0<= " a button textarea input select option ".indexOf(" "+b.tagName.toLowerCase()+" ")};return b})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(e,k,h,l,b,m){return k("dijit.tree._dndContainer",null,{constructor:function(d,g){this.tree=d;this.node=d.domNode;l.mixin(this,g);this.containerState="";h.add(this.node,"dojoDndContainer");this.events=[b(this.node,m.enter,l.hitch(this,"onOverEvent")),b(this.node, m.leave,l.hitch(this,"onOutEvent")),e.after(this.tree,"_onNodeMouseEnter",l.hitch(this,"onMouseOver"),!0),e.after(this.tree,"_onNodeMouseLeave",l.hitch(this,"onMouseOut"),!0),b(this.node,"dragstart, selectstart",function(b){b.preventDefault()})]},destroy:function(){for(var b;b=this.events.pop();)b.remove();this.node=this.parent=null},onMouseOver:function(b){this.current=b},onMouseOut:function(){this.current=null},_changeState:function(b,g){var c="dojoDnd"+b,a=b.toLowerCase()+"State";h.replace(this.node, c+g,c+this[a]);this[a]=g},_addItemClass:function(b,g){h.add(b,"dojoDndItem"+g)},_removeItemClass:function(b,g){h.remove(b,"dojoDndItem"+g)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"dijit/Menu":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ./popup ./DropDownMenu dojo/ready".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){f("dijit-legacy-requires")&&r(0,function(){e(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return h("dijit.Menu",q,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):k.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(a){return p.get(this._iframeContentDocument(a))|| this._iframeContentDocument(a).__parent__||a.name&&document.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&document.frames[a.name]&&document.frames[a.name].document||null},bindDomNode:function(f){f=l.byId(f,this.ownerDocument);var d;if("iframe"==f.tagName.toLowerCase()){var e=f;d=this._iframeContentWindow(e);d=u.body(d.document)}else d=f==u.body(this.ownerDocument)?this.ownerDocument.documentElement:f;var h={node:f, iframe:e};b.set(f,"_dijitMenu"+this.id,this._bindings.push(h));var n=c.hitch(this,function(b){var c=this.selector,f=c?function(b){return a.selector(c,b)}:function(a){return a},d=this;return[a(b,f(this.leftClickToOpen?"click":"contextmenu"),function(a){a.stopPropagation();a.preventDefault();(new Date).getTime()I&&(O=g.getComputedStyle(r),g.set(G,{overflowY:"scroll",height:I+"px",border:O.borderLeftWidth+" "+O.borderLeftStyle+" "+O.borderLeftColor}),r._originalStyle=r.style.cssText,r.style.border="none"); b.set(G,{id:K,style:{zIndex:this._beginZIndex+h.length},"class":"dijitPopup "+(s.baseClass||s["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:e.parent?e.parent.id:""});0==h.length&&F&&(this._firstAroundNode=F,this._firstAroundPosition=d.position(F,!0),this._aroundMoveListener=setTimeout(f.hitch(this,"_repositionAll"),50));c("config-bgIframe")&&!s.bgIframe&&(s.bgIframe=new n(G));K=s.orient?f.hitch(s,"orient"):null;m=F?p.around(G,F,m,k,K):p.at(G,e,"R"==m?["TR","BR","TL","BL"]:["TL","BL","TR","BR"], e.padding,K);G.style.visibility="visible";r.style.visibility="visible";r=[];r.push(u(G,"keydown",f.hitch(this,function(b){if(b.keyCode==a.ESCAPE&&e.onCancel)b.stopPropagation(),b.preventDefault(),e.onCancel();else if(b.keyCode==a.TAB&&(b.stopPropagation(),b.preventDefault(),(b=this.getTopPopup())&&b.onCancel))b.onCancel()})));s.onCancel&&e.onCancel&&r.push(s.on("cancel",e.onCancel));r.push(s.on(s.onExecute?"execute":"change",f.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}))); h.push({widget:s,wrapper:G,parent:e.parent,onExecute:e.onExecute,onCancel:e.onCancel,onClose:e.onClose,handlers:r});if(s.onOpen)s.onOpen(m);return m},close:function(a){for(var b=this._stack;a&&e.some(b,function(b){return b.widget==a})||!a&&b.length;){var c=b.pop(),f=c.widget,d=c.onClose;f.bgIframe&&(f.bgIframe.destroy(),delete f.bgIframe);if(f.onClose)f.onClose();for(var g;g=c.handlers.pop();)g.remove();f&&f.domNode&&this.hide(f);d&&d()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener), this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return r.popup=new h})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(e,k,h,l,b,m,d){function g(a,c,d,g){var n=m.getEffectiveBox(a.ownerDocument);(!a.parentNode||"body"!=String(a.parentNode.tagName).toLowerCase())&&b.body(a.ownerDocument).appendChild(a);var q=null;e.some(c,function(b){var c=b.corner,f=b.pos, e=0,h={w:{L:n.l+n.w-f.x,R:f.x-n.l,M:n.w}[c.charAt(1)],h:{T:n.t+n.h-f.y,B:f.y-n.t,M:n.h}[c.charAt(0)]},l=a.style;l.left=l.right="auto";d&&(e=d(a,b.aroundCorner,c,h,g),e="undefined"==typeof e?0:e);var s=a.style,r=s.display,m=s.visibility;"none"==s.display&&(s.visibility="hidden",s.display="");l=k.position(a);s.display=r;s.visibility=m;r={L:f.x,R:f.x-l.w,M:Math.max(n.l,Math.min(n.l+n.w,f.x+(l.w>>1))-l.w)}[c.charAt(1)];m={T:f.y,B:f.y-l.h,M:Math.max(n.t,Math.min(n.t+n.h,f.y+(l.h>>1))-l.h)}[c.charAt(0)]; f=Math.max(n.l,r);s=Math.max(n.t,m);r=Math.min(n.l+n.w,r+l.w);m=Math.min(n.t+n.h,m+l.h);r-=f;m-=s;e+=l.w-r+(l.h-m);if(null==q||e>1)}[a.charAt(1)],y:{T:C,B:C+K,M:C+(K>>1)}[a.charAt(0)]}})}var r;if("string"==typeof b||"offsetWidth"in b||"ownerSVGElement"in b){if(r=k.position(b,!0), /^(above|below)/.test(c[0])){var s=k.getBorderExtents(b),m=b.firstChild?k.getBorderExtents(b.firstChild):{t:0,l:0,b:0,r:0},w=k.getBorderExtents(a),y=a.firstChild?k.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};r.y+=Math.min(s.t+m.t,w.t+y.t);r.h-=Math.min(s.t+m.t,w.t+y.t)+Math.min(s.b+m.b,w.b+y.b)}}else r=b;if(b.parentNode){s="absolute"==h.getComputedStyle(b).position;for(b=b.parentNode;b&&1==b.nodeType&&"BODY"!=b.nodeName;){m=k.position(b,!0);w=h.getComputedStyle(b);/relative|absolute/.test(w.position)&& (s=!1);if(!s&&/hidden|auto|scroll/.test(w.overflow)){var y=Math.min(r.y+r.h,m.y+m.h),A=Math.min(r.x+r.w,m.x+m.w);r.x=Math.max(r.x,m.x);r.y=Math.max(r.y,m.y);r.h=y-r.y;r.w=A-r.x}"absolute"==w.position&&(s=!0);b=b.parentNode}}var B=r.x,C=r.y,F="w"in r?r.w:r.w=r.width,K="h"in r?r.h:(l.deprecated("place.around: dijit/place.__Rectangle: { x:"+B+", y:"+C+", height:"+r.height+", width:"+F+" } has been deprecated. Please use { x:"+B+", y:"+C+", h:"+r.height+", w:"+F+" }","","2.0"),r.h=r.height),G=[];e.forEach(c, function(a){var b=d;switch(a){case "above-centered":q("TM","BM");break;case "below-centered":q("BM","TM");break;case "after-centered":b=!b;case "before-centered":q(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":q(b?"TL":"TR",b?"TR":"TL");q(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":q(b?"BL":"BR",b?"TL":"TR");q(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":q(b?"TL":"TR",b?"BL":"BR");q(b?"TR":"TL",b?"BR":"BL");break;default:q(a.aroundCorner, a.corner)}});a=g(a,G,n,{w:F,h:K});a.aroundNodePos=r;return a}}})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(e,k,h,l,b,m,d,g){g.add("config-bgIframe",g("ie")&&!/IEMobile\/10\.0/.test(navigator.userAgent)||g("trident")&&/Windows NT 6.[01]/.test(navigator.userAgent));var c=new function(){var a=[];this.pop=function(){var c;a.length?(c=a.pop(),c.style.display=""):(9>g("ie")?(c="\x3ciframe src\x3d'"+ (h.dojoBlankHtmlUrl||e.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e",c=document.createElement(c)):(c=l.create("iframe"),c.src='javascript:""',c.className="dijitBackgroundIframe",c.setAttribute("role","presentation"),b.set(c,"opacity",0.1)),c.tabIndex=-1);return c};this.push=function(b){b.style.display="none";a.push(b)}};k.BackgroundIframe=function(a){if(!a.id)throw Error("no id"); if(g("config-bgIframe")){var f=this.iframe=c.pop();a.appendChild(f);7>g("ie")||g("quirks")?(this.resize(a),this._conn=d(a,"resize",m.hitch(this,"resize",a))):b.set(f,{width:"100%",height:"100%"})}};m.extend(k.BackgroundIframe,{resize:function(a){this.iframe&&b.set(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),c.push(this.iframe),delete this.iframe)}}); return k.BackgroundIframe})},"dijit/DropDownMenu":function(){define(["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],function(e,k,h,l){return e("dijit.DropDownMenu",l,{templateString:h,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(b){this._moveToPopup(b);b.stopPropagation();b.preventDefault()},_onLeftArrow:function(b){if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev(); else this.onCancel(!1);else b.stopPropagation(),b.preventDefault()}})})},"dijit/_MenuBase":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/lang dojo/mouse dojo/on dojo/window ./a11yclick ./registry ./_Widget ./_CssStateMixin ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){return k("dijit._MenuBase",[u,q,n,p],{selected:null,_setSelectedAttr:function(a){this.selected!=a&&(this.selected&&(this.selected._setSelected(!1), this._onChildDeselect(this.selected)),a&&a._setSelected(!0),this._set("selected",a))},activated:!1,_setActivatedAttr:function(a){b.toggle(this.domNode,"dijitMenuActive",a);b.toggle(this.domNode,"dijitMenuPassive",!a);this._set("activated",a)},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:!1,childSelector:function(a){var b=f.byNode(a);return a.parentNode==this.containerNode&&b&&b.focus},postCreate:function(){var b=this,c="string"==typeof this.childSelector?this.childSelector: m.hitch(this,"childSelector");this.own(g(this.containerNode,g.selector(c,d.enter),function(){b.onItemHover(f.byNode(this))}),g(this.containerNode,g.selector(c,d.leave),function(){b.onItemUnhover(f.byNode(this))}),g(this.containerNode,g.selector(c,a),function(a){b.onItemClick(f.byNode(this),a);a.stopPropagation()}),g(this.containerNode,g.selector(c,"focusin"),function(){b._onItemFocus(f.byNode(this))}));this.inherited(arguments)},onKeyboardSearch:function(a,b,c,f){this.inherited(arguments);if(a&&(-1== f||a.popup&&1==f))this.onItemClick(a,b)},_keyboardSearchCompare:function(a,b){return a.shortcutKey?b==a.shortcutKey.toLowerCase()?-1:0:this.inherited(arguments)?1:0},onExecute:function(){},onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.onItemClick(this.focusedChild,a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){this.set("selected",this.currentPopupItem);this._stopPendingCloseTimer()}, onItemHover:function(a){this.activated?(this.set("selected",a),a.popup&&(!a.disabled&&!this.hover_timer)&&(this.hover_timer=this.defer(function(){this._openItemPopup(a)},this.popupDelay))):Infinity>this.passivePopupDelay&&(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.passive_hover_timer=this.defer(function(){this.onItemClick(a,{type:"click"})},this.passivePopupDelay));this._hoveredChild=a;a._set("hovering",!0)},_onChildDeselect:function(a){this._stopPopupTimer();this.currentPopupItem== a&&(this._stopPendingCloseTimer(),this._pendingClose_timer=this.defer(function(){this.currentPopupItem=this._pendingClose_timer=null;a._closePopup()},this.popupDelay))},onItemUnhover:function(a){this._hoveredChild==a&&(this._hoveredChild=null);this.passive_hover_timer&&(this.passive_hover_timer.remove(),this.passive_hover_timer=null);a._set("hovering",!1)},_stopPopupTimer:function(){this.hover_timer&&(this.hover_timer=this.hover_timer.remove())},_stopPendingCloseTimer:function(){this._pendingClose_timer&& (this._pendingClose_timer=this._pendingClose_timer.remove())},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,b){this.passive_hover_timer&&this.passive_hover_timer.remove();this.focusChild(a);if(a.disabled)return!1;if(a.popup){this.set("selected",a);this.set("activated",!0);var c=/^key/.test(b._origType||b.type)||0==b.clientX&&0==b.clientY;this._openItemPopup(a,c)}else this.onExecute(),a._onClick?a._onClick(b):a.onClick(b)},_openItemPopup:function(a, b){if(a!=this.currentPopupItem){this.currentPopupItem&&(this._stopPendingCloseTimer(),this.currentPopupItem._closePopup());this._stopPopupTimer();var c=a.popup;c.parentMenu=this;this.own(this._mouseoverHandle=g.once(c.domNode,"mouseover",m.hitch(this,"_onPopupHover")));var f=this;a._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){b&&f.focusChild(a);f._cleanUp()},onExecute:m.hitch(this,"_cleanUp",!0),onClose:function(){f._mouseoverHandle&&(f._mouseoverHandle.remove(), delete f._mouseoverHandle)}},b);this.currentPopupItem=a}},onOpen:function(){this.isShowingNow=!0;this.set("activated",!0)},onClose:function(){this.set("activated",!1);this.set("selected",null);this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();this.currentPopupItem&&(this.focused&&(l.set(this.selected.focusNode,"tabIndex",this.tabIndex),this.selected.focusNode.focus()),this.currentPopupItem._closePopup(),this.currentPopupItem=null)},_onItemFocus:function(a){if(this._hoveredChild&& this._hoveredChild!=a)this.onItemUnhover(this._hoveredChild);this.set("selected",a)},_onBlur:function(){this._cleanUp(!0);this.inherited(arguments)},_cleanUp:function(a){this._closeChild();"undefined"==typeof this.isShowingNow&&this.set("activated",!1);a&&this.set("selected",null)}})})},"dijit/_KeyNavContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/keys dojo/_base/lang ./registry ./_Container ./_FocusMixin ./_KeyNavMixin".split(" "),function(e, k,h,l,b,m,d,g,c,a){return k("dijit._KeyNavContainer",[c,a,g],{connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},g=m.hitch(this,"focusPrev"),h=m.hitch(this,"focusNext");e.forEach(a,function(a){d[a]=g});e.forEach(c,function(a){d[a]=h});d[b.HOME]=m.hitch(this,"focusFirstChild");d[b.END]=m.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){l.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);e.forEach(this.getChildren(), m.hitch(this,"_startupChild"))},addChild:function(a,b){this.inherited(arguments);this._startupChild(a)},_startupChild:function(a){a.set("tabIndex","-1")},_getFirst:function(){var a=this.getChildren();return a.length?a[0]:null},_getLast:function(){var a=this.getChildren();return a.length?a[a.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(a){return(a= d.byNode(a))&&a.getParent()==this}})})},"dijit/MenuItem":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/kernel dojo/sniff dojo/_base/lang ./_Widget ./_TemplatedMixin ./_Contained ./_CssStateMixin dojo/text!./templates/MenuItem.html".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){return e("dijit.MenuItem",[g,c,a,f],{templateString:u,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(a){this._set("label",a);var b="",c,f=a;"object"===typeof f&&(f=f.label|| f.value);"string"===typeof f&&(c=f.search(/{\S}/),0<=c?(b=f.charAt(c+1),a=f.substr(0,c),f=f.substr(c+3),c=a+b+f,a=a+'\x3cspan class\x3d"dijitMenuItemShortcutKey"\x3e'+b+"\x3c/span\x3e"+f):c=f,this.domNode.setAttribute("aria-label",c+" "+this.accelKey));this.containerNode.innerHTML=a;this._set("shortcutKey",b)},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this._set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments); h.set(this.containerNode,"id",this.id+"_text");this.accelKeyNode&&h.set(this.accelKeyNode,"id",this.id+"_accel");k.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==m("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(a){}},_setSelected:function(a){l.toggle(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.", "","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){this.focusNode.setAttribute("aria-disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode&&(this.accelKeyNode.style.display=a?"":"none",this.accelKeyNode.innerHTML=a,h.set(this.containerNode,"colSpan",a?"1":"2"));this._set("accelKey",a)}})})},"webview/widgets/ModelViewer":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-style dojo/topic dijit/layout/BorderContainer dijit/layout/TabContainer ./ViewAllTab ./DiagramTab ../palette/Palette ../palette/ModelBrowserButton ../palette/ExplorerBarButton ../palette/PaletteSeparator ../palette/PaletteSpacer ../palette/FitToViewButton ../palette/MarqueeZoomButton ../palette/OptionalViewButton ../search/SearchResultsPane ./ExplorerBar".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w){var y=e([d],{selectChild:function(a,b){var c=this.modelViewer,f=c.explorerBar,d=this.selectedChildWidget;if(d&&d!==a&&d.onPreHide)d.onPreHide();this.inherited(arguments);this._started&&(c.get("showExplorerBar")?(a.addChild(f),f.update(a.diagram)):a.removeChild(f),c.set("showPaletteNavButtons",a.showPaletteNavButtons),"SystemTab"===a.role&&(c.selectedDiagramTab=a,c.selectedDiagram=a.diagram),c.selectedTab=a,c.resize(),(!b||!1!==b.doFocus)&&c.focus())}, addChild:function(){this.inherited(arguments);this._started&&this._updateTabCloseButtons()},removeChild:function(a){this.inherited(arguments);this._started&&(this.selectedChildWidget===a&&a.removeChild(this.modelViewer.explorerBar),this._updateTabCloseButtons())},_hideChild:function(a){this.inherited(arguments);this._started&&a.removeChild(this.modelViewer.explorerBar)},_updateTabCloseButtons:function(){var a,b,c,f,d;d=0;a=this.getChildren();f=a.length;for(c=0;cb?1:aa("ie")||a("trident")&&a("quirks")||a("webkit")?this.scrollNode.scrollLeft:b.get(this.containerNode,"width")-b.get(this.scrollNode,"width")+(a("trident")||a("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(c){if(this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit"))return c;var f=b.get(this.containerNode,"width")-b.get(this.scrollNode,"width");return(a("trident")|| a("edge")?-1:1)*(c-f)},onSelectChild:function(a,c){var f=this.pane2button(a.id);if(f){var d=f.domNode;if(d!=this._selectedTab&&(this._selectedTab=d,this._postResize)){var g=this._getScroll();g>d.offsetLeft||g+b.get(this.scrollNode,"width")c)return{min:this.isLeftToRight()?0:a[a.length-1].domNode.offsetLeft,max:this.isLeftToRight()?a[a.length-1].domNode.offsetLeft+a[a.length-1].domNode.offsetWidth-c:f};a=this.isLeftToRight()?0:f;return{min:a,max:a}},_getScrollForSelectedTab:function(){var a=this._selectedTab,c=b.get(this.scrollNode,"width"),f=this._getScrollBounds(),a=a.offsetLeft+b.get(a,"width")/2-c/2;return a=Math.min(Math.max(a,f.min),f.max)},createSmoothScroll:function(a){if(0=b.max)}});p=k("dijit.layout._ScrollingTabControllerButtonMixin", null,{baseClass:"dijitTab tabStripButton",templateString:p,tabIndex:"",isFocusable:function(){return!1}});k("dijit.layout._ScrollingTabControllerButton",[w,p]);k("dijit.layout._ScrollingTabControllerMenuButton",[w,y,p],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(a){this.dropDown=new s({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var b=f.byId(this.containerId);e.forEach(b.getChildren(),function(a){var c= new x({id:a.id+"_stcMi",label:a.title,iconClass:a.iconClass,disabled:a.disabled,ownerDocument:this.ownerDocument,dir:a.dir,lang:a.lang,textDir:a.textDir||b.textDir,onClick:function(){b.selectChild(a)}});this.dropDown.addChild(c)},this);a()},closeDropDown:function(a){this.inherited(arguments);this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}});return u})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect", "dojo/_base/declare","dojo/_base/lang","dojo/parser"],function(e,k,h,l,b){return h("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var e=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);b.parse(e,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire, scope:"dojo"}).then(l.hitch(this,function(b){this._startupWidgets=b;for(var g=0;g.*$/,""),A=l.map(r.split(/\s+/),function(a){var c=a.toLowerCase();return{name:a,value:"LI"==b.nodeName&&"value"==a||"enctype"==c?b.getAttribute(c):b.getAttributeNode(c).value}}));var Q=e.scope||k._scopeName; r="data-"+Q+"-";var L={};"dojo"!==Q&&(L[r+"props"]="data-dojo-props",L[r+"type"]="data-dojo-type",L[r+"mixins"]="data-dojo-mixins",L[Q+"type"]="dojotype",L[r+"id"]="data-dojo-id");for(var J=0,H,Q=[],V,W;H=A[J++];){var R=H.name,Z=R.toLowerCase();H=H.value;switch(L[Z]||Z){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":W=H;break;case "data-dojo-id":case "jsid":V=H;break;case "data-dojo-attach-point":case "dojoattachpoint":w.dojoAttachPoint=H;break;case "data-dojo-attach-event":case "dojoattachevent":w.dojoAttachEvent= H;break;case "class":w["class"]=b.className;break;case "style":w.style=b.style&&b.style.cssText;break;default:if(R in y||(R=x(a)[Z]||R),R in y)switch(typeof y[R]){case "string":w[R]=H;break;case "number":w[R]=H.length?Number(H):NaN;break;case "boolean":w[R]="false"!=H.toLowerCase();break;case "function":""===H||-1!=H.search(/[^\w\.]+/i)?w[R]=new Function(H):w[R]=h.getObject(H,!1)||new Function(H);Q.push(R);break;default:Z=y[R],w[R]=Z&&"length"in Z?H?H.split(/\s*,\s*/):[]:Z instanceof Date?""==H?new Date(""): "now"==H?new Date:f.fromISOString(H):Z instanceof g?k.baseUrl+H:s(H)}else w[R]=H}}for(A=0;Am[0]&&d.setFullYear(m[0]||1970);var g=0,c=m[7]&&m[7].charAt(0);"Z"!=c&&(g=60*(m[8]||0)+(Number(m[9])||0),"-"!=c&&(g*=-1));c&&(g-=d.getTimezoneOffset());g&&d.setTime(d.getTime()+6E4*g)}return d};h.toISOString=function(e,b){var h=function(a){return 10>a?"0"+a:a};b=b||{};var d=[],g=b.zulu?"getUTC":"get",c="";"time"!=b.selector&&(c=e[g+"FullYear"](),c=["0000".substr((c+"").length)+c,h(e[g+"Month"]()+ 1),h(e[g+"Date"]())].join("-"));d.push(c);if("date"!=b.selector){c=[h(e[g+"Hours"]()),h(e[g+"Minutes"]()),h(e[g+"Seconds"]())].join(":");g=e[g+"Milliseconds"]();b.milliseconds&&(c+="."+(100>g?"0":"")+h(g));if(b.zulu)c+="Z";else if("time"!=b.selector)var g=e.getTimezoneOffset(),a=Math.abs(g),c=c+((0=d.x&&a.pageX<=d.x+d.w)||!(a.pageY>=d.y&&a.pageY<=d.y+d.h)){for(d=a.target;d&&!f;)b.contains(d,"dijitPopup")?f=!0:d=d.parentNode;if(f){d=a.target;if(c.onItemClick){for(var g;d&&!(g=p.byNode(d));)d=d.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}if(this._opened){if(c.focus&&(!1!==c.autoFocus||"mouseup"==a.type&&!this.hovering))this._focusDropDownTimer= this.defer(function(){c.focus();delete this._focusDropDownTimer})}else this.focus&&this.defer("focus")},_onDropDownClick:function(a){this._stopClickEvents&&(a.stopPropagation(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down", left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.own(f(this._buttonNode,u.press,a.hitch(this,"_onDropDownMouseDown")),f(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),f(b,"keydown",a.hitch(this,"_onKey")),f(b,"keyup",a.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0); this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&!this.readOnly){var b=this.dropDown,f=a.target;if(b&&(this._opened&&b.handleKey)&&!1===b.handleKey(a))a.stopPropagation(),a.preventDefault();else if(b&&this._opened&&a.keyCode==c.ESCAPE)this.closeDropDown(),a.stopPropagation(),a.preventDefault();else if(!this._opened&&(a.keyCode==c.DOWN_ARROW||(a.keyCode==c.ENTER||a.keyCode==c.SPACE&&(!this._searchTimer|| a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(f.tagName||"").toLowerCase()||f.type&&"text"!==f.type.toLowerCase())))this._toggleOnKeyUp=!0,a.stopPropagation(),a.preventDefault()}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var b=this.dropDown;b&&b.focus&&this.defer(a.hitch(b,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},loadAndOpenDropDown:function(){var b= new k,c=a.hitch(this,function(){this.openDropDown();b.resolve(this.dropDown)});this.isLoaded()?c():this.loadDropDown(c);return b},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var c=this.dropDown,f=c.domNode,d=this._aroundNode||this.domNode,g=this,e=q.open({parent:this,popup:c,around:d,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){g.closeDropDown(!0)},onCancel:function(){g.closeDropDown(!0)}, onClose:function(){l.set(g._popupStateNode,"popupActive",!1);b.remove(g._popupStateNode,"dijitHasDropDownOpen");g._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&d.offsetWidth>c._popupWrapper.offsetWidth){var d=d.offsetWidth-c._popupWrapper.offsetWidth,h={w:c.domNode.offsetWidth+d};this._origStyle=f.style.cssText;a.isFunction(c.resize)?c.resize(h):m.setMarginBox(f,h);"R"==e.corner[1]&&(c._popupWrapper.style.left=c._popupWrapper.style.left.replace("px","")-d+"px")}l.set(this._popupStateNode, "popupActive","true");b.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",c.id);"presentation"!==f.getAttribute("role")&&!f.getAttribute("aria-labelledby")&&f.setAttribute("aria-labelledby",this.id);return e},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded", "false"),a&&this.focus&&this.focus(),q.close(this.dropDown),this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})})},"webview/widgets/ViewAllTab":function(){define("dojo/_base/declare dojo/_base/lang dojo/promise/all dojo/store/Memory dojo/window dojo/dom-construct dojo/dom-class dojo/on dojo/mouse dojo/topic dojo/Deferred dijit/layout/BorderContainer dijit/layout/ContentPane dijit/Menu dijit/MenuItem dijit/popup dojo/i18n!../resources/slreportgen_webview/nls/modelviewer".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s){return e([u],{title:s.ViewAll,postMixInProperties:function(){this.gutters=!1;this.inherited(arguments)},postCreate:function(){var b=this.app,c=b.id,f=new p({region:"center",style:"overflow: auto;"}),g=new n({targetNodeIds:[f.containerNode],"class":"wvViewAllTab",selector:".wvViewAllTabImg",onMouseEnter:function(){var f=parseFloat(g.currentTarget.getAttribute("data-hid"));f&&a.publish(c+"/hover",b.getDiagram(f))},onMouseLeave:function(){a.publish(c+"/unhover")}}); d.add(this.domNode,"wvViewAllTab");g.addChild(new q({label:s.Open,onClick:function(){var a=parseFloat(g.currentTarget.getAttribute("data-hid"));a&&b.open(b.getDiagram(a),{tab:"reuse"}).then(function(){b.modelViewer.focus()})}}));g.addChild(new q({label:s.OpenInNewTab,onClick:function(){var a=parseFloat(g.currentTarget.getAttribute("data-hid"));a&&b.open(b.getDiagram(a),{tab:"new"}).then(function(){b.modelViewer.focus()})}}));this.own(f,g);this.addChild(f);this.thumbnailsPane=f;this.contextMenu=g; this.imgStore=new l;this._unloadedSectionStore=new l({idProperty:"hid",data:this.app.data.diagramStore.sectionStore.query().reverse()});this.inherited(arguments)},startup:function(){var a=this.thumbnailsPane.domNode,b=this;this.own(g(this.thumbnailsPane.domNode,"scroll",function(c){c=(a.scrollTop+a.clientHeight)/a.scrollHeight;0.75b._lastScroll-c&&b._addNextSection();b._lastScroll=c}))},destroy:function(){this._hoverHandle&&this._hoverHandle.remove();this._unhoverHandle&&this._unhoverHandle.remove(); this.inherited(arguments)},onShow:function(){var b=this.app,c=b.id;this.update(b.modelViewer.selectedDiagram);this._hoverHandle=a.subscribe(c+"/hover",k.hitch(this,"_hover"));this._unhoverHandle=a.subscribe(c+"/unhover",k.hitch(this,"_unhover"));this._fillThumbnailsPane()},onHide:function(){this._hoverHandle&&this._hoverHandle.remove();this._unhoverHandle&&this._unhoverHandle.remove()},update:function(a){if(a&&(this.diagram=a,this._unhover(),this._selectedImgNode&&(d.remove(this._selectedImgNode, "wvViewAllTabImgSelected"),this._selectedImgNode=null),a=this._getImgNode(a)))this._selectedImgNode=a,d.add(a,"wvViewAllTabImgSelected"),b.scrollIntoView(a)},_fillThumbnailsPane:function(){var a=this,b=this.thumbnailsPane.domNode,c,f,d,g;if(0b.scrollHeight-b.clientHeight&&(a._addNextSection(),a._fillThumbnailsPane())})}},_addNextSection:function(){var a= this._unloadedSectionStore.data;(a=a[a.length-1])&&this._addSection(a)},_addSection:function(a){var b=this.app,c=a.descendants,f,d,g;if(this._unloadedSectionStore.get(a.hid)){(g=b.getDiagram(a.hid))&&g.thumbnail&&this._createImgNode(g);d=a.descendants.length;for(f=0;f]+>|]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:m.empty,_setNodeContent:function(a,b){m.empty(a);if(b)if("number"==typeof b&&(b=b.toString()),"string"==typeof b&&(b=m.toDom(b,a.ownerDocument)),!b.nodeType&&k.isArrayLike(b))for(var c=b.length,d=0;d]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+ a},_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},_parse:function(){var a=this.node;try{var b={};h.forEach(["dir","lang","textDir"],function(a){this[a]&&(b[a]=this[a])},this);var c=this;this.parseDeferred=d.parse({rootNode:a,noStart:!this.startup,inherited:b,scope:this.parserScope}).then(function(a){return c.parseResults=a},function(a){c._onError("Content",a,"Error parsing in _ContentSetter#"+this.id)})}catch(g){this._onError("Content",g,"Error parsing in _ContentSetter#"+this.id)}}, _onError:function(a,b,d){a=this["on"+a+"Error"].call(this,b);d?console.error(d,b):a&&c._setNodeContent(this.node,a,!0)}}),set:function(a,b,d){void 0==b&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),b="");"number"==typeof b&&(b=b.toString());return d?(new c._ContentSetter(k.mixin(d,{content:b,node:a}))).set():c._setNodeContent(a,b,!0)}};k.setObject("dojo.html",c);return c})},"webview/widgets/DiagramTab":function(){define("dojo/_base/declare dojo/dom-class dojo/topic dijit/layout/BorderContainer dijit/layout/ContentPane ./ModelGraphicsPane ./EmptyModelGraphicsPane ./LightBox".split(" "), function(e,k,h,l,b,m,d,g){return e([l],{postMixInProperties:function(){this.gutters=!1;this.inherited(arguments)},postCreate:function(){var c=this,a=this.app,d=new g({id:this.id+"_lightbox",app:a}),e=new b({region:"center","class":"wvDiagramTabViewPane"});e.addChild(d);this.addChild(e);this.viewPane=e;this.lightBox=d;k.add(this.domNode,"wvDiagramTab");this.own(e,d,h.subscribe(a.id+"/postOpen",function(a){c.diagram===a&&(c._opening=!1)}));this.inherited(arguments)},onShow:function(){this.update(this.diagram)}, onPreHide:function(){var b=this.modelGraphicsPane;b&&(this.diagram.state=b.getState(),this.viewPane.removeChild(b),b.destroy(),this.modelGraphicsPane=null,this.lightBox.close())},update:function(b,a){var f=this.app,g=this.viewPane,e=this.emptyPane,n=b||f.modelViewer.selectedDiagram,l=this.modelGraphicsPane;n&&!this._opening&&(this.lightBox.close(a),!l||this.diagram!==n?(this._opening=!0,this.diagram&&l&&(this.diagram.state=l.getState()),this.diagram=n,this.set("title",n.name),e&&(g.removeChild(e), e.destroy(),this.emptyPane=null),l&&(g.removeChild(l),l.destroy(),this.modelGraphicsPane=null),n.svg?(l=new m({app:f,diagram:n}),g.addChild(l),this.modelGraphicsPane=l):(e=new d({app:f,diagram:n}),g.addChild(e),this.emptyPane=e),this.resize()):h.publish(f.id+"/postOpen",n))}})})},"webview/widgets/ModelGraphicsPane":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin ../base/Rect ../mg/Canvas ../tools/PanTool ../tools/ScrollWheelTool ../tools/FitToViewTool ../tools/KeyboardZoomTool ../tools/KeyboardESCBackTool ../tools/TextSelectionTool ../tools/DelegateToHandlerTool dojo/text!./templates/ModelGraphicsPane.html".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r){function s(a){return 0a?-1:0}return e([b,m],{templateString:r,_selectionStyle:"fill: none; outer-stroke: #c6defe; outer-stroke-linecap: butt; outer-stroke-opacity: 0.80; outer-stroke-width: 4; outer-stroke-linejoin: miter; outer-stroke-dasharray: none; outer-stroke-miterlimit: 4",startup:function(){var b=this.app,d=b.id,e=this.diagram,m=new g(e.svg,this.id),r=this;m.focusNode=this.domNode;this.canvas=m;this.own(m,l.subscribe(d+"/cancel",k.hitch(this, "cancel")),l.subscribe(d+"/select",k.hitch(this,"_select")));m=m.load(this.CanvasNode,"100%","100%").then(function(d){var g=d.sceneServer.svgDocument,l=d.toolStack,k=d.styler,m=k.createStylingLayer({id:"selection",zOrder:90,displayMode:k.COMBINE_DISPLAY}),s=k.createStylingLayer({id:"default-view"});l.addTool(new q({app:b,diagram:e}));l.addTool(new p({app:b}));l.addTool(new u);l.addTool(new f);l.addTool(new c);l.addTool(new a);l.addTool(new n);r.defaultViewStylingLayer=s;r.selectionStylingLayer=m; h.forEach(b.data.optViewsStore.query(),function(a){k.createStylingLayer({id:a.id,zOrder:3})});k.updateMaskBackground();m.set("show",!0);g=g.createElementNS("http://www.w3.org/1999/xhtml","link");g.setAttribute("type","text/css");g.setAttribute("rel","stylesheet");l=document.styleSheets;m=l.length;for(s=0;s=e.left()&&e.right()>=this.left()&&this.bottom()>=e.top()&&e.bottom()>=this.top()},extend:function(h,l){var b=new e(h,l),k=Math.max(this.right(),b.x),d=Math.max(this.bottom(),b.y);this.x=Math.min(this.x,b.x);this.y=Math.min(this.y,b.y);this.width=k-this.x; this.height=d-this.y;return this},expand:function(e){this.x-=e;this.y-=e;this.width+=2*e;this.height+=2*e;return this}};return k})},"webview/base/Point":function(){define([],function(){var e=function(k,h){var l;this.y=this.x=0;"number"===typeof k&&"number"===typeof h?(this.x=k,this.y=h):"string"===typeof k?(l=k.split(" "),2!==l.length&&(l=k.split(",")),2===l.length&&(this.x=parseFloat(l[0]),this.y=parseFloat(l[1]))):k instanceof Array&&"number"===typeof k[0]&&"number"===typeof k[1]?(this.x=k[0],this.y= k[1]):k instanceof e&&(this.x=k.x,this.y=k.y)};return e})},"webview/mg/Canvas":function(){define("dojo/_base/declare dojo/_base/array dojo/on dojo/topic dojo/Deferred ../utils/svg ../utils/dom ../base/Point ../base/Rect ./registry ./SceneServer ./Styler ./TextSelection ./Cursor ../tools/ToolStack".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q){e=function(b,c){c||alert('You must specify an id for Canvas construction for svg file "'+b+'"');this.id=c;this.toolStack=this.htmlElement=this.sceneServer= null;m.hasSvgSupport?(this.htmlElement=m.createHtmlElement(b,"0px","0px"),this.htmlElement.setAttribute("id",c),a.addCanvas(this)):l.publish("webview:mg:Canvas:noSvgSupport")};e.prototype={load:function(a,c,d){var g=this,e,l=g.htmlElement,k=new b;m.hasNativeSvgSupport&&!m.hasMatlabWebKitSupport?(e=function(){g.sceneServer=new f(g.htmlElement,c,d);g.toolStack=new q(g);g.styler=new u(g);g._doTextLOD();g.selection=new p(g);g.cursor=new n(g);k.resolve(g)},h.once(l,"load",e)):(e=function(){g.isLoaded()? (g.sceneServer=new f(g.htmlElement,c,d),g.toolStack=new q(g),g.styler=new u(g),g._doTextLOD(),g.selection=new p(g),g.cursor=new n(g),k.resolve(g)):setTimeout(e,250)},setTimeout(e,250));a.appendChild(l);return k.promise},destroy:function(){a.removeCanvas(this.id);this.focusNode=this._textNodes=this.htmlElement=this.id=null;this.sceneServer&&this.sceneServer.destroy();this.toolStack&&this.toolStack.destroy();this.cursor&&this.cursor.destroy();this.styler&&this.styler.destroy()},width:function(){return this.htmlElement.getAttribute("width")}, setWidth:function(a){this.htmlElement.setAttribute("width",a)},height:function(){return this.htmlElement.getAttribute("height")},setHeight:function(a){this.htmlElement.setAttribute("height",a)},isLoaded:function(){return m.isSvgLoaded(this.htmlElement)},position:function(){return d.position(this.htmlElement)},viewOffset:function(){return this.position().topLeft()},viewExtents:function(){var a=this.position();return[a.width(),a.height()]},sceneRectInView:function(){return this.sceneServer.sceneRectInView()}, sceneRect:function(){return this.sceneServer.sceneRect()},scale:function(){var a=this.sceneRectInView();return this.position().width/a.width},nextZoomScale:function(a){var b=this.scale();return 0c&&0Math.abs(e*n)?"none"!==m.getAttribute(b,"display")&&(m.setAttribute(b,"display","none"),l+=1):m.hasAttribute(b,"display")&&(b.removeAttribute("display"),l-=1))}this._nHiddenText=l}this._lastScale=a}};return e})},"webview/utils/dom":function(){define(["../base/Rect"], function(e){return{position:function(k){var h=new e;h.width=k.offsetWidth;for(h.height=k.offsetHeight;k&&!isNaN(k.offsetLeft)&&!isNaN(k.offsetTop);)h.x+=k.offsetLeft-k.scrollLeft,h.y+=k.offsetTop-k.scrollTop,k=k.offsetParent;return h}}})},"webview/mg/registry":function(){define(["dojo/_base/unload","dojo/store/Memory"],function(e,k){var h=new k,l={getCanvas:function(b){return h.get(b)},addCanvas:function(b){h.get(b.id)&&console.error("Canvas's id must be unique! Id, "+b.id+", is already in use!"); h.put(b)},removeCanvas:function(b){h.remove(b)},destroyAllCanvases:function(){h.query().forEach(function(b){h.remove(b.id);b.destroy()})}};e.addOnWindowUnload(l.destroyAllCanvases);return l})},"webview/mg/SceneServer":function(){define("dojo/_base/declare ../utils/svg ../utils/units ../utils/dom ../base/Rect ./Scene".split(" "),function(e,k,h,l,b,m){return e(null,{constructor:function(b,g,c){this.htmlElement=b;this.heightAttrib=c||"100%";this.widthAttrib=g||"100%";this._initSvgSceneHierarchy();this._initHtmlViewportSize(); this._initBaseSceneViewbox()},svgDocument:null,documentElement:null,backgroundScene:null,baseScene:null,foregroundScene:null,htmlElement:null,heightAttrib:null,widthAttrib:null,widthPixels:null,heightPixels:null,destroy:function(){this.documentElement=this.svgDocument=void 0;this.backgroundScene.destroy();this.baseScene.destroy();this.foregroundScene.destroy()},_cacheSceneRect:null,MIN_SCALE:0.25,MAX_SCALE:10,showSceneRect:function(d,g,c,a){d=new b(d,g,c,a);this.sceneRect();g=d.width/d.height;c=d.center(); a=this.sceneRectInView();a=a.width/a.height;g>a?d.height=d.height*g/a:d.width=d.width*a/g;d.setCenter(c);this.baseScene.setViewBox(d)},sceneRectInView:function(){return this.baseScene.viewBox()},sceneRect:function(){var d,g,c,a;d=this._cacheSceneRect;if(!d||1>d.width)k.hasAdobePluginSvgSupport?(d=this.documentElement.getBBox(),d=new b(d.x,d.y,d.width,d.height),g=this.sceneRectInView(),c=g.width/this.widthPixels,a=g.height/this.heightPixels,d.x=g.x+d.x*c,d.y=g.y+d.y*a,d.width*=c,d.height*=a):(d=this.baseScene.getBoundingBox(), d=new b(d.x,d.y,d.width,d.height)),this._cacheSceneRect=d;return new b(this._cacheSceneRect)},_handlePercentageResize:function(){var b=this.htmlElement,g=this.documentElement,c=l.position(b.parentElement),a=this.baseScene,f=a.viewBox(),e,h;0<=this.heightAttrib.indexOf("%")&&(e=c.height,b.setAttribute("height",e+"px"),f.height*=e/this.heightPixels,this.heightPixels=e);0<=this.widthAttrib.indexOf("%")&&(h=c.width,b.setAttribute("width",h+"px"),f.width*=h/this.widthPixels,this.widthPixels=h);g.setAttribute("height", e+"px");g.setAttribute("width",h+"px");a.setViewBox(f)},_initBaseSceneViewbox:function(){var b=this.baseScene,g=b.rootElement,c=b.viewBox(),a=c.width/c.height,f=c.center(),e=this.widthPixels/this.heightPixels;a>e?c.height=c.height*a/e:c.width=c.width*e/a;c.setCenter(f);b.setViewBox(c);g.setAttribute("height","100%");g.setAttribute("width","100%")},_initSvgSceneHierarchy:function(){var b=k.XMLNS,g=k.getSvgDocument(this.htmlElement),c=g.createElementNS(b,"svg"),a=g.createElementNS(b,"svg"),f=g.documentElement, b=g.createElementNS(b,"svg"),e=g.createDocumentFragment();this.svgDocument=g;this.documentElement=c;this.backgroundScene=new m(a);this.baseScene=new m(f);this.foregroundScene=new m(b);g.removeChild(g.documentElement);e.appendChild(c);c.appendChild(a);c.appendChild(f);c.appendChild(b);c.setAttribute("zoomAndPan","disable");g.appendChild(e);this._initBackgroundHierarchy()},_initBackgroundHierarchy:function(){var d=this.documentElement.getElementById("background"),g=this.backgroundScene,c=g.rootElement, a;c.setAttribute("width","100%");c.setAttribute("height","100%");c.setAttribute("preserveAspectRatio","none");d&&(a=new b(d.getBBox()),k.getParent(d).removeChild(d),c.appendChild(d),g.setViewBox(a.toString()))},_initHtmlViewportSize:function(){var b=this.baseScene.rootElement,g=l.position(this.htmlElement.parentElement),c=!1,a=!1;this.heightAttrib||(this.heightAttrib=b.getAttribute("height"));c=0<=this.heightAttrib.indexOf("%");this.widthAttrib||(this.widthAttrib=b.getAttribute("width"));a=0<=this.widthAttrib.indexOf("%"); this.heightPixels=c?g.height:h.getPixelValue(this.heightAttrib);this.widthPixels=a?g.width:h.getPixelValue(this.widthAttrib);this.resize=c||a?this._handlePercentageResize:function(){};(0===this.widthPixels||0===this.heightPixels)&&console.error("SceneServer: Invalid width or height");this.htmlElement.setAttribute("width",this.widthPixels+"px");this.htmlElement.setAttribute("height",this.heightPixels+"px");this.documentElement.setAttribute("height",this.heightPixels+"px");this.documentElement.setAttribute("width", this.widthPixels+"px")}})})},"webview/utils/units":function(){define([],function(){var e=function(){var e=document.createElement("div"),b;e.setAttribute("style","height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;");document.documentElement.appendChild(e);b=e.offsetWidth;document.documentElement.removeChild(e);return b}(),k=function(){var e=document.createElement("div"),b;e.setAttribute("style","font-size:1em; position:absolute; line-height:1; padding:0; visibility:hidden");e.appendChild(document.createTextNode("M")); document.documentElement.appendChild(e);b=e.offsetHeight;document.documentElement.removeChild(e);return b}(),h=/(\d+\.*\d*)\s*(\w*)/;return{getPixelValue:function(l){var b;if(l)if(b=h.exec(l),3===b.length)switch(l=parseFloat(b[1]),b=b[2].toLowerCase(),b){case "in":b=e*l;break;case "mm":b=e/25.4*l;break;case "cm":b=e/2.54*l;break;case "em":b=k*l;break;case "ex":b=2*k*l;break;case "pt":b=e/72*l;break;case "pc":b=e/6*l;break;default:b=l}else b=parseFloat(l);return b}}})},"webview/mg/Scene":function(){define(["dojo/_base/declare", "../base/Rect","../utils/svg"],function(e,k,h){return e(null,{constructor:function(e){var b=e.ownerDocument,k;h.hasAdobePluginSvgSupport||(k=[b.createElementNS(h.XMLNS,"rect"),b.createElementNS(h.XMLNS,"rect")],k[0].setAttribute("width",100),k[0].setAttribute("height",100),k[1].setAttribute("width",1),k[1].setAttribute("height",1),k[0].setAttribute("stroke","none"),k[0].setAttribute("fill","none"),k[1].setAttribute("stroke","none"),k[1].setAttribute("fill","none"),e.appendChild(k[0]),e.appendChild(k[1])); this.rootElement=e;this._cornerElements=k},destroy:function(){this.rootElement=void 0},viewBox:function(){var e,b;this._viewBox||(e=this.rootElement,this._viewBox=e=(b=e.getAttribute("viewBox"))?new k(e.getAttribute("viewBox")):new k(0,0,0,0));return this._viewBox},setViewBox:function(e){e=new k(e);var b=this._cornerElements;this.rootElement.setAttribute("viewBox",e.toString());b&&(b[0].setAttribute("x",e.x-5),b[0].setAttribute("y",e.y-5),b[1].setAttribute("x",e.right()+5),b[1].setAttribute("y",e.bottom()+ 5));this._viewBox=e},getBoundingBox:function(){var e=this._cornerElements,b=this.rootElement,m;h.hasAdobePluginSvgSupport&&alert("Adobe SVG plugin does not return correct bounding box!");e&&(b.removeChild(e[0]),b.removeChild(e[1]));m=b.getBBox();m=new k(m.x,m.y,m.width,m.height);e&&(b.appendChild(e[0]),b.appendChild(e[1]));return m}})})},"webview/mg/TextSelection":function(){define(["dojo/_base/declare","../utils/svg"],function(e,k){return e(null,{constructor:function(e){var l=e.sceneServer,b=l.svgDocument; this.documentElement=l.documentElement;if(b.getSelection)this._selection=b.getSelection();else if(e=e.htmlElement.contentWindow)this._selection=e.getSelection()},enable:function(){var e=this.documentElement,l,b;l=k.getAttribute(e,"style")||"";-1===l.indexOf("-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;")&&(b=l.replace("-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;", "-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;"),b===l?k.setAttribute(e,"style",l+"-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;"):k.setAttribute(e,"style",b))},disable:function(){var e=this.documentElement,l,b;l=k.getAttribute(e,"style")||"";-1===l.indexOf("-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;")&& (b=l.replace("-webkit-touch-callout: text; -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;","-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"),b===l?k.setAttribute(e,"style",l+"-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"):k.setAttribute(e, "style",b))},toString:function(){var e=this._selection;return e?e.toString():""},clear:function(){try{this._selection.removeAllRanges()}catch(e){}},_getSvgSelection:function(e){var l,b=e.sceneServer.svgDocument;b.getSelection?l=b.getSelection():(e=e.htmlElement.contentWindow)&&(l=e.getSelection());return l}})})},"webview/mg/Cursor":function(){define("require dojo/_base/declare dojo/_base/window dojo/Stateful dijit/Destroyable ../utils/svg".split(" "),function(e,k,h,l,b,m){h=document.URL;h=h.substring(0, Math.max(h.lastIndexOf("/"),h.lastIndexOf("\\"))+1);var d={Default:{name:"Default",curName:"default"},Wait:{name:"Wait",curName:"wait"},ClosedHand:{name:"ClosedHand",curFile:h+e.toUrl("./images/closed_hand.cur"),imgFile:h+e.toUrl("./images/closed_hand.png"),imgWidth:16,imgHeight:16},OpenHand:{name:"OpenHand",curFile:h+e.toUrl("./images/open_hand.cur"),imgFile:h+e.toUrl("./images/open_hand.png"),imgWidth:16,imgHeight:16},ZoomIn:{name:"ZoomIn",curFile:h+e.toUrl("./images/zoom_in.cur"),imgFile:h+e.toUrl("./images/zoom_in.png"), imgWidth:16,imgHeight:16}},g=k(b,{constructor:function(b){function a(a){k.setAttribute("x",a.clientX-d.imgWidth/2);k.setAttribute("y",a.clientY-d.imgHeight/2)}var d=b.cursor,g=b.x,e=b.y;b=b.canvas.sceneServer;var h=b.documentElement,l=b.foregroundScene.rootElement,k=b.svgDocument.createElementNS(m.XMLNS,"image");k.setAttributeNS("http://www.w3.org/1999/xlink","href",d.imgFile);k.setAttribute("width",d.imgWidth);k.setAttribute("height",d.imgHeight);g&&k.setAttribute("x",g-d.imgWidth/2);e&&k.setAttribute("y", e-d.imgHeight/2);k.setAttribute("visiblity","visible");h.addEventListener("mousemove",a,!1);this.own({remove:function(){h.removeEventListener("mousemove",a,!1);l.removeChild(k)}});l.appendChild(k)}});return k(null,{constructor:function(b){this.canvas=b;this._name="Default"},destroy:function(){this._asvCursor&&this._asvCursor.destroy()},toString:function(){return this._name},set:function(b){var a=b.name?d[b.name]:d[b],f=this.canvas.sceneServer.documentElement;a.curName?f.style.cursor=a.curName:a&& (f.style.cursor="url("+a.curFile+"),default");this._asvCursor&&this._asvCursor.destroy();m.hasAdobePluginSvgSupport&&a.imgFile&&(this._asvCursor=new g({canvas:this.canvas,cursor:a,x:b.x,y:b.y}));this._name=a.name}})})},"webview/tools/ToolStack":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/window dojo/store/Memory dojo/on dojo/keys dijit/Destroyable ../utils/svg ../base/Event".split(" "),function(e,k,h,l,b,m,d,g,c,a){var f,u;return e(g,{constructor:function(a){a.isLoaded()|| console.error("Canvas must be loaded.");this.canvas=a;this._stack=new b({idProperty:"role"});this._registerEvents()},destroy:function(){this.clearToolStack();this.inherited(arguments)},addTool:function(a){var b=this._stack;this.removeTool(a.role);b.put(a);a.onAddToStack(this)},removeTool:function(a){var b=this._stack,c=b.get(a);c&&(c.onRemoveFromStack(),b.remove(a))},getTool:function(a){return this._stack.get(a)},clearToolStack:function(){var a=this._stack,b=a.query();h.forEach(b,function(b){b.onRemoveFromStack(); a.remove(b.id)})},cancelAllTools:function(){var a=this._stack.query();h.forEach(a,function(a){a.cancel()})},moveToolAbove:function(a,b){var c=this._stack,d,f=this.getTool(a);d=this.getTool(b);var g=[];f&&d&&(c.remove(a),d=c.query(),h.forEach(d,function(a){g.push(a);a.role===b&&g.push(f)}),c.setData(g))},moveToolBelow:function(a,b){var c=this._stack,d,f=this.getTool(a);d=this.getTool(b);var g=[];f&&d&&(c.remove(a),d=c.query(),h.forEach(d,function(a){a.role===b&&g.push(f);g.push(a)}),c.setData(g))}, addToolAbove:function(a,b){this.addTool(a);this.moveToolAbove(a.role,b)},addToolBelow:function(a,b){this.addTool(a);this.moveToolBelow(a.role,b)},cancelAllToolsExcept:function(a){var b=this._stack.query();h.forEach(b,function(b){b.role!==a&&b.cancel()})},_registerEvents:function(){var a=this,b=this.canvas,d=b.focusNode,f=b.sceneServer.svgDocument.documentElement,g=[{evtName:"mouseup",handler:"handleMouseUpEvent"},{evtName:"mousedown",handler:"handleMouseDownEvent"},{evtName:"mouseover",handler:"handleMouseOverEvent"}, {evtName:"mousemove",handler:"handleMouseMoveEvent"},{evtName:"mouseout",handler:"handleMouseOutEvent"},{evtName:"keyup",handler:"handleKeyUpEvent"},{evtName:"keydown",handler:"handleKeyDownEvent"}];c.hasAdobePluginSvgSupport?(h.forEach(g,function(b){var c=function(c){a.handleGenericEvent(b.handler,c)};f.addEventListener(b.evtName,c,!1);this.own({remove:function(){f.removeEventListener(b.evtName,c,!1)}})}),f.addEventListener("click",a.handleClick,!1),this.own({remove:function(){f.removeEventListener("click", a.handleClick,!1)}},m(b.htmlElement,"mousewheel",function(c){var d=b.position();c=k.mixin({},c);var f=l.doc;c.clientX=c.clientX-d.x+f.documentElement.scrollLeft;c.clientY=c.clientY-d.y+f.documentElement.scrollTop;a.handleGenericEvent("handleMouseWheelEvent",c)}))):(g.push({evtName:"DOMMouseScroll",handler:"handleMouseWheelEvent"}),g.push({evtName:"mousewheel",handler:"handleMouseWheelEvent"}),h.forEach(g,function(b){a.own(m(f,b.evtName,function(c){a.handleGenericEvent(b.handler,c)}))}),this.own(m(f, "click",function(b){a.handleClick(b)})));this.own(m(d,"keydown",function(b){a.handleGenericEvent("handleKeyDownEvent",b)}),m(d,"keyup",function(b){a.handleGenericEvent("handleKeyUpEvent",b)}))},handleGenericEvent:function(b,c){var f=this.activeTool,g,e,l,k=c instanceof a?c:new a(c);"handleKeyUpEvent"===b&&k.getKeyCharOrCode()===d.ESCAPE&&(e=this._stack.query(),h.forEach(e,function(a){if(a.isActive()||a.isAlert())k.consume(),a.cancel()}));f&&f.handleGenericEvent(b,k);e=this._stack.query().reverse(); l=0;for(g=e[l];!k.isConsumed()&&g;)g!==f&&g.handleGenericEvent(b,k),g=e[l+=1]},handleClick:function(b){b=new a(b);this.handleGenericEvent("handleClickEvent",b);b.isConsumed()?u=null:(u===b.domEvent.target&&this.handleGenericEvent("handleDoubleClickEvent",b),u=b.domEvent.target,f&&clearTimeout(f),f=setTimeout(function(){f=u=null},500))}})})},"webview/base/Event":function(){define(["dojo/_base/declare","./Point"],function(e,k){return e(null,{constructor:function(e){var l=!1;this.domEvent=e;this.isConsumed= function(){return l};this.consume=function(){var b=this.domEvent;if("mousedown"!==b.type||!this.isLeftMouse(b))b.preventDefault&&b.preventDefault(),b.preventDefault&&b.stopPropagation(),b.returnValue=!1;if(b=window.event)b.returnValue=!1;l=!0}},getKeyCharOrCode:function(){var e=this.domEvent;return e.charCode||e.keyCode},shiftKey:function(){return this.domEvent.shiftKey},ctrlKey:function(){return this.domEvent.ctrlKey},altKey:function(){return this.domEvent.altKey},getMousePosition:function(){var e= this.domEvent;return new k(e.clientX,e.clientY)},isLeftMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&0===e.button},isMiddleMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&1===e.button},isRightMouse:function(){var e=this.domEvent;return"number"===typeof e.button&&2===e.button},mouseWheelDir:function(){var e=this.domEvent;return e.wheelDelta?0e.detail?1:-1}})})},"webview/tools/PanTool":function(){define(["dojo/_base/declare","dojo/keys", "../base/Point","./Tool"],function(e,k,h,l){return e(l,{postMixInProperties:function(){this.role="PanTool";this.panState={mousePosition:null,isPanning:!1,spaceKeyInitiated:!1}},becomeIdle:function(){var b=this.canvas,e=this.panState;this.inherited(arguments);e.spaceKeyInitiated=!1;e.isPanning=!1;e.mousePosition=null;b&&b.cursor.set("Default")},becomeAlert:function(b){this.inherited(arguments);this.canvas.cursor.set({name:"OpenHand",x:b.domEvent.clientX,y:b.domEvent.clientY})},becomeActive:function(b){this.inherited(arguments); this.canvas.cursor.set({name:"ClosedHand",x:b.domEvent.clientX,y:b.domEvent.clientY});this.panState.mousePosition=null},handleMouseDownEvent:function(b){this.isIdle()&&b.isMiddleMouse()?this.becomeAlert(b):this.isAlert()&&b.isLeftMouse()&&this.becomeActive(b)},handleMouseMoveEvent:function(b){var e=this.canvas,d=e.scale(),g=this.panState,c;this.isAlert()&&!g.spaceKeyInitiated&&this.becomeActive(b);this.isActive()&&(b=b.getMousePosition(),g.mousePosition?(c=new h(g.mousePosition.x-b.x,g.mousePosition.y- b.y),e.translate(-c.x/d,-c.y/d),g.mousePosition=b,g.isPanning=!0):g.mousePosition=b)},handleClickEvent:function(b){this.isActive()&&(this.panState.spaceKeyInitiated?this.becomeAlert(b):this.becomeIdle(),b.consume())},keyPanPercent:0.05,handleKeyDownEvent:function(b){function e(b,a,d,h){var l=a.sceneRectInView();a.translate(g*d*l.width,g*h*l.height);b.consume()}var d=this.canvas,g=this.keyPanPercent;if(this.isIdle())if(b.getKeyCharOrCode()===k.SPACE)this.panState.spaceKeyInitiated=!0,this.becomeAlert(b); else if(!b.altKey()&&!b.ctrlKey())switch(b.getKeyCharOrCode()){case k.UP_ARROW:case k.NUMPAD_8:e(b,d,0,1);break;case k.DOWN_ARROW:case k.NUMPAD_2:e(b,d,0,-1);break;case k.LEFT_ARROW:case k.NUMPAD_4:e(b,d,1,0);break;case k.RIGHT_ARROW:case k.NUMPAD_6:e(b,d,-1,0)}},handleKeyUpEvent:function(b){if(b.getKeyCharOrCode()===k.SPACE&&(this.isAlert()||this.isActive()))this.panState.isPanning&&b.consume(),this.becomeIdle()}})})},"webview/tools/Tool":function(){define(["dojo/_base/declare","dojo/Evented","../base/EventHandler"], function(e,k,h){return e([k,h],{constructor:function(h){this.role="";this.state=this.IDLE;this.consumeEventWhenActive=!0;e.safeMixin(this,h);this.postMixInProperties()},postMixInProperties:function(){},destroy:function(){},IDLE:0,ACTIVE:1,ALERT:2,DONE:3,isIdle:function(){return this.state===this.IDLE},isAlert:function(){return this.state===this.ALERT},isActive:function(){return this.state===this.ACTIVE},isDone:function(){return this.state===this.DONE},becomeIdle:function(){this._becomeNewState(this.IDLE); this.emit("idle")},becomeAlert:function(){this._becomeNewState(this.ALERT);this.emit("alert")},becomeActive:function(){var e=this.toolStack;this._becomeNewState(this.ACTIVE);e.cancelAllToolsExcept(this.role);e.activeTool=this;this.emit("active")},becomeDone:function(){this._becomeNewState(this.DONE);this.toolStack.removeTool(this.role);this.emit("done")},cancel:function(){this.isIdle()||this.becomeIdle()},onAddToStack:function(e){this.toolStack=e;this.canvas=e.canvas},onRemoveFromStack:function(){this.canvas= this.toolStack=null},handleGenericEvent:function(e,b){this[e](b);this.isActive()&&this.consumeEventWhenActive&&b.consume()},_becomeNewState:function(e){var b=this.toolStack,h,d;this.state===e&&console.error("Tool state did not change");this.isActive()&&(h=b.activeTool.role,d=this.role,h!==d&&console.error("Unexpected active tool: "+h+"expected: "+d),b.activeTool=void 0);this.state=e}})})},"webview/base/EventHandler":function(){define(["dojo/_base/declare"],function(e){return e(null,{constructor:function(){}, handleMouseWheelEvent:function(e){},handleMouseMoveEvent:function(e){},handleMouseDownEvent:function(e){},handleMouseUpEvent:function(e){},handleMouseOverEvent:function(e){},handleMouseOutEvent:function(e){},handleClickEvent:function(e){},handleDoubleClickEvent:function(e){},handleKeyDownEvent:function(e){},handleKeyUpEvent:function(e){}})})},"webview/tools/ScrollWheelTool":function(){define(["dojo/_base/declare","./Tool"],function(e,k){return e(k,{postMixInProperties:function(){this.role="ScrollWheelTool"}, handleMouseWheelEvent:function(e){var l=this.canvas,b=e.mouseWheelDir();e.shiftKey()?l.translate(-0.05*l.sceneRectInView().width*b,0):e.ctrlKey()?l.translate(0,-0.05*l.sceneRectInView().height*b):l.setScaleAroundScenePoint(l.nextZoomScale(b),l.viewPointToScenePoint(e.getMousePosition()));e.consume()}})})},"webview/tools/FitToViewTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){return e(h,{postMixInProperties:function(){this.role="FitToViewTool"},handleKeyUpEvent:function(e){e.getKeyCharOrCode()=== k.SPACE&&(this.becomeActive(),this.canvas.zoomToSceneRect(),this.becomeIdle(),e.consume())}})})},"webview/tools/KeyboardZoomTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){var l="+".charCodeAt(),b="-".charCodeAt(),m="1".charCodeAt();return e(h,{postMixInProperties:function(){this.role="KeyboardZoomTool"},handleKeyUpEvent:function(d){var g=this.canvas,c=g.scale();switch(d.getKeyCharOrCode()){case k.NUMPAD_PLUS:case l:case 187:this.becomeActive();g.setScale(1.1*c); this.becomeIdle();d.consume();break;case k.NUMPAD_MINUS:case b:case 189:this.becomeActive();g.setScale(0.9*c);this.becomeIdle();d.consume();break;case m:d.altKey()&&(this.becomeActive(),g.zoomToActualSize(),this.becomeIdle(),d.consume())}}})})},"webview/tools/KeyboardESCBackTool":function(){define(["dojo/_base/declare","dojo/keys","./Tool"],function(e,k,h){return e(h,{postMixInProperties:function(){this.role="KeyboardESCBackTool"},handleKeyUpEvent:function(e){switch(e.getKeyCharOrCode()){case k.ESCAPE:window.history.back(), e.consume()}}})})},"webview/tools/TextSelectionTool":function(){define(["dojo/_base/declare","./Tool"],function(e,k){return e(k,{postMixInProperties:function(){this.role="TextSelection";this.consumeEventWhenActive=!1;this._disableInDBClick=/chrome/.test(navigator.userAgent.toLowerCase())},cancel:function(){this.inherited(arguments);this.canvas.selection.clear()},handleMouseDownEvent:function(e){var l=this.canvas;!this.isAlert()&&e.isLeftMouse()&&(this.becomeAlert(),l.selection.clear(),this._startMousePos= e.getMousePosition(),this._disableInDBClick&&l.selection.disable())},handleMouseMoveEvent:function(e){this.isAlert()&&this._didMouseMove(e)&&(this.becomeActive(),this._disableInDBClick&&this.canvas.selection.enable())},handleClickEvent:function(e){var l=this.canvas,b;this.isActive()?(b=l.selection.toString(),""!==b&&e.consume(),this._disableInDBClick&&""===b&&l.selection.disable(),this.becomeIdle()):this.isAlert()&&this.becomeIdle()},_didMouseMove:function(e){e=e.getMousePosition();var l=this._startMousePos; return l&&(l.x!==e.x||l.y!==e.y)}})})},"webview/tools/DelegateToHandlerTool":function(){define("dojo/_base/declare require dojo/store/Memory ../utils/svg ./Tool ../handlers/ElementHandler ../handlers/ContainerHandler".split(" "),function(e,k,h,l,b,m){return e(b,{postMixInProperties:function(){this.role="DelegateToHandlerTool";this._cache=new h;this.defaultHandler=new m},getHandler:function(b){b=b.domEvent.target;var g=this.app,c=this.diagram,a,f,e,h;for(h=this.defaultHandler;b;){if(e=l.getAttribute(b, "id")){if(e===this._lastTargetId)return this._lastJsHandler;if(a=c.getElement(e))if(f=a.backing.viewer)if(f=f.jshandler,"string"===typeof f)return h=this._getJsHandlerFromCache(f),h||(h=new (k(f)),this._addJsHandlerToCache(f,h)),h.init({app:g,diagram:c,element:a,svgNode:b,canvas:this.canvas}),this._lastTargetId=e,this._lastJsHandler=h}b=l.getParent(b)}h.init({app:g,diagram:c,element:null,svgNode:null,canvas:this.canvas});return h},handleGenericEvent:function(b,e){var c=this.getHandler(e);c&&(c[b](e), this.toolStack&&e.isConsumed()&&(this.becomeActive(),this.becomeIdle()))},_getJsHandlerFromCache:function(b){b=this._cache.get(b);var e;b&&b.jshandler&&(e=b.jshandler);return e},_addJsHandlerToCache:function(b,e){this._cache.put({id:b,jshandler:e})}})})},"webview/handlers/ElementHandler":function(){define(["dojo/_base/declare","dojo/_base/lang","../base/EventHandler"],function(e,k,h){return e(h,{init:function(e){this.reset();k.mixin(this,e)},reset:function(){this.canvas=this.svgNode=this.element= this.diagram=this.app=null},handleClickEvent:function(e){e=this.app;var b=this.element||this.diagram;b&&e.select(b,{svgNode:this.svgNode})},handleDoubleClickEvent:function(e){var b=this.element||this.diagram;b&&(this.app.open(b),e.consume())}})})},"webview/handlers/ContainerHandler":function(){define(["dojo/_base/declare","./ElementHandler"],function(e,k){return e(k,{handleDoubleClickEvent:function(e){var l=this.app,b=l.data.diagramStore.getTargetDiagram(this.element);b&&l.open(b,{tab:e.ctrlKey()? "new":"reuse"}).then(function(){l.modelViewer.focus()});e.consume()}})})},"webview/widgets/EmptyModelGraphicsPane":function(){define(["dojo/_base/declare","dojo/topic","dijit/layout/ContentPane","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,h,l){return e([h],{postCreate:function(){this.inherited(arguments);this.set("class","no-export");this.set("innerHTML",l.NoExport)},startup:function(){k.publish(this.app.id+"/select",this.diagram);k.publish(this.app.id+"/postOpen",this.diagram)}})})}, "webview/widgets/LightBox":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/query dojo/Deferred dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/on dijit/_WidgetBase dijit/_TemplatedMixin dijit/_CssStateMixin dijit/layout/ContentPane dijit/focus ../base/Rect MW/rtc/plugins/language/matlab/tokenizer/TokenState MW/rtc/plugins/language/matlab/tokenizer/TokenConstants MW/syntaxhighlighting/ColorMapDefaults dojo/text!./templates/LightBox.html dojo/i18n!dijit/nls/common".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u,p,n,q,r,s,x,w,y,A){return e([f,u,p],{templateString:y,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},content:null,_setContentAttr:function(a){this.contentPane.set("content",a);this.resize()},_hasContentToShow:!1,href:null,_setHrefAttr:function(a){this.contentPane.set("href",a);this.resize()},contentPane:null,isOpen:!1,_lastObjId:"",_lastViewId:"",_contentSize:null,_titleBarSize:null, spacing:20,postMixInProperties:function(){k.mixin(this,A);this.inherited(arguments)},startup:function(){var b=this.app.id,c=this.app,d=this;this.own(a(this.dialogNode,"keyup",k.hitch(this,"_onKeyUp")),a(this.underlayNode,"click",k.hitch(this,"close")),h.subscribe(b+"/open",function(a,b){c.isElement(a)&&d.open(a,b)}),h.subscribe(b+"/close",k.hitch(this,"close")),h.subscribe(b+"/select",k.hitch(this,"_select")),h.subscribe(b+"/postClose",k.hitch(this,"close")));this.contentPane=new n({content:this.content, style:"padding: 0"},this.contentNode);this.reset()},destroy:function(){this._tableSignal&&this._tableSignal.remove()},resize:function(){this.isOpen&&(this._sizeWidget(),this._sizeDialog(),this._positionDialog())},open:function(a,b){var c=this,d=this.app,f=a.backing.sid,e=a.backing,g=e.obj_viewer,n=0a&&(e=a);var h=c;a>f?(this._deleteTokenPlaceHolders(c,a,a-f,f),this._deleteLineHandles(e,c)):a=a&&(delete this._tokenMap[b],delete this._tokensOnLine[b])}))},_deleteLineHandles:function(b,e){for(var c=e-1;c>=b;c--)this._removeLineHandle(c)},_removeLineHandle:function(b){b+1=b;l--){for(var f=this._tokenMap[l],n=0;nc&&n&&(a=!0),e++,e===h&&(a=!0);-1===f&&(f=c);return f}},createStateHandle:function(b,e){var c=this.getLexStateForLine(e);return this._createStateHandle(b,e,c)},_createStateHandle:function(b,e,c){return this.tokenizeCode(b[e],e,c)},tokenizeCode:function(b, e,c){var a=b.length+3,f=[],h=this._tokenizer.lex_line(f,a,c,b,b.length);this._notEnoughRoom(h)&&(h=this._tokenizer.lex_line(f,2*a,c,b,b.length));this._isLineExecutable[e]=h.isExecutable;this._parseTokens(f,b,e);this._tokensChanged=this._tokensOnLine[e]!==JSON.stringify(this._tokenMap[e]);this._tokensOnLine[e]=JSON.stringify(this._tokenMap[e]);return h.newState},_isLineUnchanged:function(b,e){return this.areStatesEqual(e,this.getLexStateForLine(b+1))&&!this._tokensChanged},_notEnoughRoom:function(b){return-1=== b.numTokens},getLexStateForLine:function(b){return this._savedLexStates[b]},getExecutableLineData:function(){return this._isLineExecutable},isLineContinuation:function(b){return this._tokenizer.is_contin(b)},areStatesEqual:function(b,e){if(b&&e)return this._tokenizer.are_states_equal(b,e)},getNumberOfSavedStates:function(){return this._savedLexStates.length},getTokenMap:function(){return this._tokenMap},getLastToken:function(b){var e=null;if((b=this._tokenMap[b])&&0>this.SHIFT_FOR_LENGTH;return e},destroy:function(){this._tokenMap={};this._tokenizer={};this._lexState={};this._savedLexStates=[];this._isLineExecutable= []}})})},"MW/rtc/plugins/language/matlab/tokenizer/TokenConstants":function(){define([],function(){var e={FUNCTION:1,NESTED:2,IF:3,SWITCH:4,TRY:5,WHILE:6,FOR:7,END:8,ELSE:9,ELSEIF:10,BREAK:11,RETURN:12,PARFOR:13,GLOBAL:15,PERSISTENT:16,CATCH:20,CONTINUE:21,CASE:22,OTHERWISE:23,CLASSDEF:25,PROPERTIES:28,METHODS:30,EVENTS:31,ENUMERATION:32,SPMD:33,PARSECTION:34,SECTION:35,ID:40,EEND:41,INT:42,FLOAT:43,STRING:44,DUAL:45,BANG:46,QUEST:47,SEMI:50,COMMA:51,LP:52,RP:53,LB:54,RB:55,LC:56,RC:57,FEEND:58,TRANS:60, DOTTRANS:61,NOT:62,AT:63,DOLLAR:64,BACKQUOTE:65,DOUBLEQUOTE:66,SHARP:67,PLUS:70,MINUS:71,MUL:72,DIV:73,LDIV:74,EXP:75,COLON:76,DOT:80,DOTMUL:81,DOTDIV:82,DOTLDIV:83,DOTEXP:84,AND:85,OR:86,ANDAND:87,OROR:88,LT:89,GT:90,LE:91,GE:92,EQ:93,NE:94,EQUALS:95,CNE:96,EOL:100,SEOL:101,CEOL:102,IEOL:103,COMMENT:105,BLKSTART:106,BLKCOM:107,BLKEND:108,SECTION_TITLE:109,PRAGMA:110,DOTDOTDOT:111,DOTDOT:112,DEEP_NEST:113,DEEP_STMT:114,WHITE:116,NEGERR:118,SEMERR:119,EOLERR:120,UNTERM:121,BADCHAR:122,DEEP_PAREN:123, FP_ERR:124,RES_ERR:125,DEEP_COM:126,BEGIN_TYPE:127,END_TYPE:128,STRING_LITERAL:129,UNTERM_STRING_LITERAL:130},k={"0":"NA",1:"function",2:"nested",3:"if",4:"switch",5:"try",6:"while",7:"for",8:"end",9:"else",10:"elseif",11:"break",12:"return",13:"parfor",14:"NA",15:"global",16:"persistent",17:"NA",18:"NA",19:"NA",20:"catch",21:"continue",22:"case",23:"otherwise",24:"NA",25:"classdef",26:"NA",27:"NA",28:"properties",29:"NA",30:"methods",31:"events",32:"enumeration",33:"reserved_mcos_keyword_33",34:"spmd", 35:"reserved_mcos_keyword_35",36:"NA",37:"NA",38:"NA",39:"NA",40:"ID",41:"\x3cend\x3e",42:"\x3cint\x3e",43:"\x3cfloat.",44:"\x3cstring\x3e",45:"\x3cdual\x3e",46:"\x3cBANG\x3e",47:"?",48:"NA",49:"NA",50:";",51:",",52:"(",53:")",54:"[",55:"]",56:"{",57:"}",58:"NA",59:"NA",60:"'",61:".'",62:"~",63:"@",64:"$",65:"`",66:"\\",67:"#",68:"NA",69:"NA",70:"+",71:"-",72:"*",73:"/",74:"\\\\",75:"^",76:":",77:"::",78:"NA",79:"NA",80:".",81:".*",82:"./",83:".\\",84:".^",85:"\x26",86:"|",87:"\x26\x26",88:"||",89:"\x3c", 90:"\x3e",91:"\x3c\x3d",92:"\x3e\x3d",93:"\x3d\x3d",94:"~\x3d",95:"\x3d",96:"\x3cCNE\x3e",97:"NA",98:"NA",99:"NA",100:"\x3cEOL\x3e",101:"\x3cSEOL\x3e",102:"\x3cCEOL\x3e",103:"\x3cIEOL\x3e",104:"NA",105:"\x3ccomment\x3e",106:"\x3cbegin block comment\x3e",107:"\x3cblock comment\x3e",108:"\x3cend block comment\x3e",109:"%%",110:"PRAGMA",111:"...",112:"\x3cDOT DOT\x3e",113:"\x3cDEEP NEST\x3e",114:"\x3cDEEP STMT\x3e",115:"NA",116:"\x3cwhitespace\x3e",117:"NA",118:"\x3cNEG ERROR\x3e",119:"\x3cSEM ERROR\x3e", 120:"\x3cEOL ERROR\x3e",121:"\x3cunterm string\x3e",122:"\x3cbadchar\x3e",123:"\x3cDEEP PAREN\x3e",124:"NA",125:"\x3cRES ERROR\x3e",126:"\x3cDEEP COM\x3e",127:"NA",129:"\x3cstring literal\x3e",130:"\x3cunterm string literal\x3e"},h={"0":339,1:333,2:333,3:333,4:333,5:333,6:333,7:333,8:333,9:333,10:333,11:333,12:333,13:333,14:333,15:333,16:333,17:333,18:333,19:333,20:333,21:333,22:333,23:333,24:333,25:333,26:333,27:333,28:333,29:333,30:333,31:333,32:333,33:333,34:333,35:333,44:44,45:45,46:338,64:122, 65:122,66:122,67:122,105:105,106:106,107:107,108:108,109:109,110:110,111:333,121:337,122:122,125:122,129:44,130:337};e.getValueOfToken=function(e){return k[e]};e.getCategoryOfToken=function(e){return h[e]};return e})},"MW/rtc/plugins/language/matlab/tokenizer/Token":function(){define(["dojo/_base/declare"],function(e){return e(null,{constructor:function(e,h,l,b,m,d){this._index=e;this._type=h;this._line=l;this._column=b;this._length=m;this._value=d},getIndex:function(){return this._index},equals:function(e){return e&& this._index===e._index&&this._type===e._type&&this._line===e._line&&this._column===e._column&&this._length===e._length&&this._value===e._value},getPositionInfo:function(){return{line:this._line,column:this._column}},setLine:function(e){this._line=e},getType:function(){return this._type},getValue:function(){return this._value}})})},"MW/rtc/plugins/language/matlab/tokenizer/Tokenizer":function(){define([],function(){var e,k,h,l,b,m,d,g,c;function a(a,b){a+=uc[b&127];a=a+" ("+(b>>8);return a+=") "}var f= 1,u=2,p=3,n=4,q=5,r=6,s=7,x=8,w=9,y=10,A=11,B=12,C=13,F=15,K=16,G=20,I=21,O=22,N=23,T=25,P=28,Q=30,L=31,J=32,H=33,V=34,W=35,R=40,Z=41,ba=42,U=43,ka=44,S=45,aa=46,ha=47,Aa=50,ia=51,qa=52,ra=53,Eb=54,lb=55,Fb=56,mb=57,Xa=58,Ya=60,nb=61,Ba=62,Fa=63,Za=64,Na=65,Oa=67,Qb=70,Db=71,oa=72,pb=73,pa=74,fc=75,Ma=76,Sb=80,qb=81,Tb=82,ob=83,Ub=84,Wa=85,Vb=86,Wb=87,xa=88,Gb=89,Rb=90,Xb=91,Hb=92,hc=93,ic=94,jc=95,sb=96,Ja=100,Pa=101,tb=102,ya=103,cb=105,za=106,Ga=107,Da=108,Ha=109,Ua=110,bb=111,Ia=112,db=113,Ib= 114,sa=116,Ea=118,vb=119,Jb=120,Qa=121,ab=122,$a=123,Ra=124,Yb=125,ub=126,eb=127,ja=128,Dc=129,rc=130,na=0,La=1,la=2,Va=3,ea=4,sc=5,dc=6,ec=7,tc=0,Ec=1,ta=2,gc=3,rb=4,uc=[null,"FUNCTION","NESTED","IF","SWITCH","TRY","WHILE","FOR","END","ELSE","ELSEIF","BREAK","RETURN","PARFOR",null,"GLOBAL","PERSISTENT",null,null,null,"CATCH","CONTINUE","CASE","OTHERWISE",null,"CLASSDEF",null,null,"PROPERTIES",null,"METHODS","EVENTS","ENUMERATION","SPMD","PARSECTION","SECTION",null,null,null,null,"ID","EEND","INT", "FLOAT","STRING","DUAL","BANG","QUEST",null,null,"SEMI","COMMA","LP","RP","LB","RB","LC","RC","FEEND",null,"TRANS","DOTTRANS","NOT","AT","DOLLAR","BACKQUOTE","DOUBLEQUOTE",null,null,null,"PLUS","MINUS","MUL","DIV","LDIV","EXP","COLON",null,null,null,"DOT","DOTMUL","DOTDIV","DOTLDIV","DOTEXP","AND","OR","ANDAND","OROR","LT","GT","LE","GE","EQ","NE","EQUALS","CNE","ARROW",null,null,"EOL","SEOL","CEOL","IEOL",null,"COMMENT","BLKSTART","BLKCOM","BLKEND","CPAD","PRAGMA","DOTDOTDOT","DOTDOT","DEEP_NEST", "DEEP_STMT",null,"WHITE",null,"NEGERR","SEMERR","EOLERR","UNTERM","BADCHAR","DEEP_PAREN","FP_ERR","RES_ERR","DEEP_COM","BEGIN_TYPE","END_TYPE","STRING_LITERAL","UNTERM_STRING_LITERAL","LAST_TOKEN"];e=0;k=1;h=2;l=3;b=4;m=5;d=6;g=7;c=8;return function(){function vc(){return{cstate:tc,lstate:na,indent:0,infun:0,npars:0,ncoms:0,ldsv:0,atlp:0,contin:0,elist:0,haveends:0,begin:1,spare:0,stack:0,propParseState:-1}}function kc(a,b){a.cstate=b.cstate;a.lstate=b.lstate;a.indent=b.indent;a.infun=b.infun;a.npars= b.npars;a.ncoms=b.ncoms;a.ldsv=b.ldsv;a.atlp=b.atlp;a.contin=b.contin;a.elist=b.elist;a.haveends=b.haveends;a.begin=b.begin;a.spare=b.spare;a.stack=b.stack;a.propParseState=b.propParseState}function Fc(a){a.lstate=na;a.cstate=tc;a.atlp=a.contin=a.elist=a.haveends=0;a.indent=a.infun=0;a.npars=a.ncoms=a.stack=0;a.begin=1;a.ldsv=0;a.spare=0}function E(a){if(a>=X)return fa;a=ma.charCodeAt(a);return!(a&-128)?Tc[a]:z}function Zb(){for(;E(v)!==fa;++v);}function fb(){for(;E(v)!==fa;++v);if(v+1=X)return 0;switch(E(v)){case $b:case ac:return E(v+1)===da?0:1;case bc:return E(v+1)===ga?0:1;case Y:return E(v+1)===ca?1:0;case M:case ca:case ib:case Sa:case xb:case ua:case va:case Ta:case cc:case xc:return 1;default:return 0}} function Kc(a){return a>>8}function yc(){for(;v=X)return lc&&!t.begin?(D=v=X,wb(a,b)):0;D=v;if(t.begin&&(c=Vc(a,b)))return c;if(t.cstate===rb){if(c=Uc(a,b),0=X||E(v+1)!==va)d=0;else{++v;continue}else d=1;continue;case Sa:case xb:case ua:d||++c;continue;case jb:case Kb:case kb:d||--c;continue;case da:if(d||c)continue;break;case gb:if(d)continue;break;case fa:break;case Ca:if(d)continue; break;case Y:if(d)continue;if(E(v+1)===Y&&E(v+2)===Y)break;continue;case hb:if(d||c)continue;break;default:continue}break}if(d&&!c)a[b]=v-D<<8|Qa;else{if(t.ldsv===zc&&E(D)===M){for(c=D+1;cD)return a[b+0]=v-D<<8|sa,D=v,a[b+1]=v-D<<8|ia,2;a[b]=v-D<<8|ia;return 1}switch(E(v)){case Mc:return v=X,a[b]=v-D<<8|sa,1;case da:for(++v;E(v)== da;++v);if(t.stack&1&&(t.lstate==Va||t.lstate==la)&&Jc())return a[b+0]=v-D<<8|sa,D=v,a[b+1]=v-D<<8|ia,2;a[b]=v-D<<8|sa;return 1;case fa:return fb(),wb(a,b);case M:for(c=v+1;c=X-1)return X=D,0;Zb();a[b]=v-D<<8|Hc();D=v;fb();return 1+wb(a,b+1);case bc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|ic,1;a[b]=v-D<<8|Ba;return 1;case ga:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|hc,1;a[b]=v-D<<8|jc;return 1;case mc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|Xb,1;a[b]=v-D<<8|Gb;return 1;case nc:++v;if(E(v)==ga)return++v,a[b]=v-D<<8|Hb,1;a[b]=v-D<<8|Rb;return 1;case Lb:++v;if(E(v)==Lb)return++v,a[b]=v-D<<8|Wb,1;a[b]=v-D<<8| Wa;return 1;case Mb:++v;if(E(v)==Mb)return++v,a[b]=v-D<<8|xa,1;a[b]=v-D<<8|Vb;return 1;case hb:return++v,a[b]=v-D<<8|ia,1;case gb:++v;if(t.npars&&!(t.stack&1))return a[b+0]=0|vb,a[b+1]=v-D<<8|Aa,2;a[b]=v-D<<8|Aa;return 1;case oc:return++v,a[b]=v-D<<8|Ma,1;case Sa:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|qa,2;a[b]=v-D<<8|qa;return 1;case ua:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|Fb,2;a[b]=v-D<<8|Fb;return 1;case xb:++v;if(t.npars==Nb)return a[b+0]=0|$a,a[b+1]=v-D<<8|Eb,2;a[b]= v-D<<8|Eb;return 1;case jb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|ra,2;a[b]=v-D<<8|ra;return 1;case Kb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|lb,2;a[b]=v-D<<8|lb;return 1;case kb:++v;if(0==t.npars)return a[b+0]=0|Ea,a[b+1]=v-D<<8|mb,2;a[b]=v-D<<8|mb;return 1;case xc:return++v,a[b]=v-D<<8|ha,1;case wc:return++v,a[b]=v-D<<8|Oa,1;case Nc:return++v,a[b]=v-D<<8|Za,1;case Oc:return++v,a[b]=v-D<<8|Na,1;case cc:return++v,a[b]=v-D<<8|Fa,1;case $b:return++v,a[b]=v-D<<8|Qb,1;case ac:return++v, a[b]=v-D<<8|Db,1;case yb:return++v,a[b]=v-D<<8|oa,1;case zb:return++v,a[b]=v-D<<8|pb,1;case Ab:return++v,a[b]=v-D<<8|pa,1;case Bb:return++v,a[b]=v-D<<8|fc,1;case va:if(0=X)return Ra;if(E(v)==$b||E(v)==ac)if(++v,v>=X)return Ra;if(E(v)!=ca)return Ra;for(;v=X)return la;if(Pc&&b&&($(ma,"load",4,a)||$(ma,"save",4,a)))f=!0;switch(E(c)){case Y:if(E(c+1)==Y&&E(c+2)==Y)return la;switch(E(c+1)){case ca:return La;case da:break;case Bb:case yb:case zb:case Ab:case va:case Sa:return Ka(c+2);case M:break;default:return La}break;case ga:if(E(c+1)==ga)return Ka(c+2);case Sa:case jb:return la;case fa:case gb:case hb:case Ca:case Ta:return la; case ua:break;case Lb:return E(c+1)==Lb?Ka(c+2):Ka(c+1);case Mb:return E(c+1)==Mb?Ka(c+2):Ka(c+1);case bc:return E(c+1)==ga?Ka(c+2):La;case mc:case nc:case Bc:return E(c+1)==ga?Ka(c+2):Ka(c+1);case oc:case $b:case ac:case yb:case zb:case Ab:case Bb:case cc:return Ka(c+1);case xb:if(f||t.ldsv==pc)return ea;default:return La}for(e=d=f=0;c>8}function Qc(a){for(;a=X)return 0;for(;E(c)==da;)++c;if(0!==t.ncoms){var f=Ga;if(E(c)===Ca&&(E(c+1)===ua||E(c+1)===kb)&&Qc(c+2))f=E(c+1)===ua?t.ncoms>=Rc?ub:za:Da;fb();a[b]=v-D<<8|f;return 1}if(E(c)===fa)return 0;if(E(c)===Ca){if(E(c+1)===Ca&&(E(c+2)===fa||E(c+2)===da))return Zb(),a[b]=v-D<<8|Ha,1;if(E(c+ 1)===ua&&Qc(c+2))return fb(),a[b]=v-D<<8|za,1}return 0}function Cc(a,z){t.lstate===na&&wa===qc&&(wa=Sc);a:{var D,X=z>>8;t.begin=0;if(t.cstate===rb)switch(z&255){case Ja:case ya:t.propParseState===c&&(t.propParseState=e);break;case eb:t.propParseState=h;break;case ja:t.propParseState=c;break;case R:if(t.propParseState===e)t.propParseState=k;else if(t.propParseState===b||t.propParseState===h)t.propParseState=m;break;case ia:t.propParseState===c&&0===t.npars&&(t.propParseState=e);break;case Aa:if(t.propParseState=== c&&(0===t.npars||!(t.stack&1)))t.propParseState=e;break;case ra:1===t.npars&&t.propParseState===l&&(t.propParseState=b);break;case qa:t.propParseState===h&&(t.propParseState=l);break;case Fb:if(t.propParseState===d||t.propParseState===b||t.propParseState===h)t.propParseState=g}switch(z&255){case cb:case bb:break;case za:case Ga:case Da:t.begin=1;break;case Ja:case ya:t.begin=1;t.contin=0;break;case Pa:case tb:t.contin=1;t.begin=1;break;case qa:t.lstate==sc&&(t.atlp=1);case R:case Z:case Xa:t.lstate== sc&&(t.lstate=ea);default:t.contin=0}if(t.cstate==tc)switch(z&255){case sa:case cb:case za:case Ga:case Da:case bb:case Ja:case ya:case tb:break;case T:t.cstate=ta;break;default:t.cstate=Ec}switch(z&255){case R:case Z:case Xa:switch(t.lstate){case na:D=v-(z>>8);var Cb;b:{Cb=z>>8;var da=ma.slice(D),ha="pi eps nan NaN inf Inf i j ans".split(" "),fa=[2,3,3,3,3,3,1,1,3],ga;if(0===da.length)Cb=1;else{for(ga=0;ga>8);if(Pc&&4===z>>8&&t.lstate!==la&&($(a,"load",4,X)||$(a,"save",4,X)))t.ldsv=pc;break;case ec:case ea:case dc:t.lstate=la}break;case q:++t.indent;case w:case N:case G:case B:case A:case I:t.npars=0;t.stack=0;t.lstate=na;break;case f:t.npars=0;t.stack=0;t.indent=1;t.cstate===ta&&(t.cstate=gc,t.indent=3);t.infun=t.indent;t.lstate=ea;break;case u:t.npars=0;t.stack=0;t.indent>=1);t.ldsv===pc&&0===t.npars?(t.lstate=La,t.ldsv=zc):t.lstate=Va;break;case mb:0>=1);t.lstate=la;break;case ra:0< t.npars&&(t.npars--,t.stack>>=1);t.lstate=la;t.atlp&&(t.lstate=ea,t.atlp=0);break;case qa:t.npars=b-3&&!t.begin)return{numTokens:-1,newState:f,isExecutable:wa===Ob};n&&(1>8<<8|Z)}return{isExecutable:wa=== Ob,newState:t}},make_lex_state:vc,copy_lex_state:kc,dump_token:a,set_state:function(a){kc(t,a)},initialize:function(a,b,c){t=vc();Fc(t);Pb=ma=a;v=0;X=b;lc=c;wa=qc},initialize_state:Fc,in_block_comment:function(a){a||(a=t);return 0=d&&h<=g&&l>=d&&l<=g)return b=e,!0});return b}}})},"MW/syntaxhighlighting/ColorMapDefaults":function(){define(["dojo/_base/declare"],function(e){return{typeMapDefaults:{122:"error",105:"comment",106:"comment",107:"comment",108:"comment",109:"comment",110:"comment",44:"string",45:"string",127:"type sections", 333:"keyword",337:"invalid",338:"system",339:"plain"},colorMapDefaults:{122:{r:255,g:0,b:0},105:{r:34,g:139,b:34},106:{r:34,g:139,b:34},107:{r:34,g:139,b:34},108:{r:34,g:139,b:34},109:{r:34,g:139,b:34},110:{r:34,g:139,b:34},44:{r:160,g:32,b:240},45:{r:160,g:32,b:240},127:{r:162,g:82,b:45},333:{r:0,g:0,b:255},337:{r:179,g:0,b:0},338:{r:179,g:140,b:0},339:{r:0,g:0,b:0}},HTMLColorMapDefaults:{122:"#ff0000",105:"#228b22",106:"#228b22",107:"#228b22",108:"#228b22",109:"#228b22",110:"#228b22",44:"#a020f0", 45:"#a020f0",127:"#a2522d",333:"#0000ff",337:"#b30000",338:"#b38c00",339:"#000000"}}})},"webview/palette/Palette":function(){define("dojo/_base/declare dojo/store/Memory dojo/dom-geometry dojo/dom-style dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dojo/text!./templates/Palette.html".split(" "),function(e,k,h,l,b,m,d,g){return e([b,m,d],{templateString:g,postCreate:function(){this.inherited(arguments);this.buttonStore=new k},startup:function(){this.inherited(arguments);this._computedStyle= l.getComputedStyle(this.domNode)},resize:function(b){var a=this.getChildren(),f,d,e=a.length;b&&h.setMarginBox(this.domNode,b,this._computedStyle);for(d=0;d>1)-l.y+"px",this.connectorNode.style.left=""):"M"==l.corner.charAt(1)&& "M"==l.aroundCorner.charAt(1)?this.connectorNode.style.left=k.x+(k.w-this.connectorNode.offsetWidth>>1)-l.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top="");d.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=b;this.onMouseEnter=h||w;this.onMouseLeave=n||w}},orient:function(a,b,c,d,e){this.connectorNode.style.top="";var g=d.h;d=d.w;a.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove", "BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[b+"-"+c];this.domNode.style.width="auto";var h=m.position(this.domNode);if(f("ie")||f("trident"))h.w+=2;var n=Math.min(Math.max(d,1),h.w);m.setMarginBox(this.domNode,{w:n});"B"==c.charAt(0)&&"B"==b.charAt(0)?(a=m.position(a),b= this.connectorNode.offsetHeight,a.h>g?(this.connectorNode.style.top=g-(e.h+b>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(e.h/2-b/2,0),a.h-b)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,h.w-d)},_onShow:function(){f("ie")&&(this.domNode.style.filter="")},hide:function(a){this._onDeck&&this._onDeck[1]==a?this._onDeck=null:this.aroundNode===a&&(this.fadeIn.stop(),this.isShowingNow= !1,this.aroundNode=null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=w},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});x.showTooltip=function(a,b,c,f,d,g,h){c&&(c=e.map(c,function(a){return{after:"after-centered",before:"before-centered"}[a]||a}));A._masterTT||(x._masterTT=A._masterTT=new y);return A._masterTT.show(a,b,c,f,d,g,h)};x.hideTooltip=function(a){return A._masterTT&&A._masterTT.hide(a)}; var A=k("dijit.Tooltip",n,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(b){e.forEach(this._connections||[],function(a){e.forEach(a,function(a){a.remove()})},this);this._connectIds=e.filter(g.isArrayLike(b)?b:b?[b]:[],function(a){return l.byId(a,this.ownerDocument)},this);this._connections=e.map(this._connectIds,function(b){b=l.byId(b,this.ownerDocument);var f=this.selector,d=f?function(b){return a.selector(f,b)}:function(a){return a},e=this; return[a(b,d(c.enter),function(){e._onHover(this)}),a(b,d("focusin"),function(){e._onHover(this)}),a(b,d(c.leave),g.hitch(e,"_onUnHover")),a(b,d("focusout"),g.hitch(e,"set","state","DORMANT"))]},this);this._set("connectId",b)},addTarget:function(a){a=a.id||a;-1==e.indexOf(this._connectIds,a)&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=e.indexOf(this._connectIds,a.id||a);0<=a&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments); b.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;e.forEach(g.isArrayLike(a)?a:[a],this.addTarget,this)},getContent:function(a){return this.label||this.domNode.innerHTML},state:"DORMANT",_setStateAttr:function(a){if(!(this.state==a||"SHOW TIMER"==a&&"SHOWING"==this.state||"HIDE TIMER"==a&&"DORMANT"==this.state)){this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer); switch(a){case "DORMANT":this._connectNode&&(A.hide(this._connectNode),delete this._connectNode,this.onHide());break;case "SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer(function(){this.set("state","SHOWING")},this.showDelay));break;case "SHOWING":var b=this.getContent(this._connectNode);if(!b){this.set("state","DORMANT");return}A.show(b,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,g.hitch(this,"set","state","SHOWING"),g.hitch(this,"set","state","HIDE TIMER")); this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",a)}},_onHover:function(a){this._connectNode&&a!=this._connectNode&&this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOW TIMER")},_onUnHover:function(a){this.set("state","HIDE TIMER")},open:function(a){this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")}, onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");e.forEach(this._connections||[],function(a){e.forEach(a,function(a){a.remove()})},this);this.inherited(arguments)}});A._MasterTooltip=y;A.show=x.showTooltip;A.hide=x.hideTooltip;A.defaultPosition=["after-centered","before-centered"];return A})},"webview/palette/ExplorerBarButton":function(){define(["dojo/_base/declare","./PaletteButton","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k, h){return e([k],{role:"ExplorerBar",iconClass:"Palette_Collapse",label:h.ExplorerBarButtonLabel,startup:function(){var e=this,b=this.app.modelViewer;this.inherited(arguments);this.update();this.own(b.watch("showExplorerBar",function(){e.update()}))},onClick:function(){var e=this.app.modelViewer;e.set("showExplorerBar",!e.get("showExplorerBar"));e.focus()},update:function(){this.set("iconClass",this.app.modelViewer.get("showExplorerBar")?"Palette_Collapse":"Palette_Expand")}})})},"webview/palette/PaletteSeparator":function(){define(["dojo/_base/declare", "dojo/dom","dijit/_WidgetBase","dijit/_TemplatedMixin","dojo/text!./templates/PaletteSeparator.html"],function(e,k,h,l,b){return e([h,l],{templateString:b,role:"Separator",buildRendering:function(){this.inherited(arguments);k.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"webview/palette/PaletteSpacer":function(){define("dojo/_base/declare dojo/dom dojo/dom-geometry dojo/dom-style dijit/_WidgetBase dijit/_Contained dijit/_TemplatedMixin".split(" "),function(e,k,h,l,b,m,d){return e([b, m,d],{templateString:'\x3cdiv class\x3d"PaletteSpacer" role\x3d"presentation"\x3e\x3c/div\x3e',role:"spacer",height:null,buildRendering:function(){this.inherited(arguments);k.setSelectable(this.domNode,!1)},isFocusable:function(){return!1},postCreate:function(){this.height&&(l.set(this.domNode,"height",this.height+"px"),this.resize=function(){})},resize:function(){var b=this.getParent(),c=this.getIndexInParent(),a=h.position(b.domNode).h,f=0,d,b=b.getChildren();b.splice(c,1);c=b.length;for(d=0;d< c;d+=1)f+=h.position(b[d].domNode).h;l.set(this.domNode,"height",a-f-2+"px")}})})},"webview/palette/FitToViewButton":function(){define(["dojo/_base/declare","./PaletteButton","dojo/i18n!../resources/slreportgen_webview/nls/modelviewer"],function(e,k,h){return e([k],{role:"FitToView",iconClass:"Palette_ZoomFitView",label:h.FitToViewButtonLabel,onClick:function(){var e=this.app.modelViewer,b=e.selectedDiagramTab.modelGraphicsPane;b&&b.fitToView();e.focus()}})})},"webview/palette/MarqueeZoomButton":function(){define("dojo/_base/declare dojo/on dijit/form/_ToggleButtonMixin ../tools/MarqueeZoomTool ./PaletteButton dojo/i18n!../resources/slreportgen_webview/nls/modelviewer".split(" "), function(e,k,h,l,b,m){return e([b,h],{role:"MarqueeZoom",iconClass:"Palette_ZoomMarquee",label:m.MarqueeZoomButtonLabel,startup:function(){var b=this,e=new l;this.inherited(arguments);this.set("checked",!1);this.marqueeZoomTool=e;this.own(k(e,"done",function(){b.done()}),k(e,"idle",function(){b.done()}))},onClick:function(){var b=this,e=this.marqueeZoomTool;this.get("checked")?this.marqueeZoom():setTimeout(function(){e.isPersistent||b.done()},500);this.app.modelViewer.focus()},onDblClick:function(){this.marqueeZoom(!0)}, marqueeZoom:function(b){var e=this.app.modelViewer.selectedDiagramTab.modelGraphicsPane.canvas.toolStack,c=this.marqueeZoomTool;c.isPersistent=b||!1;e.getTool(c.role)||(e.addTool(c),c.becomeAlert());this.set("checked",!0)},done:function(){var b=this.marqueeZoomTool;b&&!b.isDone()&&(b.isPersistent=!1,b.becomeDone());this.set("checked",!1)}})})},"webview/tools/MarqueeZoomTool":function(){define(["dojo/_base/declare","../utils/svg","../base/Rect","./Tool"],function(e,k,h,l){var b=e(null,{constructor:function(b, d){var e=b.sceneServer.svgDocument.createElementNS(k.XMLNS,"rect");e.setAttribute("style","stroke: #99ccff; fill: #ffdbb7; fill-opacity: 0.6");b.sceneServer.foregroundScene.rootElement.appendChild(e);this.canvas=b;this.startPoint=d;this.rect=new h;this.svgRect=e},update:function(b){var d=this.rect,e=this.svgRect;b.x<=this.startPoint.x?(d.x=b.x,d.setRight(this.startPoint.x)):(d.x=this.startPoint.x,d.setRight(b.x-1));b.y<=this.startPoint.y?(d.y=b.y,d.setBottom(this.startPoint.y)):(d.y=this.startPoint.y, d.setBottom(b.y-1));e.setAttribute("x",d.x);e.setAttribute("y",d.y);e.setAttribute("width",d.width);e.setAttribute("height",d.height)},destroy:function(){this.canvas.sceneServer.foregroundScene.rootElement.removeChild(this.svgRect)}});return e(l,{postMixInProperties:function(){this.role="MarqueeZoomTool";this.marqueeRect=null},isPersistent:!1,becomeActive:function(){this.inherited(arguments);this.canvas.selection.disable()},becomeAlert:function(){var b=this.canvas.cursor;this.inherited(arguments); b.set("ZoomIn");this.removeMarqueeRect()},becomeIdle:function(){this.reset();this.inherited(arguments)},becomeDone:function(){this.reset();this.inherited(arguments)},handleMouseDownEvent:function(e){this.isAlert()&&e.isLeftMouse()&&(this.marqueeRect=new b(this.canvas,e.getMousePosition()),this.becomeActive())},handleMouseMoveEvent:function(b){var d=this.marqueeRect;this.isActive()&&d&&this.marqueeRect.update(b.getMousePosition())},handleClickEvent:function(b){var d=this.canvas,e,c;this.isActive()&& (e=parseFloat(d.width()),c=parseFloat(d.height()),0.05*el("ie")&&!l("quirks");k=k(m,{columns:null,cellNavigation:!0,tabableHeader:!0,showHeader:!0,column:function(a){return"object"!=typeof a?this.columns[a]:this.cell(a).column},listType:"grid",cell:function(a,b){if(a.column&& a.element)return a;a.target&&a.target.nodeType&&(a=a.target);var c;if(a.nodeType){do{if(this._rowIdToObject[a.id])break;var d=a.columnId;if(d){b=d;c=a;break}a=a.parentNode}while(a&&a!=this.domNode)}if(!c&&"undefined"!=typeof b){var e=this.row(a);if(d=e&&e.element)for(var d=d.getElementsByTagName("td"),g=0;gl("ie")||l("quirks")?b(k,"tbody"):k,s,x,w,y,A,B,C,F,K,G;g=g||this.subRows;x=0;for(w=g.length;x ]/;e([],k=function(e,b){function m(b){function k(){s&&(r&&s!=r)&&(r==b&&(p||(p=h.test(A)&& e.createDocumentFragment()))?p:r).insertBefore(s,q||null)}for(var p,n,q,r,s,x=arguments,w=x[0],y=0;yy&&(b=null);n=!0;if(w=A.replace(d,function(d,h,n,p,w,B){h&&(k(),"-"==h||"+"==h?(r=(q=s||r).parentNode,s=null,"+"==h&&(q=q.nextSibling)): ("\x3c"==h?r=s=(s||r).parentNode:(","==h?r=b:s&&(r=s),s=null),q=0),s&&(r=s));if((d=!n&&p)||!s&&(n||w))"$"==d?(d=x[++y],r.appendChild(e.createTextNode(d))):(d=d||m.defaultTag,(h=a&&x[y+1]&&x[y+1].name)&&(d="\x3c"+d+' name\x3d"'+h+'"\x3e'),s=c&&~(g=d.indexOf("|"))?e.createElementNS(c[d.slice(0,g)],d.slice(g+1)):e.createElement(d));if(n)if("$"==p&&(p=x[++y]),"#"==n)s.id=p;else if(h=(d=s.className)&&(" "+d+" ").replace(" "+p+" "," "),"."==n)s.className=d?(h+p).substring(1):p;else if("!"==A){var N;a?m("div", s,"\x3c").innerHTML="":(N=s.parentNode)&&N.removeChild(s)}else h=h.substring(1,h.length-1),h!=d&&(s.className=h);w&&("$"==B&&(B=x[++y]),"style"==w?s.style.cssText=B:(n="!"==w.charAt(0)?(w=w.substring(1))&&"removeAttribute":"setAttribute",B=""===B?w:B,c&&~(g=w.indexOf("|"))?s[n+"NS"](c[w.slice(0,g)],w.slice(g+1),B):s[n](w,B)));return""}))throw new SyntaxError("Unexpected char "+w+" in "+A);k();r=w=s||r}}b&&p&&b.appendChild(p);return w}h=b||h;var d=/(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w\u00A0-\uFFFF%$|]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g, g,c=!1;e=e||document;var a="object"==typeof e.createElement;m.addNamespace=function(a,b){e.createElementNS?(c||(c={}))[a]=b:e.namespaces.add(a,b)};m.defaultTag="div";m.forDocument=k;return m})})(function(e,k,h){h=h||k;"function"===typeof define?define([],function(){return h()}):"undefined"==typeof window?require("./node-html")(module,h):put=h()})},"dgrid/List":function(){define("dojo/_base/kernel dojo/_base/declare dojo/dom dojo/on dojo/has ./util/misc ./TouchScroll xstyle/has-class put-selector/put dojo/_base/sniff xstyle/css!./css/dgrid.css".split(" "), function(e,k,h,l,b,m,d,g,c){function a(a,b){c(document.body,a,".dgrid-scrollbar-measure");var d=a["offset"+b]-a["client"+b];a.className="";document.body.removeChild(a);return d}function f(a){var b=a?"."+a.replace(x,"."):"";this._class&&(b="!"+this._class.replace(x,"!")+b);c(this.domNode,b);this._class=a}function u(){return this._class}function p(){return{x:this.bodyNode.scrollLeft,y:this.bodyNode.scrollTop}}function n(a){"undefined"!==typeof a.x&&(this.bodyNode.scrollLeft=a.x);"undefined"!==typeof a.y&& (this.bodyNode.scrollTop=a.y)}g("mozilla","opera","webkit","ie","ie-6","ie-6-7","quirks","no-quirks","touch");var q,r;b.add("dom-scrollbar-width",function(b,c,d){return a(d,"Width")});b.add("dom-scrollbar-height",function(b,c,d){return a(d,"Height")});b.add("dom-rtl-scrollbar-left",function(a,d,f){a=c("div");c(document.body,f,".dgrid-scrollbar-measure[dir\x3drtl]");c(f,a);d=!!b("ie")||!!b("trident")||a.offsetLeft>=b("dom-scrollbar-width");f.className="";document.body.removeChild(f);c(a,"!");f.removeAttribute("dir"); return d});var s=0,x=/ +/g,w=7>b("ie")&&!b("quirks")?function(){var a,b,c;if(this._started&&(a=document.documentElement,b=a.clientWidth,a=a.clientHeight,c=this._prevWinDims||[],c[0]!==b||c[1]!==a))this.resize(),this._prevWinDims=[b,a]}:function(){this._started&&this.resize()};return k(b("touch")?d:null,{tabableHeader:!1,showHeader:!1,showFooter:!1,maintainOddEven:!0,cleanAddedRules:!0,useTouchScroll:null,addUiClasses:!0,cleanEmptyObservers:!0,highlightDuration:250,postscript:function(a,b){var c=this; (this._Row=function(a,b,c){this.id=a;this.data=b;this.element=c}).prototype.remove=function(){c.removeRow(this.element)};b&&(this.srcNodeRef=b=b.nodeType?b:document.getElementById(b));this.create(a,b)},listType:"list",create:function(a,d){var e=this.domNode=d||c("div"),g;a?(this.params=a,k.safeMixin(this,a),g=a["class"]||a.className||e.className,this._sort=a.sort||[],delete this.sort):this._sort=[];this.observers=[];this._numObservers=0;this._listeners=[];this._rowIdToObject={};this.postMixInProperties&& this.postMixInProperties();this.id=e.id=e.id||this.id||"dgrid_"+s++;null===this.useTouchScroll&&(this.useTouchScroll=!b("dom-scrollbar-width"));this.buildRendering();g&&f.call(this,g);this.postCreate();delete this.srcNodeRef;this.domNode.offsetHeight&&this.startup()},buildRendering:function(){var a=this.domNode,d=this.addUiClasses,f=this,e,g,h,n;n=this.isRTL="rtl"==(document.body.dir||document.documentElement.dir||document.body.style.direction).toLowerCase();a.className="";c(a,"[role\x3dgrid].dgrid.dgrid-"+ this.listType+(d?".ui-widget":""));e=this.headerNode=c(a,"div.dgrid-header.dgrid-header-row"+(d?".ui-widget-header":"")+(this.showHeader?"":".dgrid-header-hidden"));(b("quirks")||8>b("ie"))&&c(a,"div.dgrid-spacer");g=this.bodyNode=c(a,"div.dgrid-scroller");b("ff")&&(g.tabIndex=-1);this.headerScrollNode=c(a,"div.dgrid-header.dgrid-header-scroll.dgrid-scrollbar-width"+(d?".ui-widget-header":""));h=this.footerNode=c("div.dgrid-footer"+(this.showFooter?"":".dgrid-footer-hidden"));c(a,h);n&&(a.className+= " dgrid-rtl"+(b("dom-rtl-scrollbar-left")?" dgrid-rtl-swap":""));l(g,"scroll",function(b){f.showHeader&&(e.scrollLeft=b.scrollLeft||g.scrollLeft);b.stopPropagation();l.emit(a,"scroll",{scrollTarget:g})});this.configStructure();this.renderHeader();this.contentNode=this.touchNode=c(this.bodyNode,"div.dgrid-content"+(d?".ui-widget-content":""));this._listeners.push(this._resizeHandle=l(window,"resize",m.throttleDelayed(w,this)))},postCreate:b("touch")?function(){this.useTouchScroll&&this.inherited(arguments)}: function(){},startup:function(){this._started||(this.inherited(arguments),this._started=!0,this.resize(),this.set("sort",this._sort))},configStructure:function(){},resize:function(){var a=this.bodyNode,c=this.headerNode,d=this.footerNode,f=c.offsetHeight,e=this.showFooter?d.offsetHeight:0,g=b("quirks")||7>b("ie");this.headerScrollNode.style.height=a.style.marginTop=f+"px";a.style.marginBottom=e+"px";g&&(a.style.height="",a.style.height=Math.max(this.domNode.offsetHeight-f-e,0)+"px",e&&(d.style.bottom= "1px",setTimeout(function(){d.style.bottom=""},0)));q||(q=b("dom-scrollbar-width"),r=b("dom-scrollbar-height"),b("ie")&&(q++,r++),m.addCssRule(".dgrid-scrollbar-width","width: "+q+"px"),m.addCssRule(".dgrid-scrollbar-height","height: "+r+"px"),17!=q&&!g&&(m.addCssRule(".dgrid-header-row","right: "+q+"px"),m.addCssRule(".dgrid-rtl-swap .dgrid-header-row","left: "+q+"px")));g&&(c.style.width=a.clientWidth+"px",setTimeout(function(){c.scrollLeft=a.scrollLeft},0))},addCssRule:function(a,b){var c=m.addCssRule(a, b);this.cleanAddedRules&&this._listeners.push(c);return c},on:function(a,c){var d=l(this.domNode,a,c);b("dom-addeventlistener")||this._listeners.push(d);return d},cleanup:function(){var a=this.observers,b;for(b in this._rowIdToObject)if(this._rowIdToObject[b]!=this.columns){var c=document.getElementById(b);c&&this.removeRow(c,!0)}for(b=0;bb?"previousSibling":"nextSibling"]){do if((f=a)&&-1<(f.className+" ").indexOf(c+" ")){e=f;b+=0>b?1:-1;break}while(a=(!d||!f.hidden)&&f[0>b?"lastChild":"firstChild"])}else if(f=f.parentNode, !f||f===this.bodyNode||f===this.headerNode)break;while(b);return e},up:function(a,b,c){a.element||(a=this.row(a));return this.row(this._move(a,-(b||1),"dgrid-row",c))},down:function(a,b,c){a.element||(a=this.row(a));return this.row(this._move(a,b||1,"dgrid-row",c))},scrollTo:b("touch")?function(a){return this.useTouchScroll?this.inherited(arguments):n.call(this,a)}:n,getScrollPosition:b("touch")?function(){return this.useTouchScroll?this.inherited(arguments):p.call(this)}:p,get:function(a){var b= "_get"+a.charAt(0).toUpperCase()+a.slice(1);return"function"===typeof this[b]?this[b].apply(this,[].slice.call(arguments,1)):this[a]},set:function(a,b){if("object"===typeof a)for(var c in a)this.set(c,a[c]);else c="_set"+a.charAt(0).toUpperCase()+a.slice(1),"function"===typeof this[c]?this[c].apply(this,[].slice.call(arguments,1)):this[a]=b;return this},_getClass:u,_setClass:f,_getClassName:u,_setClassName:f,_setSort:function(a,b){this._sort="string"!=typeof a?a:[{attribute:a,descending:b}];this.refresh(); this._lastCollection&&(a.length&&("string"!=typeof a&&(b=a[0].descending,a=a[0].attribute),this._lastCollection.sort(function(c,d){var f=c[a],e=d[a];void 0===f&&(f="");void 0===e&&(e="");return f==e?0:f>e==!b?1:-1})),this.renderArray(this._lastCollection))},sort:function(a,b){e.deprecated("sort(...)",'use set("sort", ...) instead',"dgrid 0.4");this.set("sort",a,b)},_getSort:function(){return this._sort},_setShowHeader:function(a){var b=this.headerNode;this.showHeader=a;c(b,(a?"!":".")+"dgrid-header-hidden"); this.renderHeader();this.resize();a&&(b.scrollLeft=this.getScrollPosition().x)},setShowHeader:function(a){e.deprecated("setShowHeader(...)",'use set("showHeader", ...) instead',"dgrid 0.4");this.set("showHeader",a)},_setShowFooter:function(a){this.showFooter=a;c(this.footerNode,(a?"!":".")+"dgrid-footer-hidden");this.resize()}})})},"dgrid/util/misc":function(){define(["dojo/has","put-selector/put"],function(e,k){e.add("dom-contains",function(b,a,d){return!!d.contains});var h=[],l,b,m,d=/([^A-Za-z0-9_\u00A0-\uFFFF-])/g, g={defaultDelay:15,throttle:function(b,a,d){var e=!1;d=d||g.defaultDelay;return function(){e||(e=!0,b.apply(a,arguments),setTimeout(function(){e=!1},d))}},throttleDelayed:function(b,a,d){var e=!1;d=d||g.defaultDelay;return function(){if(!e){e=!0;var g=arguments;setTimeout(function(){e=!1;b.apply(a,g)},d)}}},debounce:function(b,a,d){var e;d=d||g.defaultDelay;return function(){e&&(clearTimeout(e),e=null);var g=arguments;e=setTimeout(function(){b.apply(a,g)},d)}},each:function(b,a,d){var e,g;if(b)if("number"=== typeof b.length){e=0;for(g=b.length;ea&&h[c]--}}}},escapeCssIdentifier:function(b,a){return"string"===typeof b?b.replace(d,a||"\\$1"):b}};return g})},"dgrid/TouchScroll":function(){define("dojo/_base/declare dojo/on ./util/touch ./util/has-css3 put-selector/put xstyle/css!./css/TouchScroll.css".split(" "),function(e,k,h,l,b){function m(a,b,c,d){d=a.touchNode;var f= r[a.id],e,g,h;if("object"!==typeof b)h=b,b=c,c=g=!0;else{c="x"in b;g="y"in b;if(!c||!g)e=a.getScrollPosition();h=c?b.x:e.x;b=g?b.y:e.y}d.style[I]=O+-h+"px,"+-b+"px"+N;f&&(c&&a._scrollbarXNode)&&(a._scrollbarXNode.style[I]=O+h*f.parentWidth/f.scrollWidth+"px,0"+N);f&&(g&&a._scrollbarYNode)&&(a._scrollbarYNode.style[I]=O+"0,"+b*f.parentHeight/f.scrollHeight+"px"+N);k.emit(a.touchNode.parentNode,"scroll",{scrollLeft:h,scrollTop:b})}function d(a){return r[a.id]?A.exec(window.getComputedStyle(a.touchNode)[I]): y.exec(a.touchNode.style[I])}function g(a){var c=this.widget,c=[this.node,c._scrollbarXNode,c._scrollbarYNode],d=c.length;this.timer&&(clearTimeout(this.timer),this.timer=null);for(this.transitionHandler&&this.transitionHandler.remove();d--;)c[d]&&(c[d].style[G+"Duration"]="0");(!a||!a.preserveScrollbars)&&b(this.node.parentNode,".touchscroll-fadeout");delete this.resetEffects}function c(a){var b=a.widget,c=b.touchNode,f=b.id,e=0,g=0,l;if(h.countCurrentTouches(a,c)===b.touchesToScroll){if(l=d(b))e= +l[1],g=+l[2];if(l=r[f])l.resetEffects&&l.resetEffects({preserveScrollbars:!0}),c.style[I]=O+e+"px,"+g+"px"+N,s[f]=l;a=a.targetTouches[0];l=r[f]={widget:b,node:c,startX:e-a.pageX,startY:g-a.pageY,lastX:e,lastY:g,pageX:a.pageX,pageY:a.pageY,tickFunc:function(){var a=r[f],b,c;a&&(b=a.node,(c=y.exec(b.style[I]))?(b=+c[1],c=+c[2],a.velX=b-a.lastX,a.velY=c-a.lastY,a.lastX=b,a.lastY=c):a.lastX=a.lastY=0,a.timer=setTimeout(a.tickFunc,n))}};l.timer=setTimeout(l.tickFunc,n)}}function a(a){var c=a.widget,d= c.id,f=c.touchesToScroll,e=r[d],g,n;if(!e||(g=h.countCurrentTouches(a,c.touchNode))!==f)g>f&&c.cancelTouchScroll();else{g=a.targetTouches;f=g[0];if(!e.scrollbarsShown&&(s[d]||Math.abs(f.pageX-e.pageX)>c.scrollThreshold||Math.abs(f.pageY-e.pageY)>c.scrollThreshold)){var d=c.touchNode,l=d.parentNode,k=l.offsetWidth-w,p=l.offsetHeight-w,q=e.scrollWidth=d.scrollWidth,x=e.scrollHeight=d.scrollHeight,u=e.parentWidth=l.offsetWidth,y=e.parentHeight=l.offsetHeight;q>u?(c._scrollbarXNode||(n=b(l,"div.touchscroll-x")), n=c._scrollbarXNode=c._scrollbarXNode||b(n,"div.touchscroll-bar"),n.style.width=k*k/q+"px",n.style.left=d.offsetLeft+"px",b(l,".touchscroll-scrollable-x"),e.scrollableX=!0):b(l,"!touchscroll-scrollable-x");x>y?(c._scrollbarYNode||(n=b(l,"div.touchscroll-y")),n=c._scrollbarYNode=c._scrollbarYNode||b(n,"div.touchscroll-bar"),n.style.height=p*p/x+"px",n.style.top=d.offsetTop+"px",b(l,".touchscroll-scrollable-y"),e.scrollableY=!0):b(l,"!touchscroll-scrollable-y");b(l,"!touchscroll-fadeout");e.scrollbarsShown= !0;for(n=g.length;n--;)g[n].touchScrolled=!0}if(e.scrollbarsShown&&(e.scrollableX||e.scrollableY))a.preventDefault(),a=e.scrollableX?e.startX+f.pageX:0,f=e.scrollableY?e.startY+f.pageY:0,n=e.scrollableX?-(e.scrollWidth-e.parentWidth):0,e=e.scrollableY?-(e.scrollHeight-e.parentHeight):0,0h?O+"0,0"+N:O+(g.parentNode.offsetWidth-g.offsetWidth)+ "px,0"+N),n!=c&&f.scrollableY&&(g=f.widget._scrollbarYNode,g.style[G+"Duration"]=e.bounceDuration+"ms",g.style[I]=c>n?O+"0,0"+N:O+"0,"+(g.parentNode.offsetHeight-g.offsetHeight)+"px"+N)):d()}function p(a){var b=r[a],c=s[a],d,f;delete s[a];b.timer&&clearTimeout(b.timer);b.resetEffects=g;(d=y.exec(b.node.style[I]))?(f=+d[1],d=+d[2]):f=d=0;if(!b.velX&&!b.velY||(0<=f||f<=-(b.scrollWidth-b.parentWidth))&&(0<=d||d<=-(b.scrollHeight-b.parentHeight)))u(a,f,d);else{if(c&&(c.velX||c.velY)&&(0>=b.velX&&0>=c.velX|| 0<=b.velX&&0<=c.velX)&&(0>=b.velY&&0>=c.velY||0<=b.velY&&0<=c.velY))b.velX=1.15*(b.velX+c.velX),b.velY=1.15*(b.velY+c.velY);b.lastX=f;b.lastY=d;b.calcFunc=function(){var b=r[a],c,d,f,e,g,h;if(b)if(c=b.widget,g=c.glideDecel(b.velX),h=c.glideDecel(b.velY),Math.abs(g)>=x||Math.abs(h)>=x){f=b.lastX+g;e=b.lastY+h;if(0=d:!!d)==!m[1])document.documentElement.className+=" has-"+h}}})},"dgrid/OnDemandList":function(){define("./List ./_StoreMixin dojo/_base/declare dojo/_base/lang dojo/_base/Deferred dojo/dom dojo/on ./util/misc put-selector/put".split(" "), function(e,k,h,l,b,m,d,g,c){return h([e,k],{minRowsPerPage:25,maxRowsPerPage:250,maxEmptySpace:Infinity,bufferRows:10,farOffRemoval:2E3,queryRowsOverlap:0,pagingMethod:"debounce",pagingDelay:g.defaultDelay,keepScrollPosition:!1,rowHeight:22,postCreate:function(){this.inherited(arguments);var a=this;d(this.bodyNode,"scroll",g[this.pagingMethod](function(b){a._processScroll(b)},null,this.pagingDelay))},renderQuery:function(a,d){function e(a){c(y,"!");if(a)throw g._refreshDeferred&&(g._refreshDeferred.reject(a), delete g._refreshDeferred),a;}var g=this,h=d&&d.container||this.contentNode,k={query:a,count:0,options:d},m,s=this.preload,x,w={node:c(h,"div.dgrid-preload",{rowIndex:0}),count:0,query:a,next:k,options:d};w.node.style.height="0";k.node=m=c(h,"div.dgrid-preload");k.previous=w;m.rowIndex=this.minRowsPerPage;s?((k.next=s.next)&&m.offsetTop>=s.node.offsetTop?k.previous=s:(k.next=s,k.previous=s.previous),k.previous.next=k,k.next.previous=k):this.preload=k;var y=c(m,"-div.dgrid-loading");c(y,"div.dgrid-below").innerHTML= this.loadingMessage;d=l.mixin(this.get("queryOptions"),d,{start:0,count:this.minRowsPerPage},"level"in a?{queryLevel:a.level}:null);this._trackError(function(){return x=a(d)});if("undefined"===typeof x)e();else return b.when(g.renderArray(x,m,d),function(a){return b.when("undefined"===typeof x.total?x.length:x.total,function(b){var e=a.length,h=m.parentNode,n=g.noDataNode;c(y,"!");"queryLevel"in d||(g._total=b);0===b&&(n&&(c(n,"!"),delete g.noDataNode),g.noDataNode=n=c("div.dgrid-no-data"),h.insertBefore(n, g._getFirstRowSibling(h)),n.innerHTML=g.noDataMessage);for(n=h=0;n2*l){for(var m,p=k[f],q=0,s=0,r=[];m=p;){var x=h._calcRowHeight(m);if(q+x+l>b||0>p.className.indexOf("dgrid-row")&&0>p.className.indexOf("dgrid-loading"))break; p=m[f];q+=x;s+=m.count||1;h.removeRow(m,!0);r.push(m)}a.count+=s;g?(k.rowIndex-=s,e(a)):k.style.height=k.offsetHeight+q+"px";var w=c("div",r);setTimeout(function(){c(w,"!")},1)}}function e(a,b){a.node.style.height=Math.min(a.count*h.rowHeight,b?Infinity:h.maxEmptySpace)+"px"}function g(a,b){do a=b?a.next:a.previous;while(a&&!a.node.offsetWidth);return a}var h=this,k=h.bodyNode;a=a&&a.scrollTop||this.getScrollPosition().y;var k=k.offsetHeight+a,m,s,x=h.preload,w=h.lastScrollTop,y=h.bufferRows*h.rowHeight, A=y-h.rowHeight,B,C,F,K=!0;for(h.lastScrollTop=a;x&&!x.node.offsetWidth;)x=x.previous;for(;x&&x!=m;){m=h.preload;h.preload=x;s=x.node;var G=s.offsetTop;if(k+1+AG+s.offsetHeight)x=g(x,K=!0);else{var I=((s.rowIndex?a-y:k)-G)/h.rowHeight,G=(k-a+2*y)/h.rowHeight,O=Math.max(Math.min((a-w)*h.rowHeight,h.maxRowsPerPage/2),h.maxRowsPerPage/-2),G=G+Math.min(Math.abs(O),10);0==s.rowIndex&&(I-=G);I=Math.max(I,0);10>I&&(0a)&&x){var L=x.previous;L&&(d(L,a-(L.node.offsetTop+L.node.offsetHeight),"nextSibling"),0h._total||0>N.count)){s=c(T,"-div.dgrid-loading[style\x3dheight:"+G*h.rowHeight+"px]");c(s,"div.dgrid-"+(O?"below": "above")).innerHTML=h.loadingMessage;s.count=G;var J=x.query(N);if(void 0===h._trackError(function(){return J})){c(s,"!");return}(function(a,d,f,g){F=b.when(h.renderArray(g,a,N),function(l){C=g;T=a.nextSibling;c(a,"!");if(f&&T&&T.offsetWidth){var k=h.getScrollPosition();h.scrollTo({x:k.x,y:k.y+T.offsetTop-f,preserveMomentum:!0})}b.when(g.total||g.length,function(a){"queryLevel"in N||(h._total=a);d&&(d.count=a-d.node.rowIndex,0===d.count&&N.count++,e(d))});h._processScroll();return l},function(b){c(a, "!");throw b;})}).call(this,s,O,P,J);x=x.previous}}}}if(F&&(B=this._refreshDeferred))delete this._refreshDeferred,b.when(F,function(){B.resolve(C)})},removeRow:function(a,b){if(a){var c=a.previousSibling,d=a.nextSibling,c=c&&(null!=c.observerIndex?c.observerIndex:c.previousObserverIndex),e=d&&(null!=d.observerIndex?d.observerIndex:d.nextObserverIndex),d=a.observerIndex;a.observerIndex=void 0;b&&(a.nextObserverIndex=e,a.previousObserverIndex=c);if(this.cleanEmptyObservers&&(-1this._numObservers&&this.refresh({keepScrollPosition:!0})},refresh:function(){var a=this.inherited(arguments);this.store||(this.noDataNode=d(this.contentNode, "div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage);return a},renderArray:function(){var a=this,b=this.inherited(arguments);this.store||l.when(b,function(b){b.length&&a.noDataNode&&d(a.noDataNode,"!")});return b},insertRow:function(a,b,c,d,e){var g=this.store,l=this.dirty,g=g&&g.getIdentity(a),k;g in l&&!(g in this._updating)&&(k=l[g]);k&&(a=h.delegate(a,k));return this.inherited(arguments)},updateDirty:function(a,b,c){var d=this.dirty,e=d[a];e||(e=d[a]={});e[b]=c},setDirty:function(a, b,c){e.deprecated("setDirty(...)","use updateDirty() instead","dgrid 0.4");this.updateDirty(a,b,c)},save:function(){function a(a,e){return function(g){var h=b._columnsWithSet,k=b._updating,n,m;if("function"===typeof g.set)g.set(e);else for(n in e)g[n]=e[n];for(n in h)m=h[n].set(g),void 0!==m&&(g[n]=m);k[a]=!0;return l.when(c.put(g),function(){delete d[a];delete k[a]})}}var b=this,c=this.store,d=this.dirty,e=new l,g=e.promise,h=function(a){var d;return b.getBeforePut||!(d=b.row(a).data)?function(){return c.get(a)}: function(){return d}},k;for(k in d)var m=a(k,d[k]),g=g.then(h(k)).then(m);e.resolve();return g},revert:function(){this.dirty={};this.refresh()},_trackError:function(a){var b;"string"==typeof a&&(a=h.hitch(this,a));try{b=a()}catch(d){c.call(this,d)}return l.when(b,g,h.hitch(this,c))},newRow:function(){var a=this.inherited(arguments);this.noDataNode&&(d(this.noDataNode,"!"),delete this.noDataNode);return a},removeRow:function(a,b){var c={element:a};!b&&(this.noDataMessage&&this.up(c).element===a&&this.down(c).element=== a)&&(this.noDataNode=d(this.contentNode,"div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage);return this.inherited(arguments)}})})},"dgrid/Selection":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/Deferred dojo/on dojo/has dojo/aspect ./List ./util/has-pointer ./util/touch put-selector/put dojo/query dojo/_base/sniff".split(" "),function(e,k,h,l,b,m,d,g,c,a){function f(a,b){for(var c=a.unselectable=b?"on":"",d=a.getElementsByTagName("*"),e=d.length;--e;)"INPUT"=== d[e].tagName||"TEXTAREA"===d[e].tagName||(d[e].unselectable=c)}function u(a,c){var d=a.bodyNode,e=c?"text":21>b("ff")?"-moz-none":"none";n&&"msUserSelect"!==n?d.style[n]=e:b("dom-selectstart")?!c&&!a._selectstartHandle?a._selectstartHandle=l(d,"selectstart",function(a){var b=a.target&&a.target.tagName;"INPUT"!==b&&"TEXTAREA"!==b&&a.preventDefault()}):c&&a._selectstartHandle&&(a._selectstartHandle.remove(),delete a._selectstartHandle):(f(d,!c),!c&&!a._unselectableHandle?a._unselectableHandle=m.after(a, "renderRow",function(a){f(a,!0);return a}):c&&a._unselectableHandle&&(a._unselectableHandle.remove(),delete a._unselectableHandle))}b.add("dom-comparedocumentposition",function(a,b,c){return!!c.compareDocumentPosition});b.add("css-user-select",function(a,b,c){a=c.style;b=["Khtml","O","ms","Moz","Webkit"];c=b.length;var d="userSelect";do if("undefined"!==typeof a[d])return d;while(c--&&(d=b[c]+"UserSelect"));return!1});b.add("dom-selectstart","undefined"!==typeof document.onselectstart);var p=b("mac")? "metaKey":"ctrlKey",n=b("css-user-select");d=g.pointer;g=g.MSPointer;var q=d?d+(g?"Down":"down"):"mousedown",r=d?d+(g?"Up":"up"):"mouseup";return k(null,{selectionDelegate:".dgrid-row",selectionEvents:q+","+r+",dgrid-cellfocusin",selectionTouchEvents:b("touch")?c.tap:null,deselectOnRefresh:!0,allowSelectAll:!1,selection:{},selectionMode:"extended",allowTextSelection:void 0,_selectionTargetType:"rows",create:function(){this.selection={};return this.inherited(arguments)},postCreate:function(){this.inherited(arguments); this._initSelectionEvents();var a=this.selectionMode;this.selectionMode="";this._setSelectionMode(a)},destroy:function(){this.inherited(arguments);this._selectstartHandle&&this._selectstartHandle.remove();this._unselectableHandle&&this._unselectableHandle.remove();this._removeDeselectSignals&&this._removeDeselectSignals()},_setSelectionMode:function(a){a!=this.selectionMode&&(this.clearSelection(),this.selectionMode=a,this._selectionHandlerName="_"+a+"SelectionHandler",this._setAllowTextSelection(this.allowTextSelection))}, setSelectionMode:function(a){e.deprecated("setSelectionMode(...)",'use set("selectionMode", ...) instead',"dgrid 0.4");this.set("selectionMode",a)},_setAllowTextSelection:function(a){"undefined"!==typeof a?u(this,a):u(this,"none"===this.selectionMode);this.allowTextSelection=a},_handleSelect:function(a,b){if(this[this._selectionHandlerName]&&this.allowSelect(this.row(b))&&!("dgrid-cellfocusin"===a.type&&a.parentType===q||a.type===r&&b!=this._waitForMouseUp)){this._waitForMouseUp=null;this._selectionTriggerEvent= a;if(!a.keyCode||!a.ctrlKey||32==a.keyCode)if(!a.shiftKey&&a.type===q&&this.isSelected(b))this._waitForMouseUp=b;else this[this._selectionHandlerName](a,b);this._selectionTriggerEvent=null}},_singleSelectionHandler:function(a,b){var c=a.keyCode?a.ctrlKey:a[p];this._lastSelected===b?this.select(b,null,!c||!this.isSelected(b)):(this.clearSelection(),this.select(b),this._lastSelected=b)},_multipleSelectionHandler:function(a,b){var c=this._lastSelected,d=a.keyCode?a.ctrlKey:a[p],e;a.shiftKey||(e=d?null: !0,c=null);this.select(b,c,e);c||(this._lastSelected=b)},_extendedSelectionHandler:function(a,b){(2===a.button?!this.isSelected(b):!(a.keyCode?a.ctrlKey:a[p]))&&this.clearSelection(null,!0);this._multipleSelectionHandler(a,b)},_toggleSelectionHandler:function(a,b){this.select(b,null,null)},_initSelectionEvents:function(){var a=this,d=this.contentNode,e=this.selectionDelegate;this._selectionEventQueues={deselect:[],select:[]};b("touch")&&!b("pointer")&&this.selectionTouchEvents?(l(d,c.selector(e,this.selectionTouchEvents), function(b){a._handleSelect(b,this);a._ignoreMouseSelect=this}),l(d,l.selector(e,this.selectionEvents),function(b){a._ignoreMouseSelect!==this?a._handleSelect(b,this):b.type===r&&(a._ignoreMouseSelect=null)})):l(d,l.selector(e,this.selectionEvents),function(b){a._handleSelect(b,this)});this.addKeyHandler&&this.addKeyHandler(32,function(b){a._handleSelect(b,b.target)});if(this.allowSelectAll)this.on("keydown",function(b){b[p]&&(65==b.keyCode&&!/\bdgrid-input\b/.test(b.target.className))&&(b.preventDefault(), a[a.allSelected?"clearSelection":"selectAll"]())});this._setStore&&m.after(this,"_setStore",function(){a._updateDeselectionAspect()});this._updateDeselectionAspect()},_updateDeselectionAspect:function(){function a(c,d,e){c=d||c&&c[b.idProperty||"id"];if(null!=c&&(d=(c=b.row(c))&&b.selection[c.id]))b[e](c,null,d)}var b=this,c=this.store,d,e;this._removeDeselectSignals&&this._removeDeselectSignals();c&&c.notify?(d=m.before(c,"notify",function(b,c){b||a(b,c,"deselect")}),e=m.after(c,"notify",function(b, c){a(b,c,"select")},!0),this._removeDeselectSignals=function(){d.remove();e.remove()}):(d=m.before(this,"removeRow",function(a,b){var c;b||(c=this.row(a))&&c.id in this.selection&&this.deselect(c)}),this._removeDeselectSignals=function(){d.remove()})},allowSelect:function(a){return!0},_fireSelectionEvent:function(a){var b=this._selectionEventQueues[a],c=this._selectionTriggerEvent,d;d={bubbles:!0,grid:this};c&&(d.parentType=c.type);d[this._selectionTargetType]=b;l.emit(this.contentNode,"dgrid-"+a, d);this._selectionEventQueues[a]=[]},_fireSelectionEvents:function(){var a=this._selectionEventQueues,b;for(b in a)a[b].length&&this._fireSelectionEvent(b)},_select:function(b,c,d){var e,f,g;"undefined"===typeof d&&(d=!0);b.element||(b=this.row(b));if(!1===d||this.allowSelect(b))if(e=this.selection,f=!!e[b.id],null===d&&(d=!f),g=b.element,!d&&!this.allSelected?delete this.selection[b.id]:e[b.id]=d,g&&(d?a(g,".dgrid-selected"+(this.addUiClasses?".ui-state-active":"")):a(g,"!dgrid-selected!ui-state-active")), d!==f&&g&&this._selectionEventQueues[(d?"":"de")+"select"].push(b),c)if(c.element||(c=this.row(c)),c){if(c=c.element){e=this._determineSelectionDirection(g,c);e||(c=document.getElementById(c.id),e=this._determineSelectionDirection(g,c));for(;b.element!=c&&(b=this[e](b));)this._select(b,null,d)}}else this._lastSelected=g,console.warn("The selection range has been reset because the beginning of the selection is no longer in the DOM. If you are using OnDemandList, you may wish to increase farOffRemoval to avoid this, but note that keeping more nodes in the DOM may impact performance.")}, _determineSelectionDirection:b("dom-comparedocumentposition")?function(a,b){var c=b.compareDocumentPosition(a);return c&1?!1:2===c?"down":"up"}:function(a,b){return 1>b.sourceIndex?!1:b.sourceIndex>a.sourceIndex?"down":"up"},select:function(a,b,c){this._select(a,b,c);this._fireSelectionEvents()},deselect:function(a,b){this.select(a,b,!1)},clearSelection:function(a,b){this.allSelected=!1;for(var c in this.selection)a!==c&&this._select(c,null,!1);b||(this._lastSelected=null);this._fireSelectionEvents()}, selectAll:function(){this.allSelected=!0;this.selection={};for(var a in this._rowIdToObject){var b=this.row(this._rowIdToObject[a]);this._select(b.id,null,!0)}this._fireSelectionEvents()},isSelected:function(a){if("undefined"===typeof a||null===a)return!1;a.element||(a=this.row(a));return a.id in this.selection?!!this.selection[a.id]:this.allSelected&&(!a.data||this.allowSelect(a))},refresh:function(){this.deselectOnRefresh&&this.clearSelection();this._lastSelected=null;return this.inherited(arguments)}, renderArray:function(){var a=this,b=this.inherited(arguments);h.when(b,function(b){var c=a.selection,d,e,f;for(d=0;db("ie")&&(n.style.position="relative");n.focus();8>b("ie")&&(n.style.position="");r=!0;break}}null!==d&&(d=l.mixin({grid:this},d),d.type&&(d.parentType=d.type),d.bubbles||(d.bubbles=!0));c&&(m(c,"!dgrid-focus[!tabIndex]"),8>b("ie")&&(c.style.position=""),d&&(d[f]=this[f](c),h.emit(c,"dgrid-cellfocusout",d)));c=this[e]=a;d&&(d[f]=g);e=this.cellNavigation?u:p;!r&&e.test(a.className)&&(8>b("ie")&&(a.style.position="relative"), a.tabIndex=this.tabIndex,a.focus());m(a,".dgrid-focus");d&&h.emit(c,"dgrid-cellfocusin",d)}},focusHeader:function(a){this._focusOnNode(a||this._focusedHeaderNode,!0)},focus:function(a){(a=a||this._focusedNode)?this._focusOnNode(a,!1):this.contentNode.focus()}}),s=r.moveFocusVertical=function(a,b){var c=this.cellNavigation,d=this[c?"cell":"row"](a),d=c&&d.column.id,e=this.down(this._focusedNode,b,!0);c&&(e=this.cell(e,d));this._focusOnNode(e,!1,a);a.preventDefault()};e=r.moveFocusUp=function(a){s.call(this, a,-1)};n=r.moveFocusDown=function(a){s.call(this,a,1)};d=r.moveFocusPageUp=function(a){s.call(this,a,-this.pageSkip)};var x=r.moveFocusPageDown=function(a){s.call(this,a,this.pageSkip)},w=r.moveFocusHorizontal=function(a,b){if(this.cellNavigation){var c=!this.row(a);this._focusOnNode(this.right(this["_focused"+(c?"Header":"")+"Node"],b),c,a);a.preventDefault()}},y=r.moveFocusLeft=function(a){w.call(this,a,-1)},A=r.moveFocusRight=function(a){w.call(this,a,1)},B=r.moveHeaderFocusEnd=function(a,b){var c; this.cellNavigation&&(c=this.headerNode.getElementsByTagName("th"),this._focusOnNode(c[b?0:c.length-1],!0,a));a.preventDefault()},C=r.moveHeaderFocusHome=function(a){B.call(this,a,!0)},F=r.moveFocusEnd=function(a,d){var e=this,f=this.cellNavigation,g=this.contentNode,h=g.scrollTop+(d?0:g.scrollHeight),g=g[d?"firstChild":"lastChild"],n=-1m.className.indexOf("dgrid-row");)m= m[(d?"next":"previous")+"Sibling"];if(!m)return}!n||1>g.offsetHeight?(f&&(m=this.cell(m,this.cell(a).column.id)),this._focusOnNode(m,!1,a)):(b("dom-addeventlistener")||(a=l.mixin({},a)),q=k.after(this,"renderArray",function(b){q.remove();return c.when(b,function(b){b=b[d?0:b.length-1];f&&(b=e.cell(b,e.cell(a).column.id));e._focusOnNode(b,!1,a)})}));h===p&&a.preventDefault()},K=r.moveFocusHome=function(a){F.call(this,a,!0)};r.defaultKeyMap={32:a,33:d,34:x,35:F,36:K,37:y,38:e,39:A,40:n};r.defaultHeaderKeyMap= {32:a,35:B,36:C,37:y,39:A};return r})},"dgrid/extensions/ColumnResizer":function(){define("dojo/_base/declare dojo/on dojo/query dojo/_base/lang dojo/dom dojo/dom-construct dojo/dom-geometry dojo/has ../util/misc put-selector/put dojo/_base/html xstyle/css!../css/extensions/ColumnResizer.css".split(" "),function(e,k,h,l,b,m,d,g,c,a){function f(a){for(var b=a.length,c=b,d=a[0].length,e=Array(b);b--;)e[b]=Array(d);for(var f={},b=0;b=d)){var g=a.columns[b],h;if(g&&(h={grid:a,columnId:b,width:d,bubbles:!0,cancelable:!0},e&&(h.parentType=e),!a._resizedColumns||k.emit(a.headerNode,"dgrid-columnresize",h)))return"auto"=== d?delete g.width:(g.width=d,d+="px"),(e=a._columnSizes[b])?e.set("width",d):e=c.addCssRule("#"+c.escapeCssIdentifier(a.domNode.id)+" .dgrid-column-"+c.escapeCssIdentifier(b,"-"),"width: "+d+";"),a._columnSizes[b]=e,!1!==f&&a.resize(),!0}}var p,n,q=0,r={create:function(){p=a("div.dgrid-column-resizer");n=m.create("div",{className:"dgrid-resize-guard"})},destroy:function(){a(p,"!");m.destroy(n);p=n=null},show:function(b){var c=d.position(b.domNode,!0);p.style.top=c.y+"px";p.style.height=c.h+"px";a(document.body, p);b.domNode.appendChild(n)},move:function(a){p.style.left=a+"px"},hide:function(){p.parentNode.removeChild(p);n.parentNode.removeChild(n)}};return e(null,{resizeNode:null,minWidth:40,adjustLastColumn:!0,_resizedColumns:!1,buildRendering:function(){this.inherited(arguments);q++||r.create()},destroy:function(){this.inherited(arguments);for(var a in this._columnSizes)this._columnSizes[a].remove();--q||r.destroy()},resizeColumnWidth:function(a,b){return u(this,a,b)},configStructure:function(){var a= this._oldColumnSizes=l.mixin({},this._columnSizes),b;this._resizedColumns=!1;this._columnSizes={};this.inherited(arguments);for(b in a)b in this._columnSizes||a[b].remove();delete this._oldColumnSizes},_configColumn:function(a){this.inherited(arguments);var b=a.id,d;"width"in a&&((d=this._oldColumnSizes[b])?d.set("width",a.width+"px"):d=c.addCssRule("#"+c.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+c.escapeCssIdentifier(b,"-"),"width: "+a.width+"px;"),this._columnSizes[b]=d)},renderHeader:function(){this.inherited(arguments); var b=this,d;if(this.columnSets&&this.columnSets.length)for(var e=this.columnSets.length;e--;)d=l.mixin(d||{},f(this.columnSets[e]));else this.subRows&&1b?f.w=b:ed("ie")&&this.defer(function(){try{var a=h.getComputedStyle(this.domNode);if(a){var b=a.fontFamily;if(b){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(a=0;ad("ie")&&(e.prototype._isTextSelected=function(){var a=this.ownerDocument.selection.createRange(); return a.parentElement()==this.textbox&&0=c||48<=c&&57>=c||c==b.SPACE)return;c=!1;for(var e in b)if(b[e]===a.keyCode){c=!0;break}if(!c)return}}(c=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(c=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==b.SPACE?String.fromCharCode(a.keyCode):a.keyCode);c||(c=229);if("keypress"==a.type){if("string"!=typeof c)return;if("a"<=c&&"z">=c||"A"<=c&&"Z">=c||"0"<=c&&"9">=c||" "===c)if(a.ctrlKey||a.metaKey||a.altKey)return}var g={faux:!0},h;for(h in a)/^(layer[XY]|returnValue|keyLocation)$/.test(h)|| (e=a[h],"function"!=typeof e&&"undefined"!=typeof e&&(g[h]=e));m.mixin(g,{charOrCode:c,_wasConsumed:!1,preventDefault:function(){g._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});this._lastInputProducingEvent=g;!1===this.onInput(g)&&(g.preventDefault(),g.stopPropagation());if(!g._wasConsumed&&9>=l("ie"))switch(a.keyCode){case b.TAB:case b.ESCAPE:case b.DOWN_ARROW:case b.UP_ARROW:case b.LEFT_ARROW:case b.RIGHT_ARROW:break;default:if(a.keyCode==b.ENTER&&"textarea"!= this.textbox.tagName.toLowerCase())break;this.defer(function(){this.textbox.value!==this._lastInputEventValue&&d.emit(this.textbox,"input",{bubbles:!0})})}})),d(this.textbox,"input",m.hitch(this,"_onInput")),d(this.domNode,"keypress",function(a){a.stopPropagation()}))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=m.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g, function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=d.once(this.domNode,"mouseup, touchend",m.hitch(this,function(a){this._isTextSelected()|| c.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});c._setSelectionRange=g._setSelectionRange=function(a,b,c){a.setSelectionRange&&a.setSelectionRange(b,c)};c.selectInputText=g.selectInputText=function(a,b,d){a=h.byId(a);isNaN(b)&&(b=0);isNaN(d)&& (d=a.value?a.value.length:0);try{a.focus(),c._setSelectionRange(a,b,d)}catch(e){}};return c})},"dijit/TooltipDialog":function(){define("dojo/_base/declare dojo/dom-class dojo/has dojo/keys dojo/_base/lang dojo/on ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html ./main".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p){return e("dijit.TooltipDialog",[g,f,a,c],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null, _lastFocusItem:null,templateString:u,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);this.own(m(this.domNode,"keydown",b.hitch(this,"_onKey")))},orient:function(a,b,c){a={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight", "BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[b+"-"+c];k.replace(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems();d.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);var b=a.aroundNodePos;"M"== a.corner.charAt(0)&&"M"==a.aroundCorner.charAt(0)?(this.connectorNode.style.top=b.y+(b.h-this.connectorNode.offsetHeight>>1)-a.y+"px",this.connectorNode.style.left=""):"M"==a.corner.charAt(1)&&"M"==a.aroundCorner.charAt(1)&&(this.connectorNode.style.left=b.x+(b.w-this.connectorNode.offsetWidth>>1)-a.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(a){if(a.keyCode==l.ESCAPE)this.defer("onCancel"),a.stopPropagation(),a.preventDefault();else if(a.keyCode==l.TAB){var b=a.target; this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(d.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b==this._lastFocusItem&&!a.shiftKey?(d.focus(this._firstFocusItem),a.stopPropagation(),a.preventDefault()):a.stopPropagation()}}})})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(e,k){return e("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){}, onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var e=k._getTabNavigable(this.domNode);this._firstFocusItem=e.lowest||e.first||this.closeButtonNode||this.domNode;this._lastFocusItem=e.last||e.highest||this._firstFocusItem}})})},"webview/search/SearchFieldsPanel":function(){define("dojo/_base/declare dojo/_base/array dojo/dom dojo/store/Memory dijit/_WidgetBase dijit/_TemplatedMixin dijit/form/CheckBox dojo/i18n!../resources/slreportgen_webview/nls/modelviewer dojo/text!./templates/SearchFieldsPanel.html".split(" "), function(e,k,h,l,b,m,d,g,c){return e([b,m],{templateString:c,startup:function(){var a=this.finder.searchFields,b=new l,c=this,e=function(b){a.set(this.searchField,b)};this.inherited(arguments);k.forEach(["name","blockType","maskType","propertyName","propertyValue"],function(k){var l=c.id+"-"+k,m=new d({searchField:k,checked:a[k],onChange:e},l);h.byId(l+"-label").innerHTML=g[k];b.add({id:k,checkBox:m});m.startup();c.own(m)});this.own(a.watch(function(a,c,d){(a=b.get(a))&&a.checkBox&&a.checkBox.set("checked", d)}))}})})},"dijit/form/CheckBox":function(){define("require dojo/_base/declare dojo/dom-attr dojo/has dojo/query dojo/ready ./ToggleButton ./_CheckBoxMixin dojo/text!./templates/CheckBox.html ../_mw/utils/deprecation dojo/NodeList-dom ../a11yclick".split(" "),function(e,k,h,l,b,m,d,g,c,a){a.deprecated({deprecated:{module:"dijit/form/Checkbox"},replacement:{module:"MW/form/Checkbox"},geckNumber:1352405});l("dijit-legacy-requires")&&m(0,function(){e(["dijit/form/RadioButton"])});return k("dijit.form.CheckBox", [d,g],{templateString:c,baseClass:"dijitCheckBox",_setValueAttr:function(a,b){"string"==typeof a&&(this.inherited(arguments),a=!0);this._created&&this.set("checked",a,b)},_getValueAttr:function(){return this.checked&&this._get("value")},_setIconClassAttr:null,_setNameAttr:"focusNode",postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=""},_fillContent:function(){},_onFocus:function(){this.id&&b("label[for\x3d'"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)}, _onBlur:function(){this.id&&b("label[for\x3d'"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)}})})},"dijit/form/_CheckBoxMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(e,k){return e("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:!1,_aria_attr:"aria-checked",_setReadOnlyAttr:function(e){this._set("readOnly",e);k.set(this.focusNode,"readOnly",e)},_setLabelAttr:void 0,_getSubmitValue:function(e){return null==e||""===e?"on":e}, _setValueAttr:function(e){e=this._getSubmitValue(e);this._set("value",e);k.set(this.focusNode,"value",e)},reset:function(){this.inherited(arguments);this._set("value",this._getSubmitValue(this.params.value));k.set(this.focusNode,"value",this.value)},_onClick:function(e){return this.readOnly?(e.stopPropagation(),e.preventDefault(),!1):this.inherited(arguments)}})})},"webview/widgets/SystemButton":function(){define("dojo/_base/declare dojo/dom-style dijit/_WidgetBase dijit/_CssStateMixin dijit/_TemplatedMixin dijit/form/Button dijit/form/DropDownButton dijit/Menu dijit/MenuItem dojo/text!./templates/SystemButton.html".split(" "), function(e,k,h,l,b,m,d,g,c,a){var f=e([c],{onClick:function(){var a=this.app;a.open(this.diagram,{tab:"reuse"}).then(function(){a.modelViewer.focus()})}});return e([h,l,b],{templateString:a,baseClass:"system-button-widget",postCreate:function(){var a=this.app,b=this.diagram,c=new g({"class":"system-button-widget"}),e=new d({dropDown:c},this.arrowButtonNode),h=new m({label:b.label,iconClass:b.icon,diagram:b,onClick:function(){a.open(this.diagram,{tab:"reuse"}).then(function(){a.modelViewer.focus()})}}, this.buttonNode),l=e.domNode,b=b.getChildren(),x,w=b.length,y;for(y=0;y/g,"\x26gt;").replace(/"/g,"\x26quot;")});return d},_getInspectorData:function(a){var b;a.inspector&&(b={title:"",params:[],values:[],tabs:[],tabs_idx:[]},a=a.inspector,a.params&&(b.params=a.params),a.values&&(b.values=a.values),a.tabs&&(b.tabs=a.tabs instanceof Array?a.tabs:[a.tabs]),a.tabs_idx instanceof Array?b.tabs_idx=a.tabs_idx:"number"===typeof a.tabs_idx&& (b.tabs_idx=[a.tabs_idx]),0=b.w||d.h>=b.h?(a={w:Math.min(d.w,b.w),h:Math.min(d.h,b.h)},this._shrunk=!0):this._shrunk=!1}if(a){g.setMarginBox(this.domNode,a);b=[];this.titleBar&&b.push({domNode:this.titleBar, region:"top"});this.actionBarNode&&b.push({domNode:this.actionBarNode,region:"bottom"});d={domNode:this.containerNode,region:"center"};b.push(d);var e=N.marginBox2contentBox(this.domNode,a);N.layoutChildren(this.domNode,e,b);this._singleChild?(b=N.marginBox2contentBox(this.containerNode,d),this._singleChild.resize({w:b.w,h:b.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();!r("touch")&&!a&&this._position()}},_layoutChildren:function(){k.forEach(this.getChildren(), function(a){a.resize&&a.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();for(var a;a=this._modalconnects.pop();)a.remove();J.hide(this);this.inherited(arguments)}});var L=l("dijit.Dialog",[O,A],{});L._DialogBase=A;var J=L._DialogLevelManager={_beginZIndex:950,show:function(a,b){H[H.length-1].focus=y.curNode;var d=H[H.length-1].dialog?H[H.length-1].zIndex+2:L._DialogLevelManager._beginZIndex; c.set(a.domNode,"zIndex",d);I.show(b,d-1);H.push({dialog:a,underlayAttrs:b,zIndex:d})},hide:function(a){if(H[H.length-1].dialog==a){H.pop();var b=H[H.length-1];1==H.length?I.hide():I.show(b.underlayAttrs,b.zIndex-1);if(a.refocus){a=b.focus;if(b.dialog&&(!a||!m.isDescendant(a,b.dialog.domNode)))b.dialog._getFocusItems(),a=b.dialog._firstFocusItem;if(a)try{a.focus()}catch(c){}}}else b=k.indexOf(k.map(H,function(a){return a.dialog}),a),-1!=b&&H.splice(b,1)},isTop:function(a){return H[H.length-1].dialog== a}},H=L._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];y.watch("curNode",function(a,b,c){a=H[H.length-1].dialog;if(c&&a&&!a._fadeOutDeferred&&c.ownerDocument==a.ownerDocument){do if(c==a.domNode||d.contains(c,"dijitPopup"))return;while(c=c.parentNode);a.focus()}});r("dijit-legacy-requires")&&q(0,function(){e(["dijit/TooltipDialog"])});return L})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "), function(e,k,h,l,b,m,d,g,c,a,f,u){return k("dojo.dnd.Moveable",[m],{handle:"",delay:0,skip:!1,constructor:function(a,b){this.node=l.byId(a);b||(b={});this.handle=b.handle?l.byId(b.handle):null;this.handle||(this.handle=this.node);this.delay=0this.delay||Math.abs(a.pageY- this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);a.stopPropagation();a.preventDefault()},onMouseUp:function(a){for(var b=0;2>b;++b)this.events.pop().remove();a.stopPropagation();a.preventDefault()},onSelectStart:function(b){if(!this.skip||!a.isFormElement(b))b.stopPropagation(),b.preventDefault()},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){g.publish("/dnd/move/start",a);b.add(u.body(),"dojoMove");b.add(this.node,"dojoMoveItem")},onMoveStop:function(a){g.publish("/dnd/move/stop", a);b.remove(u.body(),"dojoMove");b.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,b){this.onMoving(a,b);var c=a.node.style;c.left=b.l+"px";c.top=b.t+"px";this.onMoved(a,b)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/Mover":function(){define("../_base/array ../_base/declare ../_base/lang ../sniff ../_base/window ../dom ../dom-geometry ../dom-style ../Evented ../on ../touch ./common ./autoscroll".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u,p){return k("dojo.dnd.Mover", [c],{constructor:function(b,c,d){function e(a){a.preventDefault();a.stopPropagation()}this.node=m.byId(b);this.marginBox={l:c.pageX,t:c.pageY};this.mouseButton=c.button;c=this.host=d;b=b.ownerDocument;this.events=[a(b,f.move,h.hitch(this,"onFirstMove")),a(b,f.move,h.hitch(this,"onMouseMove")),a(b,f.release,h.hitch(this,"onMouseUp")),a(b,"dragstart",e),a(b.body,"selectstart",e)];p.autoScrollStart(b);if(c&&c.onMoveStart)c.onMoveStart(this)},onMouseMove:function(a){p.autoScroll(a);var b=this.marginBox; this.host.onMove(this,{l:b.l+a.pageX,t:b.t+a.pageY},a);a.preventDefault();a.stopPropagation()},onMouseUp:function(a){(l("webkit")&&l("mac")&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&this.destroy();a.preventDefault();a.stopPropagation()},onFirstMove:function(a){var c=this.node.style,e,f=this.host;switch(c.position){case "relative":case "absolute":e=Math.round(parseFloat(c.left))||0;c=Math.round(parseFloat(c.top))||0;break;default:c.position="absolute";c=d.getMarginBox(this.node); e=b.doc.body;var h=g.getComputedStyle(e),k=d.getMarginBox(e,h),h=d.getContentBox(e,h);e=c.l-(h.l-k.l);c=c.t-(h.t-k.t)}this.marginBox.l=e-this.marginBox.l;this.marginBox.t=c-this.marginBox.t;if(f&&f.onFirstMove)f.onFirstMove(this,a);this.events.shift().remove()},destroy:function(){e.forEach(this.events,function(a){a.remove()});var a=this.host;if(a&&a.onMoveStop)a.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "), function(e,k,h,l,b,m){var d={};e.setObject("dojo.dnd.autoscroll",d);d.getViewport=m.getBox;d.V_TRIGGER_AUTOSCROLL=32;d.H_TRIGGER_AUTOSCROLL=32;d.V_AUTOSCROLL_VALUE=16;d.H_AUTOSCROLL_VALUE=16;var g,c=h.doc,a=Infinity,f=Infinity;d.autoScrollStart=function(b){c=b;g=m.getBox(c);b=h.body(c).parentNode;a=Math.max(b.scrollHeight-g.h,0);f=Math.max(b.scrollWidth-g.w,0)};d.autoScroll=function(b){var e=g||m.getBox(c),k=h.body(c).parentNode,l=0,r=0;b.clientX e.w-d.H_TRIGGER_AUTOSCROLL&&(l=Math.min(d.H_AUTOSCROLL_VALUE,f-k.scrollLeft));b.clientYe.h-d.V_TRIGGER_AUTOSCROLL&&(r=Math.min(d.V_AUTOSCROLL_VALUE,a-k.scrollTop));window.scrollBy(l,r)};d._validNodes={div:1,p:1,td:1};d._validOverflow={auto:1,scroll:1};d.autoScrollNodes=function(a){for(var c,e,f,g,m,x,w=0,y=0,A=a.target;A;){if(1==A.nodeType&&A.tagName.toLowerCase()in d._validNodes){f=b.getComputedStyle(A);g=f.overflow.toLowerCase()in d._validOverflow; m=f.overflowX.toLowerCase()in d._validOverflow;x=f.overflowY.toLowerCase()in d._validOverflow;if(g||m||x)c=l.getContentBox(A,f),e=l.position(A,!0);if(g||m){f=Math.min(d.H_TRIGGER_AUTOSCROLL,c.w/2);m=a.pageX-e.x;if(k("webkit")||k("opera"))m+=h.body().scrollLeft;w=0;0c.w-f&&(w=f),A.scrollLeft+=w)}if(g||x){g=Math.min(d.V_TRIGGER_AUTOSCROLL,c.h/2);x=a.pageY-e.y;if(k("webkit")||k("opera"))x+=h.body().scrollTop;y=0;0c.h-g&&(y=g),A.scrollTop+=y)}if(w||y)return}try{A= A.parentNode}catch(B){A=null}}d.autoScroll(a)};return d})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(e,k){var h=k.prototype.onMove;return e("dojo.dnd.TimedMoveable",k,{timeout:40,constructor:function(e,b){b||(b={});b.timeout&&("number"==typeof b.timeout&&0<=b.timeout)&&(this.timeout=b.timeout)},onMoveStop:function(e){e._timer&&(clearTimeout(e._timer),h.call(this,e,e._leftTop));k.prototype.onMoveStop.apply(this,arguments)},onMove:function(e,b){e._leftTop= b;if(!e._timer){var k=this;e._timer=setTimeout(function(){e._timer=null;h.call(k,e,e._leftTop)},this.timeout)}}})})},"dijit/DialogUnderlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),function(e,k,h,l,b,m,d,g,c,a,f,u){var p=e("dijit.DialogUnderlay",[g,c],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e", dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(a){l.set(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+a;this._set("class",a)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(m(this.domNode,"keydown",k.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var a=this.node.style,b=this.domNode.style;b.display="none";var c=d.getBox(this.ownerDocument);b.top= c.t+"px";b.left=c.l+"px";a.width=c.w+"px";a.height=c.h+"px";b.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new a(this.domNode);var b=d.get(this.ownerDocument);this._modalConnects=[f.on("resize",k.hitch(this,"layout")),m(b,"scroll",k.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove(); this.inherited(arguments)},_onKeyDown:function(){}});p.show=function(a,c){var d=p._singleton;!d||d._destroyed?d=u._underlay=p._singleton=new p(a):a&&d.set(a);b.set(d.domNode,"zIndex",c);d.open||d.show()};p.hide=function(){var a=p._singleton;a&&!a._destroyed&&a.hide()};return p})},"webview/interface":function(){define(["dijit/registry","dojo/Deferred","dojo/topic","webview/utils/hash"],function(e,k,h,l){function b(a){a=a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight|| document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}function m(a){var b=a.indexOf(":"),c,d;-1===b?c=e.byId(a):(c=e.byId(a.substring(0,b)),d=a.substring(b+1));return{app:c,path:d}}function d(a){return u[a.id]&&"undefined"!==typeof f[a.id]}function g(a,b,c){var d,e=1,f;d=a;do f=document.querySelector(".slwebview-anchor["+d+"\x3d'"+b+"'], .slwebview-anchor["+d+"\x3d'"+c+"']"),"boolean"!==typeof p[d]&&(p[d]=null!==f||null!==document.querySelector(".slwebview-anchor["+ d+"]")),!f&&p[d]&&(e+=1,d=a+"-"+String(e));while(null===f&&(p[d]||"undefined"===typeof p[d]));return f}function c(a){d(a)||(f[a.id]||(f[a.id]=a.on("open",function(c){var e=a.id+":"+c.sid;d(a)&&(a.isElement(c)?(c=a.id+":"+c.diagram.fullname+"/"+c.name,e=g("data-slwebview-elem-anchor",c,e)):(c=a.id+":"+c.fullname,e=g("data-slwebview-diag-anchor",c,e)),e&&(b(e)||e.scrollIntoView(),e.classList.remove("slwebview-anchor-highlight"),top.slwebview.__tmp=e.offsetWidth,e.classList.add("slwebview-anchor-highlight")))})), u[a.id]=!0)}function a(a,c){function d(a){return a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})}var e=a.substring(a.indexOf("-")+1),f=d(e),g=d(e+"-id");return function(){function d(a){var h=1,k=this.dataset[f],m=this.dataset[g],n=a&&a.nohash;for(a=a&&a.highlight;k;)c(k),k=this.dataset[f+"-"+String(h+=1)];m&&(!n&&l()!==m)&&(e=!0,l(m));a&&(b(this)||this.scrollIntoView(),this.classList.remove("slwebview-anchor-highlight"),top.slwebview.__tmp=this.offsetWidth,this.classList.add("slwebview-anchor-highlight"))} var e=!1,k=document.querySelectorAll("["+a+"]"),m,p=k.length,r,s,u={};for(r=0;r|.+\s+))([\w\-\*]+)(\S*$)/).exec(f);h=h||l;if(m){var q=8===e("ie")&&e("quirks")?h.nodeType===l.nodeType:null!==h.parentNode&&9!==h.nodeType&&h.parentNode===l;if(m[2]&&q){var r=k.byId?k.byId(m[2],l):l.getElementById(m[2]);if(!r||m[1]&&m[1]!=r.tagName.toLowerCase())return[];if(h!=l)for(l=r;l!=h;)if(l=l.parentNode,!l)return[];return m[3]?d(m[3],r):[r]}if(m[3]&&h.getElementsByClassName)return h.getElementsByClassName(m[4]);if(m[5])if(r=h.getElementsByTagName(m[5]), m[4]||m[6])f=(m[4]||"")+m[6];else return r}if(b)return 1===h.nodeType&&"object"!==h.nodeName.toLowerCase()?g(h,f,h.querySelectorAll):h.querySelectorAll(f);r||(r=h.getElementsByTagName("*"));m=[];l=0;for(q=r.length;l ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(e,h,k,l,q,s,w){l?m=d(m,g[k||""](l.replace(/\\/g,""))):h?m=(" "==h?b:c)(m):q&&(m=d(m,a(q,w,s)));return""}))throw Error("Syntax error in query");if(!m)return!0; l[h]=m}return m(e,k)}}();if(!e("dom-qsa"))var a=function(a,b){for(var c=a.match(m),e=[],g=0;gg))a.onload=function(){a.onload=null;a.onerror=null;f&&d(a)},a.onerror=function(){console.error("Error loading stylesheet "+ k);f&&d(a)};else if(f)var u=setInterval(function(){a.style&&(clearInterval(u),d(a))},15);(b||l.getElementsByTagName("head")[0]).appendChild(a);f||d(a)}var h="undefined"==typeof _css_cache?{}:_css_cache,l=document,b=l.head;k.insertCss=e;return k})},"url:dijit/templates/TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"contentNode"\n\t\t\tclass\x3d"dijitTreeContent" role\x3d"presentation"\x3e\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem"\n\t\t\t\t tabindex\x3d"-1" aria-selected\x3d"false" id\x3d"${id}_label"\x3e\x3c/span\x3e\n\t\t\x3c/span\n\t\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation"\n\t\t style\x3d"display: none;" aria-labelledby\x3d"${id}_label"\x3e\x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/templates/Tree.html":'\x3cdiv role\x3d"tree"\x3e\n\t\x3cdiv class\x3d"dijitInline dijitTreeIndent" style\x3d"position: absolute; top: -9999px" data-dojo-attach-point\x3d"indentDetector"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point\x3d"rootLoadingIndicator"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeContainer" role\x3d"presentation"\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',"url:dijit/templates/Menu.html":'\x3ctable class\x3d"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role\x3d"menu" tabIndex\x3d"${tabIndex}"\n\t cellspacing\x3d"0"\x3e\n\t\x3ctbody class\x3d"dijitReset" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/tbody\x3e\n\x3c/table\x3e\n', "url:dijit/templates/MenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"menuitem" tabIndex\x3d"-1"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,textDirNode"\n\t\trole\x3d"presentation"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"arrowWrapper" style\x3d"visibility: hidden"\x3e\n\t\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuExpand"\x3e\x3c/span\x3e\n\t\t\t\x3cspan class\x3d"dijitMenuExpandA11y"\x3e+\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n', "url:webview/widgets/templates/ModelBrowser.html":'\x3cdiv class\x3d"wvModelBrowser"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvModelBrowserTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvModelBrowserTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"treeNode"\x3e\x3c/div\x3e\n\x3c/div\x3e',"url:dijit/layout/templates/TabContainer.html":'\x3cdiv class\x3d"dijitTabContainer"\x3e\n\t\x3cdiv class\x3d"dijitTabListWrapper" data-dojo-attach-point\x3d"tablistNode"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"tablistSpacer" class\x3d"dijitTabSpacer ${baseClass}-spacer"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\x3e\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\n/\x3e\x3c/span\x3e\n', "url:dijit/layout/templates/_TabButton.html":'\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"titleNode,innerDiv,tabContent" class\x3d"dijitTabInner dijitTabContent"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTabButtonIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d\'containerNode,focusNode\' class\x3d\'tabLabel\'\x3e\x3c/span\x3e\n\t\x3cspan class\x3d"dijitInline dijitTabCloseButton dijitTabCloseIcon" data-dojo-attach-point\x3d\'closeNode\'\n\t\t role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d\'closeText\' class\x3d\'dijitTabCloseText\'\x3e[x]\x3c/span\n\t\t\t\t\x3e\x3c/span\x3e\n\x3c/div\x3e\n', "url:dijit/layout/templates/ScrollingTabController.html":'\x3cdiv class\x3d"dijitTabListContainer-${tabPosition}" style\x3d"visibility:hidden"\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerMenuButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_menuBtn"\n\t\t data-dojo-props\x3d"containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t data-dojo-attach-point\x3d"_menuBtn" showLabel\x3d"false" title\x3d""\x3e\x26#9660;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_leftBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_leftBtn" data-dojo-attach-event\x3d"onClick: doSlideLeft"\x3e\x26#9664;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_rightBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_rightBtn" data-dojo-attach-event\x3d"onClick: doSlideRight"\x3e\x26#9654;\x3c/div\x3e\n\t\x3cdiv class\x3d\'dijitTabListWrapper\' data-dojo-attach-point\x3d\'tablistWrapper\'\x3e\n\t\t\x3cdiv role\x3d\'tablist\' data-dojo-attach-event\x3d\'onkeydown:onkeydown\'\n\t\t\t data-dojo-attach-point\x3d\'containerNode\' class\x3d\'nowrapTabStrip\'\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e', "url:dijit/layout/templates/_ScrollingTabControllerButton.html":'\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onClick" class\x3d"dijitTabInnerDiv dijitTabContent dijitButtonContents" data-dojo-attach-point\x3d"focusNode" role\x3d"button"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitTabStripIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d"containerNode,titleNode" class\x3d"dijitButtonText"\x3e\x3c/span\x3e\n\x3c/div\x3e',"url:webview/widgets/templates/ModelGraphicsPane.html":'\x3cdiv id\x3d${id} \n class\x3d"model-graphics-widget"\n tabindex\x3d"0"\x3e\n \x3cdiv data-dojo-attach-point\x3d"CanvasNode" \n class\x3d"model-graphics-canvas"\x3e\n \x3c/div\x3e\n\x3c/div\x3e', "url:webview/widgets/templates/LightBox.html":'\x3cdiv class\x3d"lightbox-widget"\x3e\n \x3cdiv class\x3d\'dijitDialogUnderlay\'\n tabIndex\x3d\'-1\'\n id\x3d"${id}_underlay"\n data-dojo-attach-point\x3d\'underlayNode\'\x3e\n \x3c/div\x3e\n\n \x3cdiv class\x3d"dijitDialog dijitDialogFixed"\n tabindex\x3d"0"\n role\x3d"dialog"\n aria-labelledby\x3d"${id}_title"\n data-dojo-attach-point\x3d"dialogNode"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar"\n class\x3d"dijitDialogTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode"\n class\x3d"dijitDialogTitle"\n id\x3d"${id}_title"\n role\x3d"heading"\n level\x3d"1"\x3e\x3c/span\x3e\n \x3cspan data-dojo-attach-point\x3d"closeButtonNode"\n class\x3d"dijitDialogCloseIcon"\n data-dojo-attach-event\x3d"onclick:close"\n title\x3d"${buttonCancel}"\n role\x3d"button"\n tabindex\x3d"0"\x3e\x3cspan data-dojo-attach-point\x3d"closeText"\n class\x3d"closeText"\n title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"contentNode"\n class\x3d"dijitDialogPaneContent"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e', "url:webview/palette/templates/Palette.html":'\x3cdiv class\x3d"palette-widget" \n role\x3d"toolbar"\n data-dojo-attach-point\x3d"containerNode"\x3e\n\x3c/div\x3e\n\n',"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\n\x3e\x3c/div\x3e\n', "url:webview/palette/templates/PaletteSeparator.html":'\x3cdiv id\x3d${id}\n class\x3d"palette-separator"\n role\x3d"presentation"\x3e\n \x3cdiv class\x3d"palette-separator-icon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n\n',"url:webview/search/templates/SearchResultsPane.html":'\x3cdiv class\x3d"wvSearchResultsPane" data-dojo-attach-point\x3d"focusNode" tabIndex\x3d"-1"\x3e\n\x3c!-- revisit focusNOde--\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvSearchResultsPaneTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvSearchResultsPaneTitleText"\x3e\x3c/span\x3e\n \x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon"\n data-dojo-attach-event\x3d"onclick:close"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvSearchResultsPaneContent"\x3e\x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\n/\x3e\x3c/span\x3e\n', "url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\t\t\t${!actionBarTemplate}\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/form/templates/CheckBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cinput\n\t \t${!nameAttrSetting} type\x3d"${type}" role\x3d"${type}" aria-checked\x3d"false" ${checkedAttrSetting}\n\t\tclass\x3d"dijitReset dijitCheckBoxInput"\n\t\tdata-dojo-attach-point\x3d"focusNode"\n\t \tdata-dojo-attach-event\x3d"ondijitclick:_onClick"\n/\x3e\x3c/div\x3e\n',"url:webview/search/templates/SearchFieldsPanel.html":'\x3ctable\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-name"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-name-label" for\x3d"${id}-name"\x3eName\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-blockType"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-blockType-label" for\x3d"${id}-blockType"\x3eBlockType\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-maskType"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-maskType-label" for\x3d"${id}-maskType"\x3eMaskType\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-propertyName"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-propertyName-label" for\x3d"${id}-propertyName"\x3eProperty Name\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr\x3e\n \x3ctd\x3e\x3cinput id\x3d"${id}-propertyValue"/\x3e\x3c/td\x3e\n \x3ctd\x3e\x3clabel id\x3d"${id}-propertyValue-label" for\x3d"${id}-propertyValue"\x3eProperty Value\x3c/label\x3e\x3c/td\x3e\n \x3c/tr\x3e\n\x3c/table\x3e', "url:webview/search/templates/InlineSearch.html":'\x3cdiv class\x3d"wvInlineSearch"\x3e\x3cdiv data-dojo-attach-point\x3d"fieldsButtonNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"formNode"\x3e\x3cdiv data-dojo-attach-point\x3d"textBoxNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"searchButtonNode"\x3e\x3c/div\x3e\x3c/div\x3e',"url:webview/widgets/templates/SystemButton.html":'\x3cdiv class\x3d"system-button-widget dijit dijitReset dijitInline dijitLeft"\n role\x3d"presentation"\x3e\n \x3cdiv role\x3d"presentation"\x3e\n \x3cdiv role\x3d"presentation"\x3e\n \x3cdiv data-dojo-attach-point\x3d"buttonNode"\x3e\x3c/div\x3e\n \x3cdiv data-dojo-attach-point\x3d"arrowButtonNode"\x3e\x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/templates/TitlePane.html":'\x3cdiv\x3e\n\t\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onTitleClick, onkeydown:_onTitleKey"\n\t\t\tclass\x3d"dijitTitlePaneTitle" data-dojo-attach-point\x3d"titleBarNode" id\x3d"${id}_titleBarNode"\x3e\n\t\t\x3cdiv class\x3d"dijitTitlePaneTitleFocus" data-dojo-attach-point\x3d"focusNode"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"arrowNode" class\x3d"dijitInline dijitArrowNode" role\x3d"presentation"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"arrowNodeInner" class\x3d"dijitArrowNodeInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitTitlePaneTextNode"\x3e\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTitlePaneContentOuter" data-dojo-attach-point\x3d"hideNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dijitReset" data-dojo-attach-point\x3d"wipeNode" role\x3d"presentation"\x3e\n\t\t\t\x3cdiv class\x3d"dijitTitlePaneContentInner" data-dojo-attach-point\x3d"containerNode" role\x3d"region" id\x3d"${id}_pane" aria-labelledby\x3d"${id}_titleBarNode"\x3e\n\t\t\t\t\x3c!-- nested divs because wipeIn()/wipeOut() doesn\'t work right on node w/padding etc. Put padding on inner div. --\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n', "url:webview/widgets/templates/ModelInspector.html":'\x3cdiv class\x3d"wvModelInspector"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvModelInspectorTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvModelInspectorTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvModelInspectorContainer"\x3e\x3c/div\x3e\n\x3c/div\x3e\n\n',"url:webview/widgets/templates/Informer.html":'\x3cdiv class\x3d"wvInformer"\x3e\n \x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"wvInformerTitleBar"\x3e\n \x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"wvInformerTitleText"\x3e\x3c/span\x3e\n \x3c/div\x3e \n \x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"wvInformerContent"\x3e\x3c/div\x3e\n\x3c/div\x3e\n', "url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"${buttonCancel}" role\x3d"button" tabindex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\n\t${!actionBarTemplate}\n\x3c/div\x3e\n\n', "*now":function(e){e(['dojo/i18n!*preload*webview/nls/webview*["ar","ca","cs","da","de","el","en-gb","en-us","es-es","fi-fi","fr-fr","he-il","hu","it-it","ja-jp","ko-kr","nl-nl","nb","pl","pt-br","pt-pt","ru","sk","sl","sv","th","tr","zh-tw","zh-cn","ROOT"]'])}}});(function(){var e=this.require;e({cache:{}});!e.async&&e(["dojo"]);e.boot&&e.apply(null,e.boot)})(); //# sourceMappingURL=webview.js.map