(b.nodeName||b.bind&&b.find)}functionTa(b,a,c){vard=[];m(b,function(b,g,h){d.push(a.call(c,b,g,h))});returnd}functionfc(b,a){varc=0,d;if(K(b)||G(b))returnb.length;elseif(J(b))for(dinb)(!a||b.hasOwnProperty(d))&&c++;returnc}functionUa(b,a){if(b.indexOf)returnb.indexOf(a);for(varc=0;c<b.length;c++)if(a===b[c])returnc;return-1}functionza(b,a){varc=Ua(b,a);c>=0&&b.splice(c,1);returna}functionU(b,a){if(na(b)||b&&b.$evalAsync&&b.$watch)throwz("Can't copy Window or Scope");if(a){if(b===
a)throwz("Can't copy equivalent objects or arrays");if(K(b)){for(;a.length;)a.pop();for(varc=0;c<b.length;c++)a.push(U(b[c]))}elsefor(cinm(a,function(b,c){deletea[c]}),b)a[c]=U(b[c])}else(a=b)&&(K(b)?a=U(b,[]):ma(b)?a=newDate(b.getTime()):J(b)&&(a=U(b,{})));returna}functiongc(b,a){vara=a||{},c;for(cinb)b.hasOwnProperty(c)&&c.substr(0,2)!=="$$"&&(a[c]=b[c]);returna}functionea(b,a){if(b===a)return!0;if(b===null||a===null)return!1;if(b!==b&&a!==a)return!0;varc=typeofb,d;if(c==typeofa&&
function(b,d){return(d?a:"")+b.toLowerCase()})}functionpa(b,a,c){if(!b)thrownewz("Argument '"+(a||"?")+"' is "+(c||"required"));returnb}functionqa(b,a,c){c&&K(b)&&(b=b[b.length-1]);pa(M(b),a,"not a function, got "+(b&&typeofb=="object"?b.constructor.name||"Object":typeofb));returnb}functionkc(b){functiona(a,b,e){returna[b]||(a[b]=e())}returna(a(b,"angular",Object),"module",function(){varb={};returnfunction(d,e,g){e&&b.hasOwnProperty(d)&&(b[d]=null);returna(b,d,function(){functiona(c,
P)returnb;if(!(thisinstanceofP)){if(G(b)&&b.charAt(0)!="<")throwz("selectors not implemented");returnnewP(b)}if(G(b)){vara=$.createElement("div");a.innerHTML="<div> </div>"+b;a.removeChild(a.firstChild);bb(this,a.childNodes);this.remove()}elsebb(this,b)}functioncb(b){returnb.cloneNode(!0)}functionra(b){rb(b);for(vara=0,b=b.childNodes||[];a<b.length;a++)ra(b[a])}functionsb(b,a,c){vard=ba(b,"events");ba(b,"handle")&&(v(a)?m(d,function(a,c){tb(b,c,a);deleted[c]}):v(c)?(tb(b,a,d[a]),
""),c=c.match(qc),m(c[1].split(rc),function(b){b.replace(sc,function(b,c,d){a.push(d)})}),b.$inject=a}elseK(b)?(c=b.length-1,qa(b[c],"fn"),a=b.slice(0,c)):qa(b,"fn",!0);returna}functionpb(b){functiona(a){returnfunction(b,c){if(J(b))m(b,lb(a));elsereturna(b,c)}}functionc(a,b){M(b)&&(b=l.instantiate(b));if(!b.$get)throwz("Provider "+a+" must define $get factory method.");returnk[a+f]=b}functiond(a,b){returnc(a,{$get:b})}functione(a){varb=[];m(a,function(a){if(!j.get(a))if(j.put(a,!0),
G(a)){varc=sa(a);b=b.concat(e(c.requires)).concat(c._runBlocks);try{for(vard=c._invokeQueue,c=0,f=d.length;c<f;c++){varg=d[c],i=g[0]=="$injector"?l:l.get(g[0]);i[g[1]].apply(i,g[2])}}catch(h){throwh.message&&(h.message+=" from "+a),h;}}elseif(M(a))try{b.push(l.invoke(a))}catch(o){throwo.message&&(o.message+=" from "+a),o;}elseif(K(a))try{b.push(l.invoke(a))}catch(n){thrown.message&&(n.message+=" from "+String(a[a.length-1])),n;}elseqa(a,"module")});returnb}functiong(a,b){functionc(d){if(typeofd!==
"string")throwz("Service name expected");if(a.hasOwnProperty(d)){if(a[d]===h)throwz("Circular dependency: "+i.join(" <- "));returna[d]}elsetry{returni.unshift(d),a[d]=h,a[d]=b(d)}finally{i.shift()}}functiond(a,b,e){varf=[],g=Ab(a),j,h,o;h=0;for(j=g.length;h<j;h++)o=g[h],f.push(e&&e.hasOwnProperty(o)?e[o]:c(o,i));a.$inject||(a=a[j]);switch(b?-1:f.length){case0:returna();case1:returna(f[0]);case2:returna(f[0],f[1]);case3:returna(f[0],f[1],f[2]);case4:returna(f[0],f[1],f[2],f[3]);case5:returna(f[0],
function(){vara=A.attr("href");returna?a.replace(/^https?\:\/\/[^\/]*/,""):a};varV={},H="",N=f.baseHref();f.cookies=function(a,b){vard,e,f,g;if(a)if(b===p)i.cookie=escape(a)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT";else{if(G(b))d=(i.cookie=escape(a)+"="+escape(b)+";path="+N).length+1,d>4096&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"),V.length>20&&c.warn("Cookie '"+a+"' possibly not set or overflowed because too many cookies were already set ("+
deletei[a];h--},removeAll:function(){i={};h=0;k={};l=n=null},destroy:function(){k=f=i=null;deletea[b]},info:function(){returnD({},f,{size:h})}}}vara={};b.info=function(){varb={};m(a,function(a,e){b[e]=a.info()});returnb};b.get=function(b){returna[b]};returnb}}functionxc(){this.$get=["$cacheFactory",function(b){returnb("templates")}]}functionBb(b){vara={},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g="Template must have exactly one root element. was: ";
b,c,d){throwz("Failed to load template: "+d.url);});returnfunction(a,c,d,e,f){i?(i.push(c),i.push(d),i.push(e),i.push(f)):n(function(){b(o,c,d,e,f)},c,d,e,f)}}functionH(a,b){returnb.priority-a.priority}functionN(a,b,c,d){if(b)throwz("Multiple directives ["+b.name+", "+c.name+"] asking for "+a+" on: "+oa(d));}functionF(a,b){varc=i(b,!0);c&&a.push({priority:0,compile:B(function(a,b){vard=b.parent(),e=d.data("$binding")||[];e.push(c);q(d.data("$binding",e),"ng-binding");a.$watch(c,function(a){b[0].nodeValue=
c(".")&&e(d()))j();elseif(h(q)){if(k(),"{,".indexOf(t)!=-1&&w[0]=="{"&&(r=n[n.length-1]))r.json=r.text.indexOf(".")==-1}elseif(c("(){}[].,;:"))n.push({index:o,text:q,json:":[,".indexOf(t)!=-1&&c("{[")||c("}]:,")}),c("{[")&&w.unshift(q),c("}]")&&w.shift(),o++;elseif(g(q)){o++;continue}else{varm=q+d(),A=Ka[q],y=Ka[m];y?(n.push({index:o,text:m,fn:y}),o+=2):A?(n.push({index:o,text:q,fn:A,json:"[,:".indexOf(t)!=-1&&c("+-")}),o+=1):i("Unexpected next character ",o,o+1)}t=q}returnn}functionLc(b,a,
c,d){functione(a,c){throwz("Syntax Error: Token '"+c.text+"' "+a+" at column "+(c.index+1)+" of the expression ["+b+"] starting at ["+b.substring(c.index)+"].");}functiong(){if(N.length===0)throwz("Unexpected end of expression: "+b);returnN[0]}functionh(a,b,c,d){if(N.length>0){vare=N[0],f=e.text;if(f==a||f==b||f==c||f==d||!a&&!b&&!c&&!d)returne}return!1}functionf(b,c,d,f){return(b=h(b,c,d,f))?(a&&!b.json&&e("is not valid json",b),N.shift(),b):!1}functioni(a){f(a)||e("is unexpected, expecting ["+
if(f("("))a=v(),i(")");elseif(f("["))a=y();elseif(f("{"))a=L();else{varb=f();(a=b.fn)||e("not a primary expression",b)}for(varc;b=f("(","[",".");)b.text==="("?(a=u(a,c),c=null):b.text==="["?(c=a,a=ca(a)):b.text==="."?(c=a,a=s(a)):e("IMPOSSIBLE");returna}functiony(){vara=[];if(g().text!="]"){doa.push(F());while(f(","))}i("]");returnfunction(b,c){for(vard=[],f=0;f<a.length;f++)d.push(a[f](b,c));returnd}}functionL(){vara=[];if(g().text!="}"){do{varb=f(),b=b.string||b.text;i(":");varc=
F();a.push({key:b,value:c})}while(f(","))}i("}");returnfunction(b,c){for(vard={},f=0;f<a.length;f++){vare=a[f],j=e.value(b,c);d[e.key]=j}returnd}}varV=B(0),H,N=Jc(b,d),F=function(){vara=r(),c,d;return(d=f("="))?(a.assign||e("implies assignment but ["+b.substring(0,d.index)+"] can not be assigned to",d),c=r(),function(b,d){returna.assign(b,c(b,d),d)}):a},u=function(a,b){varc=[];if(g().text!=")"){doc.push(F());while(f(","))}i(")");returnfunction(d,f){for(vare=[],j=b?b(d,f):d,g=0;g<c.length;g++)e.push(c[g](d,
n());elsereturna};a?(F=r,u=s=ca=v=function(){e("is not valid json",{text:b,index:0})},H=A()):H=l();N.length!==0&&e("is an unexpected token",N[0]);returnH}functionKb(b,a,c){for(vara=a.split("."),d=0;a.length>1;d++){vare=a.shift(),g=b[e];g||(g={},b[e]=g);b=g}returnb[a.shift()]=c}functioneb(b,a,c){if(!a)returnb;for(vara=a.split("."),d,e=b,g=a.length,h=0;h<g;h++)d=a[h],b&&(b=(e=b)[d]);return!c&&M(b)?Va(e,b):b}functionLb(b,a,c,d,e){returnfunction(g,h){varf=h&&h.hasOwnProperty(b)?h:g,i;if(f===
" already in progress");i.$$phase=a}functionh(a,b){varc=d(a);qa(c,b);returnc}functionf(){}e.prototype={$new:function(a){if(M(a))throwz("API-CHANGE: Use $controller to instantiate controllers.");a?(a=newe,a.$root=this.$root):(a=function(){},a.prototype=this,a=newa,a.$id=wa());a["this"]=a;a.$$listeners={};a.$parent=this;a.$$asyncQueue=[];a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=
a.keyCode;a===91||15<a&&a<19||37<=a&&a<=40||f||(f=g.defer(function(){h();f=null}))});a.bind("change",h)}d.$render=function(){a.val(S(d.$viewValue)?"":d.$viewValue)};vari=c.ngPattern,j=function(a,b){returnS(b)||a.test(b)?(d.$setValidity("pattern",!0),b):(d.$setValidity("pattern",!1),p)};i&&(i.match(/^\/(.*)\/$/)?(i=RegExp(i.substr(1,i.length-2)),e=function(a){returnj(i,a)}):e=function(a){varc=b.$eval(i);if(!c||!c.test)thrownewz("Expected "+i+" to be a RegExp but was "+c);returnj(c,a)},d.$formatters.push(e),
{put:function(a,c){this[ia(a)]=c},get:function(a){returnthis[ia(a)]},remove:function(a){varc=this[a=ia(a)];deletethis[a];returnc}};db.prototype={push:function(a,c){vard=this[a=ia(a)];d?d.push(c):this[a]=[c]},shift:function(a){varc=this[a=ia(a)];if(c)returnc.length==1?(deletethis[a],c[0]):c.shift()}};varqc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,rc=/,/,sc=/^\s*(_?)(.+?)\1\s*$/,pc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Db="Non-assignable model expression: ";Bb.$inject=["$provide"];varzc=/^(x[\:\-_]|data[\:\-_])/i,
"&&":function(a,c,d,e){returnd(a,c)&&e(a,c)},"||":function(a,c,d,e){returnd(a,c)||e(a,c)},"&":function(a,c,d,e){returnd(a,c)&e(a,c)},"|":function(a,c,d,e){returne(a,c)(a,c,d(a,c))},"!":function(a,c,d){return!d(a,c)}},Kc={n:"\n",f:"\u000c",r:"\r",t:"\t",v:"\u000b","'":"'",'"':'"'},gb={},Xc=T.XMLHttpRequest||function(){try{returnnewActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{returnnewActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{returnnewActiveXObject("Msxml2.XMLHTTP")}catch(d){}thrownewz("This browser does not support XMLHttpRequest.");
c,h){varf=h.ngRepeat,h=f.match(/^\s*(.+)\s+in\s+(.*)\s*$/),i,j,k;if(!h)throwz("Expected ngRepeat in form of '_item_ in _collection_' but got '"+f+"'.");f=h[1];i=h[2];h=f.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!h)throwz("'item' in 'item in collection' should be identifier or (key, value) but got '"+f+"'.");j=h[3]||h[1];k=h[2];varl=newdb;a.$watch(function(a){vare,f,h=a.$eval(i),m=fc(h,!0),p,u=newdb,A,y,v,s,z=c;if(K(h))v=h||[];else{v=[];for(Ainh)h.hasOwnProperty(A)&&A.charAt(0)!=
selected:d.selected}),B?B.after(C):s.element.append(C),B=C;for(x++;u.length>x;)u.pop().element.remove()}for(;v.length>w;)v.pop()[0].element.remove()}varh;if(!(h=w.match(d)))throwz("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+w+"'.");varj=c(h[2]||h[1]),k=h[4]||h[6],l=h[5],m=c(h[3]||""),n=c(h[2]?h[1]:k),r=c(h[7]),v=[[{element:f,label:""}]];q&&(a(q)(e),q.removeClass("ng-scope"),q.remove());f.html("");f.bind("change",function(){e.$apply(function(){vara,
<ahref="dependency-examples/knockoutjs_require/index.html"data-source=""data-content="This project is an adaptation of /architecture-examples/knockoutjs with require.js.">Knockout + Require.js *</a>
</li>
<li>
<ahref="dependency-examples/angularjs_require/index.html"data-source="http://angularjs.org"data-content="What HTML would have been had it been designed for web apps. This is an example of using it with AMD modules.">AngularJS + RequireJS</a>