//>>built
define("dojox/highlight/widget/Code","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/query dojo/dom-class dojo/dom-attr dojo/dom-construct dojo/request/xhr dijit/_Widget dijit/_Templated dojox/highlight".split(" "),function(g,e,h,f,k,l,m,n,p,q){return g("dojox.highlight.widget.Code",[p,q],{url:"",range:null,style:"",listType:"1",lang:"",templateString:'\x3cdiv class\x3d"formatted" style\x3d"${style}"\x3e\x3cdiv class\x3d"titleBar"\x3e\x3c/div\x3e\x3col type\x3d"${listType}" dojoAttachPoint\x3d"codeList" class\x3d"numbers"\x3e\x3c/ol\x3e\x3cdiv style\x3d"display:none" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',
postCreate:function(){this.inherited(arguments);this.url?n(this.url,{}).then(e.hitch(this,"_populate"),e.hitch(this,"_loadError")):this._populate(this.containerNode.innerHTML)},_populate:function(a){this.containerNode.innerHTML="\x3cpre\x3e\x3ccode class\x3d'"+this.lang+"'\x3e"+a.replace(/</g,"\x26lt;")+"\x3c/code\x3e\x3c/pre\x3e";f("pre \x3e code",this.containerNode).forEach(dojox.highlight.init);a=this.containerNode.innerHTML.split("\n");h.forEach(a,function(b,c){var d=m.create("li");k.add(d,0!==
c%2?"even":"odd");b=("\x3cpre\x3e\x3ccode\x3e"+b+"\x26nbsp;\x3c/code\x3e\x3c/pre\x3e").replace(/\t/g," \x26nbsp; ");d.innerHTML=b;this.codeList.appendChild(d)},this);this._lines=f("li",this.codeList);this._updateView()},setRange:function(a){a instanceof Array&&(this.range=a,this._updateView())},_updateView:function(){if(this.range){var a=this.range;this._lines.style({display:"none"}).filter(function(b,c){return c+1>=a[0]&&c+1<=a[1]}).style({display:""});l.set(this.codeList,"start",a[0])}},_loadError:function(a){}})});