!function(a,b,c){var d=b.define,e=function(e){var t,n=e.split("."),r=b;for(t=0;t/g,">").replace(d,""").replace(f,"'")},getObject:function(e,t){i.warn("string.getObject is deprecated, please use can-util/js/get/get instead.");for(var n,r=(t=c(t)?t:[t||window]).length,a=0;a=i.length)return a||j(s,{index:t,deleteCount:r.length-t+1,insert:[]}),!1;var n=i[t];f.isPrimitive(e)||f.isPrimitive(n)||!1===b(e)?j(s,{index:t,deleteCount:1,insert:[n]}):this.updateDeep(e,n)},this),i.length>o&&j(s,{index:o+1,deleteCount:0,insert:i.slice(o+1)});for(var t=0,n=s.length;t";if(a.isMoreListLikeThanMapLike(t))return r+"[]";if(a.isMapLike(t))return r+"{}"}}}}}),define("can-reflect/types/map",["require","exports","module","can-reflect/reflections/shape/shape","can-symbol"],function(e,t,n){var r=e("can-reflect/reflections/shape/shape"),a=e("can-symbol");"undefined"!=typeof Map&&(r.assignSymbols(Map.prototype,{"can.getOwnEnumerableKeys":Map.prototype.keys,"can.setKeyValue":Map.prototype.set,"can.getKeyValue":Map.prototype.get,"can.deleteKeyValue":Map.prototype.delete,"can.hasOwnKey":Map.prototype.has}),"function"!=typeof Map.prototype.keys&&(Map.prototype.keys=Map.prototype[a.for("can.getOwnEnumerableKeys")]=function(){var n=[],e=0;return this.forEach(function(e,t){n.push(t)}),{next:function(){return{value:n[e],done:e++===n.length}}}})),"undefined"!=typeof WeakMap&&r.assignSymbols(WeakMap.prototype,{"can.getOwnEnumerableKeys":function(){throw new Error("can-reflect: WeakMaps do not have enumerable keys.")},"can.setKeyValue":WeakMap.prototype.set,"can.getKeyValue":WeakMap.prototype.get,"can.deleteKeyValue":WeakMap.prototype.delete,"can.hasOwnKey":WeakMap.prototype.has})}),define("can-reflect/types/set",["require","exports","module","can-reflect/reflections/shape/shape","can-symbol"],function(e,t,n){var r=e("can-reflect/reflections/shape/shape"),a=e("can-symbol");"undefined"!=typeof Set&&(r.assignSymbols(Set.prototype,{"can.isMoreListLikeThanMapLike":!0,"can.updateValues":function(e,t,n){t!==n&&r.each(t,function(e){this.delete(e)},this),r.each(n,function(e){this.add(e)},this)},"can.size":function(){return this.size}}),"function"!=typeof Set.prototype[a.iterator]&&(Set.prototype[a.iterator]=function(){var t=[],e=0;return this.forEach(function(e){t.push(e)}),{next:function(){return{value:t[e],done:e++===t.length}}}})),"undefined"!=typeof WeakSet&&r.assignSymbols(WeakSet.prototype,{"can.isListLike":!0,"can.isMoreListLikeThanMapLike":!0,"can.updateValues":function(e,t,n){t!==n&&r.each(t,function(e){this.delete(e)},this),r.each(n,function(e){this.add(e)},this)},"can.size":function(){throw new Error("can-reflect: WeakSets do not have enumerable keys.")}})}),define("can-reflect",["require","exports","module","can-reflect/reflections/call/call","can-reflect/reflections/get-set/get-set","can-reflect/reflections/observe/observe","can-reflect/reflections/shape/shape","can-reflect/reflections/type/type","can-reflect/reflections/get-name/get-name","can-namespace","can-reflect/types/map","can-reflect/types/set"],function(e,t,n){var r=e("can-reflect/reflections/call/call"),a=e("can-reflect/reflections/get-set/get-set"),i=e("can-reflect/reflections/observe/observe"),s=e("can-reflect/reflections/shape/shape"),o=e("can-reflect/reflections/type/type"),c=e("can-reflect/reflections/get-name/get-name"),u=e("can-namespace"),l={};[r,a,i,s,o,c].forEach(function(e){for(var t in e)if(l[t]=e[t],"function"==typeof e[t]){var n=Object.getOwnPropertyDescriptor(e[t],"name");(!n||n.writable&&n.configurable)&&Object.defineProperty(e[t],"name",{value:"canReflect."+t})}}),e("can-reflect/types/map"),e("can-reflect/types/set"),n.exports=u.Reflect=l}),define("can-types",["require","exports","module","can-namespace","can-reflect","can-symbol","can-log/dev/dev"],function(e,t,n){var r=e("can-namespace"),a=e("can-reflect"),i=e("can-symbol"),s=e("can-log/dev/dev"),o={isMapLike:function(e){return s.warn("can-types.isMapLike(obj) is deprecated, please use `canReflect.isObservableLike(obj) && canReflect.isMapLike(obj)` instead."),a.isObservableLike(e)&&a.isMapLike(e)},isListLike:function(e){return s.warn("can-types.isListLike(obj) is deprecated, please use `canReflect.isObservableLike(obj) && canReflect.isListLike(obj)` instead."),a.isObservableLike(e)&&a.isListLike(e)},isPromise:function(e){return s.warn("can-types.isPromise is deprecated, please use canReflect.isPromise instead."),a.isPromise(e)},isConstructor:function(e){return s.warn("can-types.isConstructor is deprecated, please use canReflect.isConstructorLike instead."),a.isConstructorLike(e)},isCallableForValue:function(e){return s.warn("can-types.isCallableForValue(obj) is deprecated, please use `canReflect.isFunctionLike(obj) && !canReflect.isConstructorLike(obj)` instead."),e&&a.isFunctionLike(e)&&!a.isConstructorLike(e)},isCompute:function(e){return s.warn("can-types.isCompute is deprecated."),e&&e.isComputed},get iterator(){return s.warn('can-types.iterator is deprecated, use `canSymbol.iterator || canSymbol.for("iterator")` instead.'),i.iterator||i.for("iterator")},DefaultMap:null,DefaultList:null,queueTask:function(e){var t=e[2]||[];e[0].apply(e[1],t)},wrapElement:function(e){return e},unwrapElement:function(e){return e}};if(r.types)throw new Error("You can't have two versions of can-types, check your dependencies");n.exports=r.types=o}),define("can-cid",["require","exports","module","can-namespace"],function(e,t,n){var r=e("can-namespace"),a=0,i="can"+new Date,s=function(e,t){var n=e.nodeName?i:"_cid";return e[n]||(a++,e[n]=(t||"")+a),e[n]};if(s.domExpando=i,s.get=function(e){var t=typeof e;return null!==t&&("object"===t||"function"===t)?s(e):t+":"+e},r.cid)throw new Error("You can't have two versions of can-cid, check your dependencies");n.exports=r.cid=s}),define("can-dom-data-state",["require","exports","module","can-namespace","can-cid"],function(e,t,n){"use strict";var r=e("can-namespace"),a=e("can-cid"),i={},s=function(){var e=a.get(this),t=!1;return e&&i[e]&&(t=!0,delete i[e]),t},o={_data:i,getCid:function(){return a.get(this)},cid:function(){return a(this)},expando:a.domExpando,get:function(e){var t=a.get(this),n=t&&i[t];return void 0===e?n:n&&n[e]},set:function(e,t){var n=a(this),r=i[n]||(i[n]={});return void 0!==e&&(r[e]=t),r},clean:function(e){var t=a.get(this),n=i[t];n&&n[e]&&delete n[e],function(e){for(var t in e)return!1;return!0}(n)&&s.call(this)},delete:s};if(r.domDataState)throw new Error("You can't have two versions of can-dom-data-state, check your dependencies");n.exports=r.domDataState=o}),define("can-globals/can-globals-proto",["require","exports","module","can-reflect"],function(o,e,t){!function(e,t,n,r){"use strict";var a=o("can-reflect");function i(e){var t=this.eventHandlers[e];if(t)for(var n=t.slice(),r=this.getKeyValue(e),a=0;a*self}} is deprecated. Use {{>scope.view}} instead.")):(i[0]={key:i[0].key.substr(1),at:!0},p.warn((s?s+":":"")+(o?o+": ":"")+"{{*"+i[0].key+"}} is deprecated. Use {{scope.vars."+i[0].key+"}} instead."),i.unshift({key:"vars"}))}else i=i.slice(1);return c[i[0].key]?this._read(i,{special:!0}):1===i.length?{value:this.templateContext[i[0].key]}:this.getTemplateContext()._read(i)}return this._read(i,t,n)},_read:function(n,e,t){for(var r,a,i,s,o,c,u,l=this,p=[],d=-1,f=b({foundObservable:function(e,t){a=e,i=n.slice(t)},earlyExit:function(e,t){(d]*>"),j=new RegExp("\\{\\{(![\\s\\S]*?!|[\\s\\S]*?)\\}\\}\\}?","g"),d=/\s/,p=new RegExp("["+i+"]"),f=new RegExp("["+s+"]+s*=s*(\"[^\"]*\"|'[^']*')"),_=a("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),L=a("altGlyph,altGlyphDef,altGlyphItem,animateColor,animateMotion,animateTransform,clipPath,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,foreignObject,glyphRef,linearGradient,radialGradient,textPath"),C=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),E=a("script"),S="start,end,close,attrStart,attrEnd,attrValue,chars,comment,special,done".split(","),h={"{":"}","(":")"},O=function(){},D=function(e,a,t){if("object"==typeof e)return function(e,t){for(var n=0,r=e.length;n"):b.warn("expected closing tag "+h[n]+">")):(n<0||n!==h.length-1)&&(0"):b.warn(d+": unexpected closing tag "+e+" expected "+h[h.length-1]+">"):a.filename?b.warn(a.filename+":"+d+": unexpected closing tag "+e):b.warn(d+": unexpected closing tag "+e)),0<=n){for(var r=h.length-1;n<=r;r--)a.close&&a.close(h[r],d);h.length=n}}function c(e,t){a.special&&a.special(t,d)}a.magicMatch&&b.warn("can-view-parser: magicMatch is deprecated."),a.magicStart&&b.warn("can-view-parser: magicStart is deprecated.");var u,l,p,d,f=function(){m&&(a.chars&&a.chars(m,d),d+=x(m)),m=""},h=[],v=e,m="";for(d=1,h.last=function(){return this[this.length-1]};e;){if(l=!0,h.last()&&E[h.last()])e=e.replace(new RegExp("([\\s\\S]*?)"+h.last()+"[^>]*>"),function(e,t){return t=t.replace(/|/g,"$1$2"),a.chars&&a.chars(t,d),d+=x(t),""}),o("",h.last());else{if(0===e.indexOf("\x3c!--"))0<=(u=e.indexOf("--\x3e"))&&(f(),a.comment&&a.comment(e.substring(4,u),d),d+=x(e.substring(0,u+3)),e=e.substring(u+3),l=!1);else if(0===e.indexOf(""))(p=e.match(k))&&(f(),p[0].replace(k,o),d+=x(e.substring(0,p[0].length)),e=e.substring(p[0].length),l=!1);else if(0===e.indexOf("<")){var g=D.searchStartTag(e);g&&(f(),s.apply(null,g.match),e=g.html,l=!1)}else 0===e.indexOf(i)&&(p=e.match(n))&&(f(),p[0].replace(n,c),d+=x(e.substring(0,p[0].length)),e=e.substring(p[0].length));if(l){0===(u=T(e,i))&&e===v&&(m+=e.charAt(0),e=e.substr(1),u=T(e,i));var y=u<0?e:e.substring(0,u);e=u<0?"":e.substring(u),y&&(m+=y)}}if(e===v)throw new Error("Parse Error: "+e);v=e}return f(),o(),a.done(d),r},v=function(e,t,n,r,a){var i=r.substring("number"==typeof e.nameStart?e.nameStart:t,t),s=o.encode(i);e.attrStart=s,n.attrStart(e.attrStart,a),e.inName=!1},m=function(e,t,n,r,a){if(void 0!==e.valueStart&&e.valueStarto.valueStart?t.attrValue(e.substring(o.valueStart,r),n):o.inName&&o.nameStart"),n=f.exec(e.substring(1)),r=1;n&&t>=r+n.index;){for(r+=n.index+n[0].length;t")+1;n=f.exec(e.substring(r))}if(-1===t||!p.test(e[1]))return null;var a,i,s="",o="",c=e.substring(0,t+1),u="/"===c[c.length-2],l=c.search(d);return u?(o="/",i=c.substring(1,c.length-2).trim()):i=c.substring(1,c.length-1).trim(),-1===l?a=i:(l--,a=i.substring(0,l),s=i.substring(l)),{match:[c,a,s,o],html:e.substring(c.length)}},n.exports=r.HTMLParser=D}),define("can-util/js/set-immediate/set-immediate",["require","exports","module","can-globals/global/global"],function(a,e,t){!function(e,t,n,r){"use strict";e=a("can-globals/global/global")();r.exports=e.setImmediate||function(e){return setTimeout(e,0)}}(function(){return this}(),0,0,t)}),define("can-util/dom/child-nodes/child-nodes",function(e,t,n){"use strict";n.exports=function(e){var t=e.childNodes;if("length"in t)return t;for(var n=e.firstChild,r=[];n;)r.push(n),n=n.nextSibling;return r}}),define("can-util/dom/contains/contains",function(e,t,n){"use strict";n.exports=function(e){return this.contains(e)}}),define("can-util/dom/mutate/mutate",["require","exports","module","can-util/js/make-array/make-array","can-util/js/set-immediate/set-immediate","can-cid","can-globals/mutation-observer/mutation-observer","can-util/dom/child-nodes/child-nodes","can-util/dom/contains/contains","can-util/dom/dispatch/dispatch","can-globals/document/document","can-util/dom/data/data"],function(e,t,n){!function(e,t,n,r){"use strict";var i,p=t("can-util/js/make-array/make-array"),s=t("can-util/js/set-immediate/set-immediate"),d=t("can-cid"),o=t("can-globals/mutation-observer/mutation-observer"),a=t("can-util/dom/child-nodes/child-nodes"),c=t("can-util/dom/contains/contains"),f=t("can-util/dom/dispatch/dispatch"),u=t("can-globals/document/document"),h=t("can-util/dom/data/data"),l={inserted:function(e,t){return c.call(e,t)},removed:function(e,t){return!c.call(e,t)}},v=function(){var e=i;i=null;var t=e[0][1][0],n=u()||t.ownerDocument||t,r=n.contains?n:n.documentElement,a={inserted:{},removed:{}};e.forEach(function(e){!function(e,t,n,r,a){if(e.length)for(var i,s,o,c=0;void 0!==(o=e[c]);c++)if(s=d(o),o.getElementsByTagName&&n(t,o)&&!a[s]){a[s]=!0,i=p(o.getElementsByTagName("*")),f.call(o,r,[],!1),"removed"===r&&h.delete.call(o);for(var u,l=0;void 0!==(u=i[l]);l++)a[s=d(u)]||(f.call(u,r,[],!1),"removed"===r&&h.delete.call(u),a[s]=!0)}}(e[1],r,l[e[0]],e[0],a[e[0]])})},m=function(e,t){if(!o()&&e.length){var n=e[0],r=u()||n.ownerDocument||n,a=r.contains?r:r.documentElement;l.inserted(a,n)&&(i||(i=[],s(v)),i.push([t,e]))}};r.exports={appendChild:function(e){var t;o()?this.appendChild(e):(t=11===e.nodeType?p(a(e)):[e],this.appendChild(e),m(t,"inserted"))},insertBefore:function(e,t,n){var r;o()?this.insertBefore(e,t):(r=11===e.nodeType?p(a(e)):[e],this.insertBefore(e,t),m(r,"inserted"))},removeChild:function(e){o()||m([e],"removed"),this.removeChild(e)},replaceChild:function(e,t){var n;o()?this.replaceChild(e,t):(n=11===e.nodeType?p(a(e)):[e],m([t],"removed"),this.replaceChild(e,t),m(n,"inserted"))},inserted:function(e){m(e,"inserted")},removed:function(e){m(e,"removed")}}}(0,e,0,n)}),define("can-view-nodelist",["require","exports","module","can-util/js/make-array/make-array","can-util/js/each/each","can-namespace","can-util/dom/mutate/mutate","can-util/js/cid-map/cid-map"],function(e,t,n){var a=e("can-util/js/make-array/make-array"),r=e("can-util/js/each/each"),i=e("can-namespace"),s=e("can-util/dom/mutate/mutate"),o=e("can-util/js/cid-map/cid-map"),c=new o,u=[].splice,l=[].push,p=function(e){for(var t=0,n=0,r=e.length;n]*>/,l={}.toString;r.exports=function(e,t){if(e&&11===e.nodeType)return e;t?t.length&&(t=t[0]):t=s();for(var n=function(e,t,n){void 0===t&&(t=u.test(e)&&RegExp.$1),e&&"[object Function]"===l.call(e.replace)&&(e=e.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,"<$1>$2>"));var r=n.createElement("div"),a=n.createElement("div");"tbody"===t||"tfoot"===t||"thead"===t||"colgroup"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild):"col"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild):"tr"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild):"td"===t||"th"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild.firstChild):"option"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild):r.innerHTML=""+e;var i={},s=c(r);i.length=s.length;for(var o=0;o',r=o[t]=c.childNodes[0].attributes[0]),(a=r.cloneNode()).value=n,e.setAttributeNode(a))}}return function(e,t,n){e.setAttribute(t,n)}}(),trigger:function(e,t,n){if(p.get.call(e,"canHasAttributesBindings"))return t=t.toLowerCase(),a(function(){f.call(e,{type:"attributes",attributeName:t,target:e,oldValue:n,bubbles:!1},[])})},get:function(e,t){t=t.toLowerCase();var n=S.special[t],r=n&&n.get,a=x(n);return"function"==typeof r&&a.call(e)?r.call(e):e.getAttribute(t)},remove:function(e,t){var n;t=t.toLowerCase(),l()||(n=S.get(e,t));var r=S.special[t],a=r&&r.set,i=r&&r.remove,s=x(r);"function"==typeof i&&s.call(e)?i.call(e):"function"==typeof a&&s.call(e)?a.call(e,void 0):e.removeAttribute(t),l()||null==n||S.trigger(e,t,n)},has:(v=i()&&document.createElement("div"),v&&v.hasAttribute?function(e,t){return e.hasAttribute(t)}:function(e,t){return null!==e.getAttribute(t)})},O=d.addEventListener;d.addEventListener=function(e,t){var n=S.special[e];if(n&&n.addEventListener){var r=n.addEventListener.call(this,e,t,O),a=p.get.call(this,"attrTeardowns");return a||p.set.call(this,"attrTeardowns",a={}),a[e]||(a[e]=[]),void a[e].push({teardown:r,handler:t})}return O.apply(this,arguments)};var D=d.removeEventListener;d.removeEventListener=function(e,t){var n=S.special[e];if(!n||!n.addEventListener)return D.apply(this,arguments);var r=p.get.call(this,"attrTeardowns");if(r&&r[e]){for(var a=r[e],i=0,s=a.length;i)` to debug this template"),o.allowDebugger||r.warn("Forgotten {{debugger}} helper"))},evaluateArgs:s,resolveValue:i,__testing:o}}),define("can-stache/helpers/core",["require","exports","module","can-view-live","can-view-nodelist","can-compute","can-stache/src/utils","can-util/js/is-function/is-function","can-util/js/base-url/base-url","can-util/js/join-uris/join-uris","can-util/js/each/each","can-util/js/assign/assign","can-util/js/is-iterable/is-iterable","can-log/dev/dev","can-symbol","can-reflect","can-util/js/is-empty-object/is-empty-object","can-stache/expressions/hashes","can-stache/helpers/-debugger","can-observation","can-util/dom/data/data"],function(e,t,n){var h=e("can-view-live"),v=e("can-view-nodelist"),m=e("can-compute"),g=e("can-stache/src/utils"),o=e("can-util/js/is-function/is-function"),c=e("can-util/js/base-url/base-url"),u=e("can-util/js/join-uris/join-uris"),y=e("can-util/js/each/each"),r=e("can-util/js/assign/assign"),b=(e("can-util/js/is-iterable/is-iterable"),e("can-log/dev/dev")),w=(e("can-symbol"),e("can-reflect")),x=e("can-util/js/is-empty-object/is-empty-object"),k=e("can-stache/expressions/hashes"),a=e("can-stache/helpers/-debugger").helper,i=e("can-observation"),s=e("can-util/dom/data/data"),l=function(e){return e&&"function"==typeof e.fn&&"function"==typeof e.inverse},j=function(e){return e&&w.isValueLike(e)?w.getValue(e):e},_=i.ignore(j),p={each:{metadata:{isLiveBound:!0},fn:function(n){var a,i,r,e=[].slice.call(arguments),s=e.pop(),t=e.length,o=s.exprData.argExprs,c=s.exprData.hashExprs,u=_(n);if(2===t&&!(o[1].expr instanceof k)||3===t&&"as"===o[1].key){"string"!=typeof(a=e[t-1])&&(a=o[t-1].key);var l=s.scope.peek("scope.filename"),p=s.scope.peek("scope.lineNumber");b.warn((l?l+":":"")+(p?p+": ":"")+"the `as` keyword is deprecated. Use {{#"+s.nodeList.expression.split(" ")[0]+" "+s.nodeList.expression.split(" ")[1]+" "+a+"=value}} instead of {{#"+s.nodeList.expression+"}}.")}if(x(c)||(i={},y(c,function(e,t){i[e.key]=t})),(w.isObservableLike(u)&&w.isListLike(u)||g.isArrayLike(u)&&w.isValueLike(n))&&!s.stringOnly)return function(e){var t=[e];t.expression="live.list",v.register(t,null,s.nodeList,!0),v.update(s.nodeList,[e]);h.list(e,n,function(e,n,t){var r={"%index":n,"@index":n};return Object.defineProperty(r,"%index",{get:function(){var e=s.scope.peek("scope.filename"),t=s.scope.peek("scope.lineNumber");return b.warn((e?e+":":"")+(t?t+": ":"")+"%index is deprecated. Use scope.index instead."),n}}),Object.defineProperty(r,"@index",{get:function(){var e=s.scope.peek("scope.filename"),t=s.scope.peek("scope.lineNumber");return b.warn((e?e+":":"")+(t?t+": ":"")+"@index is deprecated. Use scope.index instead."),n}}),a&&(r[a]=e),x(i)||(i.value&&(r[i.value]=e),i.index&&(r[i.index]=n)),s.fn(s.scope.add(r,{notContext:!0}).add({index:n},{special:!0}).add(e),s.options,t)},s.context,e.parentNode,t,function(e,t){return s.inverse(s.scope.add(e),s.options,t)})};var d,f=j(n);return f&&g.isArrayLike(f)?(d=g.getItemsFragContent(f,s,s.scope,a),s.stringOnly?d.join(""):d):w.isObservableLike(f)&&w.isMapLike(f)||f instanceof Object?(d=[],w.each(f,function(e,n){var t=m(f,n);r={"%key":n,"@key":n},Object.defineProperty(r,"%key",{get:function(){var e=s.scope.peek("scope.filename"),t=s.scope.peek("scope.lineNumber");return b.warn((e?e+":":"")+(t?t+": ":"")+"%key is deprecated. Use scope.key instead."),n}}),Object.defineProperty(r,"@key",{get:function(){var e=s.scope.peek("scope.filename"),t=s.scope.peek("scope.lineNumber");return b.warn((e?e+":":"")+(t?t+": ":"")+"@key is deprecated. Use scope.key instead."),n}}),a&&(r[a]=t),x(i)||(i.value&&(r[i.value]=t),i.key&&(r[i.key]=n)),d.push(s.fn(s.scope.add(r,{notContext:!0}).add({key:n},{special:!0}).add(t)))}),s.stringOnly?d.join(""):d):void 0}},"@index":{fn:function(e,t){t||(t=e,e=0);var n=t.scope.peek("@index");return""+((o(n)?n():n)+e)}},if:{fn:function(e,t){return(e&&e.isComputed?m.truthy(e)():!!j(e))?t.fn(t.scope||this):t.inverse(t.scope||this)}},is:{fn:function(){var t,n,e=arguments[arguments.length-1];if(arguments.length-2<=0)return e.inverse();var r=arguments;return m(function(){for(var e=0;ethis.treeStructure.length)throw new Error("can-key-tree: Can not add path deeper than tree.");for(var t=this.root,n=0===u.size(this.root),r=0;r";var o=r(i.scope,i.options,s),c=L(b(o));m.replace(s,o),m.update(s,c),f.tags[u]=e}}}e("can-util/dom/events/inserted/inserted"),e("can-util/dom/events/removed/removed"),e("can-view-model");var f=i.extend({setup:function(){if(i.setup.apply(this,arguments),f){var n=this;d(this.prototype.events)||(this.Control=r.extend(this.prototype.events)),this.prototype.viewModel&&k.isConstructorLike(this.prototype.viewModel)&&p.warn("can-component: Assigning a DefineMap or constructor type to the viewModel property may not be what you intended. Did you mean ViewModel instead? More info: https://canjs.com/doc/can-component.prototype.ViewModel.html");var e=this.prototype.viewModel||this.prototype.scope;if(e&&this.prototype.ViewModel)throw new Error("Cannot provide both a ViewModel and a viewModel property");var t=c.capitalize(c.camelize(this.prototype.tag))+"VM";this.prototype.ViewModel?"function"==typeof this.prototype.ViewModel?this.ViewModel=this.prototype.ViewModel:this.ViewModel=x.DefaultMap.extend(t,this.prototype.ViewModel):e?"function"==typeof e?k.isObservableLike(e.prototype)&&k.isMapLike(e.prototype)?this.ViewModel=e:this.viewModelHandler=e:k.isObservableLike(e)&&k.isMapLike(e)?(l.warn("can-component: "+this.prototype.tag+" is sharing a single map across all component instances"),this.viewModelInstance=e):this.ViewModel=x.DefaultMap.extend(t,e):this.ViewModel=x.DefaultMap.extend(t,{}),this.prototype.template&&(l.warn("can-component.prototype.template: is deprecated and will be removed in a future release. Use can-component.prototype.view"),this.renderer=this.prototype.template),this.prototype.view&&(this.renderer=this.prototype.view),s.tag(this.prototype.tag,function(e,t){new n(e,t)})}}},{setup:function(i,s){var o,e,t,c=this,n=[];if(!g.get.call(i,"preventDataBindings")){var r=s.setupBindings||function(e,t,n){return h.behaviors.viewModel(e,s,t,n)};t=r(i,function(e){var t=c.constructor.ViewModel,n=c.constructor.viewModelHandler,r=c.constructor.viewModelInstance;if(n){var a=n.call(c,e,s.scope,i);k.isObservableLike(a)&&k.isMapLike(a)?r=a:t=k.isObservableLike(a.prototype)&&k.isMapLike(a.prototype)?a:x.DefaultMap.extend(a)}return t&&(r=new c.constructor.ViewModel(e)),o=r},{})}this.viewModel=o,g.set.call(i,"viewModel",o),g.set.call(i,"preventDataBindings",!0);var a={helpers:{},tags:{}};j(this.helpers||{},function(e,t){_(e)&&(a.helpers[t]=e.bind(o))}),this.constructor.Control&&(this._control=new this.constructor.Control(i,{scope:this.viewModel,viewModel:this.viewModel,destroy:function(){for(var e=0,t=n.length;e",n.push(function(){m.unregister(f)}),e=u(l.scope,l.options,f),y.appendChild.call(i,e),m.update(f,b(i))}});n.exports=a.Component=f}),define("can-connect/connect",["require","exports","module","can-util/js/assign/assign"],function(e,t,n){var s=e("can-util/js/assign/assign"),r=function(e,t){(e=e.map(function(e,t){var n=-1;return"string"==typeof e?(n=r.order.indexOf(e),e=o[e]):e.isBehavior?n=r.order.indexOf(e.behaviorName):e=r.behavior(e),{originalIndex:t,sortedIndex:n,behavior:e}})).sort(function(e,t){return~e.sortedIndex&&~t.sortedIndex?e.sortedIndex-t.sortedIndex:e.originalIndex-t.originalIndex}),e=e.map(function(e){return e.behavior});var n=r.base(r.behavior("options",function(){return t})());return e.forEach(function(e){n=e(n)}),n.init&&n.init(),n};r.order=["data/localstorage-cache","data/url","data/parse","cache-requests","data/combine-requests","constructor","constructor/store","can/map","can/ref","fall-through-cache","data/worker","real-time","data/callbacks-cache","data/callbacks","constructor/callbacks-once"],r.behavior=function(a,i){"string"!=typeof a&&(i=a,a=void 0);var e=function(e){var t=function(){};t.name=a,t.prototype=e;var n=new t,r="function"==typeof i?i.apply(n,arguments):i;return s(n,r),n.__behaviorName=a,n};return a&&(o[e.behaviorName=a]=e),e.isBehavior=!0,e};var o={};n.exports=r}),define("can-connect/base/base",["require","exports","module","can-connect/connect"],function(e,t,n){var r=e("can-connect/connect");n.exports=r.behavior("base",function(e){return{id:function(e){var t=[],n=this.algebra;if(n&&n.clauses&&n.clauses.id)for(var r in n.clauses.id)t.push(e[r]);return this.idProp&&!t.length&&t.push(e[this.idProp]),t.length||t.push(e.id),1>>1;-1===e(n,t[i])?a=i:r=i+1}return a}},defaultSort:function(e,t,n){var r,a=e.split(" "),i=a[0],s=t[i],o=n[i],c=a[1]||"";return(c="desc"===c.toLowerCase())&&(r=s,s=o,o=r),s=t[0]&&e<=t[1]},f=function(e,t,n,r){return{sAv1:+e[n],sAv2:+e[r],sBv1:+t[n],sBv2:+t[r]}},l=function(e,t,n,r){var a=f(e,t,n,r),i=a.sAv1,s=a.sAv2,o=a.sBv1,c=a.sBv2,u=s-i+1,l={difference:[c+1,s],intersection:[i,c],union:[o,s],count:u,meta:"after"},p={difference:[i,o-1],intersection:[o,s],union:[i,c],count:u,meta:"before"};return i===o&&s===c?{intersection:[i,s],union:[i,s],count:u,meta:"equal"}:i===o&&cthis._length-1){var n=new Array(e+1-this._length);return n[n.length-1]=t,this.push.apply(this,n),n}this.splice(e,1,t)}else{p.defineExpando(this,e,t)||(this[e]=t)}else c.warn("can-define/list/list.prototype.set is deprecated; please use can-define/list/list.prototype.assign or can-define/list/list.prototype.update instead"),y.isListLike(e)?t?this.replace(e):y.assignList(this,e):y.assignMap(this,e);return this},assign:function(e){return y.isListLike(e)?y.assignList(this,e):y.assignMap(this,e),this},update:function(e){return y.isListLike(e)?y.updateList(this,e):y.updateMap(this,e),this},assignDeep:function(e){return y.isListLike(e)?y.assignDeepList(this,e):y.assignDeepMap(this,e),this},updateDeep:function(e){return y.isListLike(e)?y.updateDeepList(this,e):y.updateDeepMap(this,e),this},_items:function(){var t=[];return this._each(function(e){t.push(e)}),t},_each:function(e){for(var t=0,n=this._length;tthis._length-1){var t=new Array(e-this._length);this.push.apply(this,t)}else this.splice(e)},enumerable:!0}),Object.defineProperty(C.prototype,"each",{enumerable:!1,writable:!0,value:C.prototype.forEach}),C.prototype.attr=function(e,t){return o.warn("DefineMap::attr shouldn't be called"),0===arguments.length?this.get():e&&"object"==typeof e?this.set.apply(this,arguments):1===arguments.length?this.get(e):this.set(e,t)},C.prototype.item=function(e,t){return 1===arguments.length?this.get(e):this.set(e,t)},C.prototype.items=function(){return o.warn("DefineList::get should should be used instead of DefineList::items"),this.get()},y.assignSymbols(C.prototype,{"can.isMoreListLikeThanMapLike":!0,"can.isMapLike":!0,"can.isListLike":!0,"can.isValueLike":!1,"can.getKeyValue":C.prototype.get,"can.setKeyValue":C.prototype.set,"can.onKeyValue":function(e,r){var t;isNaN(e)?(t=function(e,t,n){r(t,n)},this.addEventListener(e,t)):(t=function(){r(this[e])},k.set(r,this,t,e),this.addEventListener("length",t))},"can.offKeyValue":function(e,r){var t;isNaN(e)?(t=function(e,t,n){r(t,n)},this.removeEventListener(e,t)):(t=k.getAndDelete(r,this,e),this.removeEventListener("length",t))},"can.deleteKeyValue":function(e){if("number"==typeof(e=isNaN(+e)||e%1?e:+e))this.splice(e,1);else{if("length"===e||"_length"===e)return;this.set(e,void 0)}return this},"can.assignDeep":function(e){l.start(),y.assignList(this,e),l.stop()},"can.updateDeep":function(e){l.start(),this.replace(e),l.stop()},"can.keyHasDependencies":function(e){return!!(this._computed&&this._computed[e]&&this._computed[e].compute)},"can.getKeyDependencies":function(e){var t;return this._computed&&this._computed[e]&&this._computed[e].compute&&((t={}).valueDependencies=new w,t.valueDependencies.add(this._computed[e].compute)),t},"can.onKeysAdded":function(e){this[b.for("can.onKeyValue")]("add",e)},"can.onKeysRemoved":function(e){this[b.for("can.onKeyValue")]("remove",e)},"can.splice":function(e,t,n){this.splice.apply(this,[e,t].concat(n))}}),y.setKeyValue(C.prototype,b.iterator,function(){var e=-1;return"number"!=typeof this._length&&(this._length=0),{next:function(){return{value:this[++e],done:e>=this._length}}.bind(this)}}),m.DefineList=C,m.DefaultList=C,n.exports=g.DefineList=C}),define("can-deparam",["require","exports","module","can-namespace"],function(e,t,n){var r=e("can-namespace"),u=/^\d+$/,l=/([^\[\]]+)|(\[\])/g,a=/([^?#]*)(#.*)?$/,i=/%([^0-9a-f][0-9a-f]|[0-9a-f][^0-9a-f]|[^0-9a-f][^0-9a-f])/i,p=function(t){t=t.replace(/\+/g," ");try{return decodeURIComponent(t)}catch(e){return decodeURIComponent(t.replace(i,function(e,t){return"%25"+t}))}};n.exports=r.deparam=function(e){var o,c={};return e&&a.test(e)&&e.split("&").forEach(function(e){var t=e.split("="),n=p(t.shift()),r=p(t.join("=")),a=c;if(n){for(var i=0,s=(t=n.match(l)).length-1;ir.length&&(r=e)}),-1"+e+"";var a,i},current:function(e,t){if(u.add(I,"__url"),t){var n=q.deparam(q._call("matchingPartOfURL"));return z(e,n)}return this._call("matchingPartOfURL")===q.param(e)},bindings:{hashchange:{paramsMatcher:/^(?:&[^=]+=[^&]*)+/,querySeparator:"&",matchSlashes:!1,bind:function(){c.on.call(window,"hashchange",B)},unbind:function(){c.on.call(window,"hashchange",B)},matchingPartOfURL:function(){return(q.location||M).href.split(/#!?/)[1]||""},setURL:function(e){return M.hash!=="#"+e&&(M.hash="!"+e),e},root:"#!"}},defaultBinding:"hashchange",currentBinding:null,_setup:function(){q.currentBinding||(q._call("bind"),q.serializedCompute.addEventListener("change",H),q.currentBinding=q.defaultBinding)},_teardown:function(){q.currentBinding&&(q._call("unbind"),q.serializedCompute.removeEventListener("change",H),q.currentBinding=null),clearTimeout(a),s=0},_call:function(){var e=k(arguments),t=e.shift(),n=q.bindings[q.currentBinding||q.defaultBinding],r=n[t];return r.apply?r.apply(n,e):r},matched:l()});var U,W=function(e,t){if(q.data[e])return q.data[e].apply(q.data,t)};v(["addEventListener","removeEventListener","bind","unbind","on","off"],function(t){q[t]=function(e){return"__url"===e?c[t].apply(I,arguments):W(t,arguments)}}),v(["delegate","undelegate","removeAttr","compute","_get","___get","each"],function(e){q[e]=function(){return W(e,arguments)}});var $,G=function(e){return U=e};Object.defineProperty(q,"serializedCompute",{get:function(){return $||($=l(function(){return q.data.serialize()})),$}}),Object.defineProperty(q,"data",{get:function(){if(U)return U;if(_.DefaultMap){if(_.DefaultMap.prototype.toObject){var e=_.DefaultMap.extend({seal:!1},{"*":"stringOrObservable"});return G(new e)}return G(K(new _.DefaultMap))}throw new Error("can.route.data accessed without being set")},set:function(e){S.isConstructorLike(e)&&(e=new e),G("attr"in e?K(e):e)}}),q.attr=function(){return P.apply(q.data,arguments)},q.batch=o,S.setKeyValue(q,O.for("can.isFunctionLike"),!1),n.exports=p.route=q}),define("can-view-target",["require","exports","module","can-util/dom/child-nodes/child-nodes","can-util/dom/attr/attr","can-util/js/each/each","can-util/js/make-array/make-array","can-globals/document/document","can-util/dom/mutate/mutate","can-namespace","can-globals/mutation-observer/mutation-observer"],function(e,t,n){!function(e,t,n,r){var a=t("can-util/dom/child-nodes/child-nodes"),h=t("can-util/dom/attr/attr"),i=t("can-util/js/each/each"),s=t("can-util/js/make-array/make-array"),o=t("can-globals/document/document"),v=t("can-util/dom/mutate/mutate"),c=t("can-namespace"),u=t("can-globals/mutation-observer/mutation-observer"),m=function(e,t,n,r){for(var a=r.createDocumentFragment(),i=0,s=e.length;i";var t,n,r=e.cloneNode(!0),a=""===r.innerHTML;return a?((e=document.createDocumentFragment()).appendChild(document.createTextNode("foo-bar")),(t=u())?((n=new t(function(){})).observe(document.documentElement,{childList:!0,subtree:!0}),r=e.cloneNode(!0),n.disconnect()):r=e.cloneNode(!0),1===r.childNodes.length):a}(),y="undefined"!=typeof document&&!!document.createElementNS,p=l?function(e){return e.cloneNode(!0)}:function(e){var t,n=e.ownerDocument;if(1===e.nodeType?t="http://www.w3.org/1999/xhtml"!==e.namespaceURI&&y&&n.createElementNS?n.createElementNS(e.namespaceURI,e.nodeName):n.createElement(e.nodeName):3===e.nodeType?t=n.createTextNode(e.nodeValue):8===e.nodeType?t=n.createComment(e.nodeValue):11===e.nodeType&&(t=n.createDocumentFragment()),e.attributes){var r=s(e.attributes);i(r,function(e){e&&e.specified&&h.setAttribute(t,e.nodeName||e.name,e.nodeValue||e.value)})}if(e&&e.firstChild)for(var a=e.firstChild;a;)t.appendChild(p(a)),a=a.nextSibling;return t};function d(t,e,n,r){var a,i,s,o,c,u=n,l=typeof t,p=function(){return a||(a={path:n,callbacks:[]},e.push(a),u=[]),a};if("object"===l){if(t.tag){if(i=y&&t.namespace?r.createElementNS(t.namespace,t.tag):r.createElement(t.tag),t.attrs)for(var d in t.attrs){var f=t.attrs[d];"function"==typeof f?p().callbacks.push({callback:f}):h.setAttribute(i,d,f)}if(t.attributes)for(o=0,c=t.attributes.length;o"+p,h.register(u,null,e||!0,n.directlyNested);var t=r(function(){var e=p;if(l&&1===l.argExprs.length){var t=x.getValue(l.argExprs[0].value(o,c));void 0===t?d.warn("The context ("+l.argExprs[0].key+") you passed into thepartial ("+p+") is not defined in the scope!"):o=o.add(t)}for(var n,r=c.peek("partials."+e),a=c;!r&&a;)r=a.inlinePartials&&a.inlinePartials[e],a=a._parent;if(r)n=function(){return r.render?r.render(o,c,u):r(o,c)};else{var i=o.read(e,{isArgument:!0}).value;if(null===i||!i&&"*"===e[0])return y("");i&&(e=i),n=function(){return"function"==typeof e?e(o,c,u):j.getTemplateById(e)(o,c,u)}}var s=v.ignore(n)();return y(s)});t.computeInstance.setPrimaryDepth(u.nesting),f.html(this,t,this.parentNode,u)}},makeStringBranchRenderer:function(s,e,o){var c=j.expression.parse(e),u=s+e;c instanceof g.Helper||c instanceof g.Call||(c=new g.Helper(c,[],{}));var t=function(e,t,n,r){e.set("scope.lineNumber",o.lineNo);var a,i=e.__cache[u];return!s&&i||(i=_(e,t,null,s,c,n,r,!0),s||(e.__cache[u]=i)),null==(a=i[w.for("can.onValue")]?x.getValue(i):i())?"":""+a};return t.exprData=c,t},makeLiveBindingBranchRenderer:function(u,l,p){var d=j.expression.parse(l);d instanceof g.Helper||d instanceof g.Call||d instanceof g.Bracket||d instanceof g.Lookup||(d=new g.Helper(d,[],{}));var e=function(e,t,n,r,a){e.set("scope.lineNumber",p.lineNo);var i=[this];i.expression=l,h.register(i,null,n||!0,p.directlyNested);var s,o=_(e,t,i,u,d,r,a,p.tag);(s=o[w.for("can.onValue")]?o:new v(o,null,{isObservable:!1}))instanceof v?s.compute._primaryDepth=i.nesting:s.computeInstance?s.computeInstance.setPrimaryDepth(i.nesting):s.observation&&(s.observation.compute._primaryDepth=i.nesting),x.onValue(s,k);var c=x.getValue(s);"function"==typeof c?v.ignore(c)(this):x.valueHasDependencies(s)?p.attr?f.attr(this,p.attr,s):p.tag?f.attrs(this,s):p.text&&"object"!=typeof c?f.text(this,s,this.parentNode,i):f.html(this,s,this.parentNode,i):p.attr?b.set(this,p.attr,c):p.tag?f.attrs(this,c):p.text&&"string"==typeof c?this.nodeValue=c:null!=c&&h.replace([this],y(c,this.ownerDocument)),x.offValue(s,k)};return e.exprData=d,e},splitModeFromExpression:function(e,t){var n=(e=e.trim()).charAt(0);return 0<="#/{&^>!<".indexOf(n)?e=e.substr(1).trim():n=null,"{"===n&&t.node&&(n=null),{mode:n,expression:e}},cleanLineEndings:function(e){return e.replace(a,function(e,t,n,r,a,i,s,o,c,u){i=i||"",t=t||"",n=n||"";var l=p(a||c,{});return o||0<=">{".indexOf(l.mode)?e:0<="^#!/".indexOf(l.mode)?(n=t+n&&" ")+r+(0!==u&&s.length?t+"\n":""):n+r+i+(n.length||0!==u?t+"\n":"")})},cleanWhitespaceControl:function(e){return e.replace(i,function(e,t,n,r,a,i,s,o,c){return"-"===r&&(t=""),"-"===i&&(o=""),t+n+a+s+o})},Options:m.Options,getTemplateById:function(){}},_=j.makeEvaluator,p=j.splitModeFromExpression;n.exports=j}),define("can-stache/src/html_section",["require","exports","module","can-view-target","can-view-scope","can-observation","can-stache/src/utils","can-stache/src/mustache_core","can-globals/document/document","can-util/js/assign/assign","can-util/js/last/last"],function(e,t,n){!function(e,t,n,r){var a,i=t("can-view-target"),s=t("can-view-scope"),o=t("can-observation"),c=t("can-stache/src/utils"),u=t("can-stache/src/mustache_core"),l=t("can-globals/document/document"),p=t("can-util/js/assign/assign"),d=t("can-util/js/last/last"),f="undefined"!=typeof document&&(a=l().createElement("div"),function(e){return-1===e.indexOf("&")?e.replace(/\r\n/g,"\n"):(a.innerHTML=e,0===a.childNodes.length?"":a.childNodes.item(0).nodeValue)}),h=function(e){e&&(this.filename=e),this.stack=[new v]};h.scopify=function(r){return o.ignore(function(e,t,n){return e instanceof s||(e=s.refsScope().add(e||{})),t instanceof u.Options||(t=new u.Options(t||{})),r(e,t,n)})},p(h.prototype,c.mixins),p(h.prototype,{startSubSection:function(e){var t=new v(e);return this.stack.push(t),t},endSubSectionAndReturnRenderer:function(){if(this.last().isEmpty())return this.stack.pop(),null;var e=this.endSection();return e.compiled.hydrate.bind(e.compiled)},startSection:function(e){var t=new v(e);this.last().add(t.targetCallback),this.stack.push(t)},endSection:function(){return this.last().compile(),this.stack.pop()},inverse:function(){this.last().inverse()},compile:function(){var r=this.stack.pop().compile();return o.ignore(function(e,t,n){return e instanceof s||(e=s.refsScope().add(e||{})),t instanceof u.Options||(t=new u.Options(t||{})),r.hydrate(e,t,n)})},push:function(e){this.last().push(e)},pop:function(){return this.last().pop()},removeCurrentNode:function(){this.last().removeCurrentNode()}});var v=function(r){this.data="targetData",this.targetData=[],this.targetStack=[];var a=this;this.targetCallback=function(e,t,n){r.call(this,e,t,n,a.compiled.hydrate.bind(a.compiled),a.inverseCompiled&&a.inverseCompiled.hydrate.bind(a.inverseCompiled))}};p(v.prototype,{inverse:function(){this.inverseData=[],this.data="inverseData"},push:function(e){this.add(e),this.targetStack.push(e)},pop:function(){return this.targetStack.pop()},add:function(e){"string"==typeof e&&(e=f(e)),this.targetStack.length?d(this.targetStack).children.push(e):this[this.data].push(e)},compile:function(){return this.compiled=i(this.targetData,l()),this.inverseData&&(this.inverseCompiled=i(this.inverseData,l()),delete this.inverseData),this.targetStack=this.targetData=null,this.compiled},removeCurrentNode:function(){return this.children().pop()},children:function(){return this.targetStack.length?d(this.targetStack).children:this[this.data]},isEmpty:function(){return!this.targetData.length}}),h.HTMLSection=v,r.exports=h}(0,e,0,n)}),define("can-stache/src/text_section",["require","exports","module","can-compute","can-view-live","can-stache/src/utils","can-util/dom/attr/attr","can-util/js/assign/assign","can-reflect","can-observation"],function(e,t,n){e("can-compute");var s=e("can-view-live"),r=e("can-stache/src/utils"),o=e("can-util/dom/attr/attr"),a=e("can-util/js/assign/assign"),c=e("can-reflect"),u=e("can-observation"),l=function(){},i=function(){this.stack=[new d]};a(i.prototype,r.mixins),a(i.prototype,{startSection:function(e){var t=new d;this.last().add({process:e,truthy:t}),this.stack.push(t)},endSection:function(){this.stack.pop()},inverse:function(){this.stack.pop();var e=new d;this.last().last().falsey=e,this.stack.push(e)},compile:function(a){var i=this.stack[0].compile();return function(e,t){var n=new u(function(){return i(e,t)},null,{isObservable:!1});c.onValue(n,l);var r=c.getValue(n);c.valueHasDependencies(n)?(a.textContentOnly?s.text(this,n):a.attr?s.attr(this,a.attr,n):s.attrs(this,n,e,t),c.offValue(n,l)):a.textContentOnly?this.nodeValue=r:a.attr?o.set(this,a.attr,r):s.attrs(this,r)}}});var p=function(n,r,a){return function(e,t){return n.call(this,e,t,r,a)}},d=function(){this.values=[]};a(d.prototype,{add:function(e){this.values.push(e)},last:function(){return this.values[this.values.length-1]},compile:function(){for(var i=this.values,s=i.length,e=0;e"===t)e.add(m.makeLiveBindingPartialRenderer(n,p({lineNo:r})));else if("/"===t){if("<"===e.last().startedWith?(u[n]=e.endSubSectionAndReturnRenderer(),e.removeCurrentNode()):e.endSection(),e instanceof h){var a=l.sectionElementStack[l.sectionElementStack.length-1];a.tag&&"section"===a.type&&""!==n&&n!==a.tag&&(c?b.warn(c+":"+r+": unexpected closing tag {{/"+n+"}} expected {{/"+a.tag+"}}"):b.warn(r+": unexpected closing tag {{/"+n+"}} expected {{/"+a.tag+"}}")),l.sectionElementStack.pop()}}else if("else"===t)e.inverse();else{var i=e instanceof h?m.makeLiveBindingBranchRenderer:m.makeStringBranchRenderer;if("{"===t||"&"===t)e.add(i(null,n,p({lineNo:r})));else if("#"===t||"^"===t||"<"===t){var s=i(t,n,p({lineNo:r}));if(e.startSection(s),e.last().startedWith=t,e instanceof h){var o="function"==typeof s.exprData.closingTag?s.exprData.closingTag():"";l.sectionElementStack.push({type:"section",tag:o})}}else e.add(i(null,n,p({text:!0,lineNo:r})))}},p=function(e){var t=l.sectionElementStack[l.sectionElementStack.length-1],n={tag:l.node&&l.node.tag,attr:l.attr&&l.attr.name,directlyNested:!l.sectionElementStack.length||("section"===t.type||"custom"===t.type),textContentOnly:!!l.textContentOnly};return e?w(n,e):n},d=function(e,t){e.attributes||(e.attributes=[]),e.attributes.unshift(t)};s(e,{filename:c,start:function(e,t,n){var r=_[e];r&&!t&&l.namespaceStack.push(r),l.node={tag:e,children:[],namespace:r||x(l.namespaceStack)}},end:function(r,e,a){var t=f.tag(r);e?(o.add(l.node),t&&d(l.node,function(e,t,n){e.set("scope.lineNumber",a),f.tagHandler(this,r,{scope:e,options:t,subtemplate:null,templateType:"stache",parentNodeList:n})})):(o.push(l.node),l.sectionElementStack.push({type:t?"custom":null,tag:t?null:r,templates:{}}),t?o.startSubSection():L[r]&&(l.textContentOnly=new v)),l.node=null},close:function(r,a){_[r]&&l.namespaceStack.pop();var i,e=f.tag(r);e&&(i=o.endSubSectionAndReturnRenderer()),L[r]&&(o.last().add(l.textContentOnly.compile(p())),l.textContentOnly=null);var t=o.pop();if(e)if("can-template"===r){var n=l.sectionElementStack[l.sectionElementStack.length-2];i&&(n.templates[t.attrs.name]=g(i)),o.removeCurrentNode()}else{var s=l.sectionElementStack[l.sectionElementStack.length-1];d(t,function(e,t,n){e.set("scope.lineNumber",a),f.tagHandler(this,r,{scope:e,options:t,subtemplate:i?g(i):i,templateType:"stache",parentNodeList:n,templates:s.templates})})}l.sectionElementStack.pop()},attrStart:function(e,t){l.node.section?l.node.section.add(e+'="'):l.attr={name:e,value:""}},attrEnd:function(r,a){if(l.node.section)l.node.section.add('" ');else{l.node.attrs||(l.node.attrs={}),l.node.attrs[l.attr.name]=l.attr.section?l.attr.section.compile(p()):l.attr.value;var i=f.attr(r),e=y.decode(r);(!!k.test(e)||!!j.test(e))&&!i&&b.warn("unknown attribute binding "+e+". Is can-stache-bindings imported?"),i&&(l.node.attributes||(l.node.attributes=[]),l.node.attributes.push(function(e,t,n){e.set("scope.lineNumber",a),i(this,{attributeName:r,scope:e,options:t,nodeList:n})})),l.attr=null}},attrValue:function(e,t){var n=l.node.section||l.attr.section;n?n.add(e):l.attr.value+=e},chars:function(e,t){(l.textContentOnly||o).add(e)},special:function(e,t){var n=m.splitModeFromExpression(e,l),r=n.mode,a=n.expression;if("else"!==a){if("!"!==r)if(l.node&&l.node.section)i(l.node.section,r,a,t),0===l.node.section.subSectionDepth()&&(l.node.attributes.push(l.node.section.compile(p())),delete l.node.section);else if(l.attr)l.attr.section||(l.attr.section=new v,l.attr.value&&l.attr.section.add(l.attr.value)),i(l.attr.section,r,a,t);else if(l.node)if(l.node.attributes||(l.node.attributes=[]),r){if("#"!==r&&"^"!==r)throw new Error(r+" is currently not supported within a tag.");l.node.section||(l.node.section=new v),i(l.node.section,r,a,t)}else l.node.attributes.push(m.makeLiveBindingBranchRenderer(null,a,p({lineNo:t})));else i(l.textContentOnly||o,r,a,t)}else(l.attr&&l.attr.section?l.attr.section:l.node&&l.node.section?l.node.section:l.textContentOnly||o).inverse()},comment:function(e){o.add({comment:e})},done:function(e){}});var r=o.compile(),a=h.scopify(function(e,t,n){return Object.keys(u).length&&(t.inlinePartials=t.inlinePartials||{},w(t.inlinePartials,u)),e.set("scope.view",a),e.set("scope.root",e._context),e.set("scope.filename",o.filename),r.apply(this,arguments)});return a}w(p,a),p.safeString=function(e){return{toString:function(){return e}}},p.async=function(e){var t=i(e),n=t.imports.map(function(e){return u(e)});return Promise.all(n).then(function(){return p(t.intermediate)})};var d={};p.from=m.getTemplateById=function(e){if(!d[e]){var t=c().getElementById(e);d[e]=p("#"+e,t.innerHTML)}return d[e]},p.registerPartial=function(e,t){d[e]="string"==typeof t?p(t):t},r.exports=o.stache=p}(0,e,0,n)}),define("can-stache/helpers/route",["require","exports","module","can-stache/helpers/core","can-route","can-util/js/last/last","can-stache/src/expression","can-util/js/each/each"],function(e,t,n){var a=e("can-stache/helpers/core"),r=e("can-route"),i=(e("can-util/js/last/last"),e("can-stache/src/expression")),s=e("can-util/js/each/each"),o=a.looksLikeOptions,c=function(){var t,n,r;return s(arguments,function(e){"boolean"==typeof e?n=e:e&&"object"==typeof e&&(o(e)?r=e:t=a.resolveHash(e))}),!t&&r&&(t=a.resolveHash(r.hash)),{finalParams:t||{},finalMerge:n,optionsArg:r}};a.registerHelper("routeUrl",function(){var e=c.apply(this,arguments);return r.url(e.finalParams,"boolean"==typeof e.finalMerge?e.finalMerge:void 0)});a.registerHelper("routeCurrent",function(){var e=c.apply(this,arguments),t=r.current(e.finalParams,"boolean"==typeof e.finalMerge?e.finalMerge:void 0);return!e.optionsArg||e.optionsArg instanceof i.Call?t:t?e.optionsArg.fn():e.optionsArg.inverse()},{isHelper:!1})}),define("can-globals/location/location",["require","exports","module","can-globals/global/global","can-globals/can-globals-instance"],function(e,t,n){!function(e,t,n,r){"use strict";t("can-globals/global/global");var a=t("can-globals/can-globals-instance");a.define("location",function(){return a.getKeyValue("global").location}),r.exports=a.makeExport("location")}(0,e,0,n)}),define("can-globals",["require","exports","module","can-globals/can-globals-instance","can-globals/global/global","can-globals/document/document","can-globals/location/location","can-globals/mutation-observer/mutation-observer","can-globals/is-browser-window/is-browser-window"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-globals/can-globals-instance");t("can-globals/global/global"),t("can-globals/document/document"),t("can-globals/location/location"),t("can-globals/mutation-observer/mutation-observer"),t("can-globals/is-browser-window/is-browser-window"),r.exports=a}(0,e,0,n)}),define("can",["require","exports","module","can-util/namespace","can-component","can-compute","can-connect/all","can-define/map/map","can-define/list/list","can-route","can-set","can-simple-observable","can-stache","can-stache/helpers/route","can-stache-bindings","can-attribute-encoder","can-ajax","can-globals","can-reflect","can-define-lazy-value","can-assign","can-dom-events","can-event-dom-enter","can-event-dom-radiochange","can-parse-uri","can-validate-interface"],function(e,t,n){var r,a,i;a=n,i=(r=e)("can-util/namespace"),r("can-component"),r("can-compute"),r("can-connect/all"),r("can-define/map/map"),r("can-define/list/list"),r("can-route"),r("can-set"),r("can-simple-observable"),r("can-stache"),r("can-stache/helpers/route"),r("can-stache-bindings"),r("can-attribute-encoder"),r("can-ajax"),r("can-globals"),r("can-reflect"),r("can-define-lazy-value"),r("can-assign"),r("can-dom-events"),r("can-event-dom-enter"),r("can-event-dom-radiochange"),r("can-parse-uri"),r("can-validate-interface"),a.exports=i}),define("can-construct-super",["require","exports","module","can-util/js/is-function/is-function","can-util/js/each/each","can-construct"],function(e,t,n){!function(e,t,n,r){var a=t("can-util/js/is-function/is-function"),i=t("can-util/js/each/each"),s=t("can-construct"),c=Object.prototype.hasOwnProperty,o=a,u=/xyz/.test(function(){return this.xyz})?/\b_super\b/:/.*/,l=["get","set"],p=function(i,s,o){return function(){var e,t=!1,n=d(this),r=n._super;c.call(this,"_super")&&(t=!0,e=this._super,delete this._super),n._super=i[s];var a=o.apply(this,arguments);return n._super=r,t&&(this._super=e),a}};s._defineProperty=function(e,t,n,r){var a=Object.getOwnPropertyDescriptor(t,n);a&&i(l,function(e){o(a[e])&&o(r[e])?r[e]=p(a,e,r[e]):o(r[e])||(r[e]=a[e])}),Object.defineProperty(e,n,r)};var d=Object.getPrototypeOf||function(e){return e.__proto__},f=Object.getPropertyDescriptor||function(e,t){if(t in e){for(var n=Object.getOwnPropertyDescriptor(e,t),r=d(e);void 0===n&&null!==r;)n=Object.getOwnPropertyDescriptor(r,t),r=d(r);return n}};s._overwrite=function(e,t,n,r){var a=f(t,n),i=a&&a.value;Object.defineProperty(e,n,{value:o(r)&&o(i)&&u.test(r)?p(t,n,r):r,configurable:!0,enumerable:!0,writable:!0})},r.exports=s}(0,e,0,n)}),define("can-connect-feathers/service/service",["require","exports","module","can-connect"],function(e,t,n){var r=e("can-connect");function a(e){var t,n=e.algebra&&e.algebra.clauses&&e.algebra.clauses.id;if(n&&(t=Object.keys(n)[0]),!t&&!e.idProp)throw new Error("An idProp was not set in the Model for "+e+". Things may not work as expected.");return t||e.idProp}n.exports=r.behavior("data/feathers-service",function(){if(!this.feathersService)throw new Error("You must provide a feathersService to the feathers-service behavior: https://canjs.com/doc/can-connect-feathers.html");var r=this.feathersService;return{init:function(){var t=this;r.on("created",function(e){t.createInstance(e)}),r.on("updated",function(e){t.updateInstance(e)}),r.on("patched",function(e){t.updateInstance(e)}),r.on("removed",function(e){t.destroyInstance(e)})},getListData:function(e){return r.find({query:e})},getData:function(e){var t=null,n=a(this);return"string"==typeof e||"number"==typeof e?(t=e,e={}):e&&void 0!==e[n]&&(t=e[n],delete e[n]),r.get(t,e)},createData:function(e){return r.create(e)},updateData:function(e){var t=a(this);return r.update(e[t],e)},destroyData:function(e){var t=a(this);return r.remove(e[t])}}})}),define("ms",function(e,t,n){var a=1e3,i=60*a,s=60*i,o=24*s,c=365.25*o;function u(e,t,n){if(!(en&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.once=function(e,t){if(!c(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,a,i;if(!c(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,r=-1,n===t||c(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(u(n)){for(i=a;0>(-2*a&6)):0)r=o.indexOf(r);return s}}),define("jwt-decode/lib/base64_url_decode",["require","exports","module","jwt-decode/lib/atob"],function(e,t,n){var r=e("jwt-decode/lib/atob");n.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(r(t).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return r(t)}}}),define("jwt-decode",["require","exports","module","jwt-decode/lib/base64_url_decode"],function(e,t,n){"use strict";var r=e("jwt-decode/lib/base64_url_decode");function a(e){this.message=e}(a.prototype=new Error).name="InvalidTokenError",n.exports=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}},n.exports.InvalidTokenError=a}),define("can-connect-feathers/utils/utils",["require","exports","module","jwt-decode","can-util/js/assign/assign"],function(e,t,n){var r=e("jwt-decode"),a=e("can-util/js/assign/assign");function i(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r(new Date).getTime()}n.exports={readCookie:i,getStoredToken:s,hasValidToken:function(e){var t=s(e);if(t)try{return o(r(t))}catch(e){return!1}return!1},payloadIsValid:o,convertLocalAuthData:function(e){var t=a({},e);return t&&"local"===t.strategy&&t.user&&(Object.keys(t.user).forEach(function(e){t[e]=t.user[e]}),delete t.user),t}}}),define("can-connect-feathers/session/storage",function(e,t,n){n.exports={data:{},getStore:function(){if(window.doneSsr){var e=window.CanZone||void 0;return void 0===e?this.data:e.current.data}return this.data},setItem:function(e,t){this.getStore()[e]=t},getItem:function(e){return this.getStore()[e]},removeItem:function(e){delete this.getStore()[e]}}}),define("can-connect-feathers/session/session",["require","exports","module","can-connect","feathers-errors","feathers-authentication-popups","jwt-decode","can-connect-feathers/utils/utils","can-connect-feathers/utils/utils","can-connect-feathers/utils/utils","can-observation","can-connect-feathers/session/storage"],function(e,t,n){var r=e("can-connect"),i=e("feathers-errors"),s=e("feathers-authentication-popups").authAgent,o=e("jwt-decode"),c=e("can-connect-feathers/utils/utils").payloadIsValid,u=e("can-connect-feathers/utils/utils").hasValidToken,l=e("can-connect-feathers/utils/utils").convertLocalAuthData,p=e("can-observation"),d=e("can-connect-feathers/session/storage");n.exports=r.behavior("data/feathers-session",function(){var e="https://canjs.com/doc/can-connect-feathers.html",r=this.feathersClient;if(!r)throw new Error("You must provide a feathersClient instance to the feathers-session behavior. See "+e);if(!this.Map)throw new Error("You must provide a Map instance to the feathers-session behavior. See "+e);if(!r.passport)throw new Error("You must register the feathers-authentication-client plugin before using the feathers-session behavior. See "+e);var a=r.passport.options,n=this.Map;return Object.defineProperty(n,"current",{get:function(){return p.add(n,"current"),void 0===d.getItem("can-connect-feathers-session")&&(d.removeItem("can-connect-feathers-session"),n.get().then(function(e){d.setItem("can-connect-feathers-session",e),n.dispatch("current",[e])}).catch(function(e){if(d.setItem("can-connect-feathers-session",null),n.dispatch("current",[null]),!e.className||e.className.indexOf("not-authenticated")<0)return Promise.reject(e)})),d.getItem("can-connect-feathers-session")}}),n.on("created",function(e,t){d.setItem("can-connect-feathers-session",t),n.dispatch("current",[t])}),n.on("destroyed",function(){d.removeItem("can-connect-feathers-session"),n.dispatch("current",[void 0,d.getItem("can-connect-feathers-session")])}),{init:function(){var n=this;s.on("login",function(e){try{var t=o(e);if(!c(t))throw new Error("invalid token")}catch(e){throw new Error("An invalid token was received through the feathers-authentication-popups authAgent")}r.authenticate({strategy:"jwt",accessToken:e}).then(function(e){var t=o(e.accessToken);n.createInstance(t)})})},createData:function(e){var t=l(e);return r.authenticate(t).then(function(e){return e.accessToken?o(e.accessToken):e})},getData:function(){return new Promise(function(n,e){var t=a.tokenKey||a.cookie;u(t)&&!window.doneSsr?r.authenticate().then(function(e){var t=o(e.accessToken);return n(t)}).catch(e):e(new i.NotAuthenticated("Not Authenticated"))})},destroyData:function(e){return r.logout().then(function(){return e})}}})}),define("can-connect-feathers",["require","exports","module","can-connect-feathers/service/service","can-connect-feathers/session/session"],function(e,t,n){n.exports={service:e("can-connect-feathers/service/service"),session:e("can-connect-feathers/session/session")}}),define("can-connect-signalr",["require","exports","module","can-connect","jquery","ms-signalr-client"],function(e,t,n){var r=e("can-connect"),i=e("jquery");e("ms-signalr-client");var a=function(e){return e[0].toLowerCase()+e.substr(1)};n.exports=r.behavior("can-connect-signalr",function(e){return{init:function(){if(!this.signalR.url)throw new Error("Invalid SignalR Hub URL. URL cannot be blank.");if(!this.signalR.name)throw new Error("Invalid SignalR Hub name. Hub name cannot be blank.");e.init.apply(this,arguments);var a=this;this.signalR.ready=new Promise(function(e,t){var n=a.signalR,r=n.name.toLowerCase();n.connection=i.hubConnection(n.url),n.proxy=n.connection.createHubProxy(n.name),n.proxy.on(n.createdName||r+"Created",function(e){a.createInstance(e)}),n.proxy.on(n.updatedName||r+"Updated",function(e){a.updateInstance(e)}),n.proxy.on(n.destroyedName||r+"Destroyed",function(e){a.destroyInstance(e)}),n.connection.start().done(function(){e(n)}).fail(t)})},createData:function(t){return this.signalR.ready.then(function(e){return e.proxy.invoke(e.createName||a(e.name)+"Create",t)})},updateData:function(t){return this.signalR.ready.then(function(e){return e.proxy.invoke(e.updateName||a(e.name)+"Update",t)})},destroyData:function(t){return this.signalR.ready.then(function(e){return e.proxy.invoke(e.destroyName||a(e.name)+"Destroy",t)})},getListData:function(t){return this.signalR.ready.then(function(e){return e.proxy.invoke(e.getListDataName||a(e.name)+"GetListData",t)})},get:function(t){return this.signalR.ready.then(function(e){return e.proxy.invoke(e.getDataName||a(e.name)+"GetData",t)})}}})}),define("can-connect-cloneable",["require","exports","module","can-util/js/each/each","can-util/js/deep-assign/deep-assign","can-util/js/assign/assign","can-connect/helpers/get-id-props"],function(e,t,n){var a=e("can-util/js/each/each"),i=e("can-util/js/deep-assign/deep-assign"),s=e("can-util/js/assign/assign"),o=e("can-connect/helpers/get-id-props");n.exports=function(n){var e=o(n.connection)[0],r={save:function(){var t=this.serialize();return delete t._original,this._original[e]?(t[e]=this._original[e],this._original.constructor.connection.updateData(t).then(function(){n.connection.updatedInstance(this._original,t)}.bind(this))):this._original.constructor.connection.createData(t).then(function(e){n.connection.createdInstance(this._original,i({},t,e))}.bind(this))}};n.prototype.hasOwnProperty("_define")?(a(n.prototype._define.definitions,function(e,t){r[t]=s(s({},e),{get:e.get||function(e){return void 0!==e?e:this._original[t]},serialize:void 0===e.serialize?!e.get:e.serialize})}),i(r,{_original:{Type:n}})):(r.define={},a(n.prototype.define,function(e,t){r.define[t]=s(s({},e),{get:e.get||function(e){return void 0!==e?e:this._original[t]},serialize:void 0===e.serialize?!e.get:e.serialize})}),i(r,{define:{_original:{Type:n}}})),delete r[e];var t=n.extend(r);n.prototype.clone=function(){var e={};return e._original=this,new t(e)}}}),define("can-ndjson-stream",["require","exports","module","can-namespace"],function(e,t,n){var r=e("can-namespace");n.exports=r.ndjsonStream=function(e){var t,d=!1;return new ReadableStream({start:function(c){var u=e.getReader();t=u;var l=new TextDecoder,p="";u.read().then(function e(t){if(!t.done){for(var n=l.decode(t.value,{stream:!0}),r=(p+=n).split("\n"),a=0;at[n[0]]})});var e=parseInt(t.data.offset,10)||0,n=parseInt(t.data.limit,10)||c.length-e,a=0;for(var i in t.data)if(void(a=0)!==t.data[i]&&(-1!==i.indexOf("Id")||-1!==i.indexOf("_id")))for(;a handler(req,res)");var a=function(){var e=s.extractResponse.apply(t,arguments);return r.apply(this,e)},i=function(){var e=n.fixture(t,a,t.headers,n);void 0!==e&&a(200,e)};return t.async?setTimeout(i,h.delay):(i(),null)},s.index=function(e,t){for(var n=0;n delay "+r.fixture+"ms"),void(this.timeoutId=setTimeout(i,r.fixture))):(r&&(l.log(n.url+" -> "+r.url),c(a,r)),i())}this.timeoutId=s.callDynamicFixture(n,r,function(e,t,r,n){t="string"==typeof t?t:JSON.stringify(t),a._xhr={open:function(){},send:function(){},abort:function(){},getResponseHeader:function(){}},c(a,{readyState:4,status:e}),c(a,200<=e&&e<300||304===e?{statusText:n||"OK",responseText:t}:{statusText:n||"error",responseText:t}),a.getAllResponseHeaders=function(){var n=[];return u(r||{},function(e,t){Array.prototype.push.apply(n,[t,": ",e,"\r\n"])}),n.join("")},a.onreadystatechange&&a.onreadystatechange({target:a}),f(a,"progress"),a.onprogress&&a.onprogress(),f(a,"load"),a.onload&&a.onload(),f(a,"loadend"),a.onloadend&&a.onloadend()})}}),u(p,function(t){Object.defineProperty(XMLHttpRequest.prototype,t,{get:function(){return this._xhr[t]},set:function(e){try{this._xhr[t]=e}catch(e){}}})})}(function(){return this}(),e)}),define("can-fixture",["require","exports","module","can-fixture/core","can-fixture/store","can-fixture/xhr","can-util/js/assign/assign","can-namespace"],function(e,t,n){var r=e("can-fixture/core"),a=r.add,i=e("can-fixture/store");e("can-fixture/xhr");var s=e("can-util/js/assign/assign"),o=e("can-namespace"),c=function(){};s(a,{rand:function e(t,n,r){if("number"==typeof t)return"number"==typeof n?t+Math.floor(Math.random()*(n-t+1)):Math.floor(Math.random()*(t+1));var a=t.slice(0);void 0===n?(n=1,r=a.length):void 0===r&&(r=n);for(var i=[],s=n+Math.round(e(r-n)),o=0;o>> pub "+t),(e[t]||[]).forEach(function(e){e.apply(null,n)})}function o(e,t,n){d(" <<< sub "+t),e[t]||(e[t]=[]),e[t].push(n)}function c(t,n){var e=["open","socket"].map(function(e){return{name:e,method:t[e]}});return t.open=t.connect=function(){d("MockedManager.prototype.open or connect ... arguments:",arguments),setTimeout(function(){s(n.subscribers,"connect"),s(n.events,"connection")},0)},t.socket=function(){d("MockedManager.prototype.socket ...");var e=new i(n);return e.connected=!0,e.disconnected=!1,e},e}function u(t,e){d("Restore."),e.forEach(function(e){t[e.name]=e.method})}function l(e){for(var t in e)e.hasOwnProperty(t)&&delete e[t]}i.prototype={on:function(e,t){d("MockedSocket.on ... "+e),o(this._server.subscribers,e,t)},emit:function(e){var t=Array.prototype.slice.call(arguments,1);d("MockedSocket.emit ..."+e),s(this._server.events,e,t)},once:function(){d("MockedSocket.once ...")},off:function(e,t){var n,r,a;d("MockedSocket.off ... "+e),n=this._server.subscribers,a=t,d(" <<< unsub "+(r=e)),n[r].forEach(function(e,t){e===a&&n[r].splice(t,1)})},open:function(){return this.connect()},connect:function(){this.connected=!0,this.disconnected=!1},close:function(){return this.disconnect()},disconnect:function(){this.connected=!1,this.disconnected=!0}};var p=!1;function d(e,t){p&&console.log.apply(console,arguments)}n.exports={Server:a,mockSocketManager:c,restoreManager:u}}),define("can-fixture-socket",["require","exports","module","can-fixture-socket/src/index","can-fixture-socket/src/store"],function(e,t,n){var r=e("can-fixture-socket/src/index"),a=e("can-fixture-socket/src/store");n.exports={Server:r.Server,requestHandlerToListener:a.requestHandlerToListener,storeToListeners:a.storeToListeners}}),define("can-jquery",["require","exports","module","jquery","can-util/namespace","can-util/dom/fragment/fragment","can-util/dom/events/events","can-util/dom/dispatch/dispatch","can-util/js/each/each","can-util/dom/child-nodes/child-nodes","can-util/js/is-array-like/is-array-like","can-util/js/make-array/make-array","can-util/dom/mutate/mutate","can-util/js/set-immediate/set-immediate","can-view-model","can-globals/mutation-observer/mutation-observer","can-util/js/cid-map/cid-map","can-util/js/assign/assign","can-event-dom-enter/compat"],function(e,t,n){!function(e,t,n,r){var o=t("jquery"),a=t("can-util/namespace"),i=t("can-util/dom/fragment/fragment"),c=t("can-util/dom/events/events"),s=t("can-util/dom/dispatch/dispatch"),u=t("can-util/js/each/each"),l=t("can-util/dom/child-nodes/child-nodes"),p=t("can-util/js/is-array-like/is-array-like"),d=t("can-util/js/make-array/make-array"),f=t("can-util/dom/mutate/mutate"),h=t("can-util/js/set-immediate/set-immediate"),v=t("can-view-model"),m=t("can-globals/mutation-observer/mutation-observer"),g=t("can-util/js/cid-map/cid-map"),y=t("can-util/js/assign/assign");t("can-event-dom-enter/compat")(c),r.exports=a.$=o;var b={},w={focus:!0},x=!1,k=Array.prototype.slice,j=new g;if(o){s=c.dispatch;c.dispatch=function(e,t){var n;b[e]||w[e]?s.apply(this,arguments):("string"==typeof e||e.hasOwnProperty("type")||(n=y({},e)),o(this).trigger(n||e,t))};var _=function(e){return e&&11===e.nodeType},L=c.addEventListener;c.addEventListener=function(r,a){var i;if(!_(this)){if(x||c._compatRegistry[r])return L.call(this,r,i||a);if("removed"===r){var s=this;i=function(e){e.eventArguments=k.call(arguments,1),c.removeEventListener.call(s,r,i);var t=this,n=arguments;return m()?a.apply(t,n):h(function(){return a.apply(t,n)})},j.set(a,i)}o(this).on(r,i||a)}};var C=c.removeEventListener;c.removeEventListener=function(e,t){var n;if(!_(this))return x?C.apply(this,arguments):("removed"===e&&(n=j.get(t),j.delete(t)),void o(this).off(e,n||t))};var E=function(e){return{focus:"focusin",enter:"keyup",blur:"focusout"}[e]||e};c.addDelegateListener=function(e,t,n){o(this).on(E(e),t,n)},c.removeDelegateListener=function(e,t,n){o(this).off(E(e),t,n)};var S=function(e){return function(){x=!0,e.apply(this,arguments),x=!1}};["inserted","removed","attributes","beforeremove"].forEach(function(e){b[e]=!0;var t=function(){o(this).trigger(e)};o.event.special[e]={noBubble:!0,setup:S(function(){c.addEventListener.call(this,e,t)}),teardown:S(function(){c.removeEventListener.call(this,e,t)})}});var O,D=o.fn.domManip;o.fn.domManip=function(){for(var e=1;e",w.one.call(e,"removed",function(){g.unregister(l)}),m.appendChild.call(e,u),g.update(l,h(e))}}.bind({tagName:e}))})}),define("object-assign",function(e,t,n){"use strict";var c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;n.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i";var t=this.constructor,n=new c(this),r=t.view(n,null,this._nodeList);i.appendChild.call(e,r),this._rendered=!0}o.update(this._nodeList,s(e))},t.disconnectedCallback=function(){o.unregister(this._nodeList)},Object.defineProperty(e,"observedAttributes",{get:function(){return this._observedAttributes||[]}}),t.attributeChangedCallback=function(e,t,n){this[e]=n},e}(n.exports=u).Element=u(HTMLElement)}),define("can-zone-storage",function(e,t,n){n.exports={data:{},getStore:function(){var e=window.CanZone||void 0;return void 0===e?this.data:e.current.data},setItem:function(e,t){this.getStore()[e]=t},getItem:function(e){return this.getStore()[e]},removeItem:function(e){delete this.getStore()[e]}}}),define("can/ecosystem",["require","exports","module","can-util/namespace","can-construct-super","can-connect-feathers","can-connect-signalr","can-connect-cloneable","can-connect-ndjson","can-define-stream","can-define-stream-kefir","can-define-validate-validatejs","can-fixture","can-fixture-socket","can-jquery","can-kefir","can-ndjson-stream","can-observe","can-stache-converters","can-validate","can-validate-validatejs","can-view-import","can-react-component","can-stream","can-stream-kefir","can-zone","react-view-model","can-element","can-zone-storage"],function(e,t,n){var r=e("can-util/namespace");e("can-construct-super"),e("can-connect-feathers"),e("can-connect-signalr"),e("can-connect-cloneable"),e("can-connect-ndjson"),e("can-define-stream"),e("can-define-stream-kefir"),e("can-define-validate-validatejs"),e("can-fixture"),e("can-fixture-socket"),e("can-jquery"),e("can-kefir"),e("can-ndjson-stream"),"function"==typeof Proxy&&e("can-observe"),e("can-stache-converters"),e("can-validate"),e("can-validate-validatejs"),e("can-view-import"),e("can-react-component"),e("can-stream"),e("can-stream-kefir"),e("can-zone"),e("react-view-model"),"undefined"!=typeof customElements&&e("can-element"),e("can-zone-storage"),n.exports=r}),define("can-map/bubble",["require","exports","module","can-event","can-util/js/make-array/make-array","can-reflect","can-util/js/is-empty-object/is-empty-object"],function(e,t,n){var s=e("can-event"),o=e("can-util/js/make-array/make-array"),c=e("can-reflect"),u=e("can-util/js/is-empty-object/is-empty-object"),l={bind:function(e,t){if(!e.__inSetup){var n,r=l.events(e,t),a=r.length;e._bubbleBindings||(e._bubbleBindings={});for(var i=0;ithis.length-1){var r=new Array(e+1-this.length);return r[r.length-1]=t,this.push.apply(this,r),r}return this.splice(e,1,t),this}return i.prototype.__set.call(this,""+e,t,n)},___set:function(e,t){this[e]=t,+e>=this.length&&(this.length=+e+1)},__remove:function(e,t){isNaN(+e)?(delete this[e],this._triggerChange(e,"remove",void 0,t)):this.splice(e,1)},_each:function(e){for(var t=this.___get(),n=0;n"+x(t)+""+t+">"},k=function(n,e){if("string"==typeof n)return n;if(!n&&0!==n)return"";var t=n.hookup&&function(e,t){n.hookup.call(n,e,t)}||"function"==typeof n&&n;return t?e?"<"+e+" "+m.hook(t)+">"+e+">":(w.push(t),""):""+n},j=function(e,t){return"string"==typeof e||"number"==typeof e?r.esc(e):k(e,t)},_=!1,L=function(){};a(m,{contentText:k,live:b,setupLists:function(){var n,e=m.lists;return m.lists=function(e,t){return n={list:e,renderer:t},Math.random()},function(){return m.lists=e,n}},getHooks:function(){var e=w.slice(0);return w=[],v=e},onlytxt:function(e,t){return j(t.call(e))},txt:function(e,t,n,r,a){var i,s,o,c,u=g.tagMap[t]||"span",l=!1,p=L;if(_)i=a.call(r);else{"string"!=typeof n&&1!==n||(_=!0);var d=m.setupLists();p=function(){o.unbind("change",L)},(o=y(a,r,!1)).bind("change",L),s=d(),i=o(),_=!1,l=o.computeInstance.hasDependencies}if(s)return p(),"<"+u+m.hook(function(e,t){b.list(e,s.list,s.renderer,r,t)})+">"+u+">";if(!l||"function"==typeof i)return p(),(_||2===e||!e?k:j)(i,0===n&&u);var f=g.tagToContentPropMap[t];if(0!==n||f)return 1===n?(w.push(function(e){b.attributes(e,o,o()),p()}),o()):2===e?(c=n,w.push(function(e){b.specialAttribute(e,c,o),p()}),o()):(c=0===n?f:n,(0===n?v:w).push(function(e){b.attribute(e,c,o),p()}),b.attributePlaceholder);var h=!!g.selfClosingTags[u];return"<"+u+m.hook(e&&"object"!=typeof i?function(e,t){b.text(e,o,t),p()}:function(e,t){b.html(e,o,t),p()})+(h?"/>":">"+x(u)+""+u+">")}}),n.exports=m}),define("can-legacy-view-helpers/src/scanner",["require","exports","module","can-legacy-view-helpers/src/elements","can-view-callbacks","can-util/js/deep-assign/deep-assign","can-legacy-view-helpers/src/view","can-util/js/each/each"],function(require,exports,module){var elements=require("can-legacy-view-helpers/src/elements"),viewCallbacks=require("can-view-callbacks"),deepAssign=require("can-util/js/deep-assign/deep-assign"),view=require("can-legacy-view-helpers/src/view"),each=require("can-util/js/each/each"),newLine=/(\r|\n)+/g,notEndTag=/\//,clean=function(e){return e.split("\\").join("\\\\").split("\n").join("\\n").split('"').join('\\"').split("\t").join("\\t")},getTag=function(e,t,n){if(e)return e;for(;n":">",'"':'"',"'":"'"},this.tokenComplex=[],this.tokenMap={};for(var t,n=0;t=this.tokens[n];n++)t[2]?(this.tokenReg.push(t[2]),this.tokenComplex.push({abbr:t[1],re:new RegExp(t[2]),rescan:t[3]})):(this.tokenReg.push(t[1]),this.tokenSimple[t[1]]=t[0]),this.tokenMap[t[0]]=t[1];this.tokenReg=new RegExp("("+this.tokenReg.slice(0).concat(["<",">",'"',"'"]).join("|")+")","g")};Scanner.prototype={helpers:[],scan:function(i,e){var s=[],o=0,c=this.tokenSimple,u=this.tokenComplex;i=i.replace(newLine,"\n"),this.transform&&(i=this.transform(i)),i.replace(this.tokenReg,function(e,t){var n=arguments[arguments.length-2];if(o":htmlTag=0;var _="/"===l.substr(l.length-1)||"--"===l.substr(l.length-2),L="";if(m.attributeHookups.length&&(L="attrs: ['"+m.attributeHookups.join("','")+"'], ",m.attributeHookups=[]),y+m.tagHookups.length!==m.lastTagHookup&&y===_top(m.tagHookups))_&&(l=l.substr(0,l.length-1)),p.push(put_cmd,'"',clean(l),'"',",CAN_LEGACY_HELPERS.view.pending({tagName:'"+y+"',"+L+"scope: "+(this.text.scope||"this")+this.text.options),_?(p.push("}));"),l="/>",g()):"<"===s[k]&&s[k+1]==="/"+y?(p.push("}));"),l=r,g()):(p.push(",subtemplate: function("+this.text.argNames+"){\n"+startTxt+(this.text.start||"")),l="");else if(v||!w&&elements.tagToContentPropMap[b[b.length-1]]||L){var C=",CAN_LEGACY_HELPERS.view.pending({"+L+"scope: "+(this.text.scope||"this")+this.text.options+'}),"';_?d(l.substr(0,l.length-1),C+'/>"'):d(l,C+'>"'),l="",v=0}else l+=r;(_||w)&&(b.pop(),y=b[b.length-1],w=!1),m.attributeHookups=[];break;case"'":case'"':if(htmlTag)if(quote&"e===r){quote=null;var E=getAttrName();if(viewCallbacks.attr(E)&&m.attributeHookups.push(E),x){d(l+=r),p.push(finishTxt,"}));\n"),l="",x=!1;break}}else if(null===quote&&(quote=r,beforeQuote=t,a=getAttrName(),"img"===y&&"src"===a||"style"===a)){d(l.replace(attrReg,"")),l="",x=!0,p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.txt(2,'"+getTag(y,s,k)+"',"+_status()+",this,function(){",startTxt),d(a+"="+r);break}default:if("<"===t){var S,O=!1;0===(y="!--"===r.substr(0,3)?"!--":r.split(/\s/)[0]).indexOf("/")&&(O=!0,S=y.substr(1)),O?(_top(b)===S&&(y=S,w=!0),_top(m.tagHookups)===S&&(d(l.substr(0,l.length-1)),p.push(finishTxt+"}}) );"),l="><",g())):(y.lastIndexOf("/")===y.length-1&&(y=y.substr(0,y.length-1)),"!--"!==y&&viewCallbacks.tag(y)&&("content"===y&&elements.tagMap[_top(b)]&&(r=r.replace("content",elements.tagMap[_top(b)])),m.tagHookups.push(y)),b.push(y))}l+=r}else switch(r){case j.right:case j.returnRight:switch(h){case j.left:1===(n=bracketNum(l))?(p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.txt(0,'"+getTag(y,s,k)+"',"+_status()+",this,function(){",startTxt,l),f.push({before:"",after:finishTxt+"}));\n"})):((o=f.length&&-1===n?f.pop():{after:";"}).before&&p.push(o.before),p.push(l,";",o.after));break;case j.escapeLeft:case j.returnLeft:(n=bracketNum(l))&&f.push({before:finishTxt,after:"}));\n"});for(var D=h===j.escapeLeft?1:0,T={insert:insert_cmd,tagName:getTag(y,s,k),status:_status(),specialAttribute:x},A=0;A[\s]*\w*/.source&&(D=0);break}}"object"==typeof l?l.startTxt&&l.end&&x?p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.toStr( ",l.content,"() ) );"):(l.startTxt?p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.txt(\n"+("string"==typeof _status()||(null!=l.escaped?l.escaped:D))+",\n'"+y+"',\n"+_status()+",\nthis,\n"):l.startOnlyTxt&&p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.onlytxt(this,\n"),p.push(l.content),l.end&&p.push("));")):x?p.push(insert_cmd,l,");"):p.push(insert_cmd,"CAN_LEGACY_HELPERS.view.txt(\n"+("string"==typeof _status()||D)+",\n'"+y+"',\n"+_status()+",\nthis,\nfunction(){ "+(this.text.escape||"")+"return ",l,n?startTxt:"}));\n"),rescan&&rescan.after&&rescan.after.length&&(d(rescan.after.length),rescan=null)}h=null,l="";break;case j.templateLeft:l+=j.left;break;default:l+=r}t=r}l.length&&d(l),p.push(";");var P=p.join(""),V={out:(this.text.outStart||"")+P+" "+finishTxt+(this.text.outEnd||"")};return myEval.call(V,"this.fn = (function("+this.text.argNames+"){"+V.out+"});\r\n//# sourceURL="+e+".js"),V}},view.pending=function(r){var e=view.getHooks();return view.hook(function(n){each(e,function(e){e(n)}),r.templateType="legacy",r.tagName&&viewCallbacks.tagHandler(n,r.tagName,r),each(r&&r.attrs||[],function(e){r.attributeName=e;var t=viewCallbacks.attr(e);t&&t(n,r)})})},view.Scanner=Scanner,module.exports=Scanner}),define("can-legacy-view-helpers",["require","exports","module","can-legacy-view-helpers/src/render","can-legacy-view-helpers/src/scanner","can-legacy-view-helpers/src/view","can-legacy-view-helpers/src/elements","can-legacy-view-helpers/src/live","can-legacy-view-helpers/src/node_list"],function(e,t,n){var r={render:e("can-legacy-view-helpers/src/render"),Scanner:e("can-legacy-view-helpers/src/scanner"),view:e("can-legacy-view-helpers/src/view"),elements:e("can-legacy-view-helpers/src/elements"),live:e("can-legacy-view-helpers/src/live"),nodeLists:e("can-legacy-view-helpers/src/node_list")};"undefined"!=typeof window&&(window.CAN_LEGACY_HELPERS=r),n.exports=r}),define("can-ejs",["require","exports","module","can-legacy-view-helpers","can-util/js/assign/assign","can-namespace","can-util/js/each/each","can-reflect","can-stache-key","can-globals/document/document"],function(e,t,n){!function(e,t,n,r){var a=t("can-legacy-view-helpers"),i=t("can-util/js/assign/assign"),s=t("can-namespace"),o=t("can-util/js/each/each"),c=t("can-reflect"),u=t("can-stache-key"),l=t("can-globals/document/document"),p=0,d=function(e){if(!this||this.constructor!==d){var n=new d(e);return function(e,t){return a.view.frag(n.render(e,t))}}"function"!=typeof e?("string"==typeof e&&(e={text:e,name:""+ ++p}),i(this,e),this.template=this.scanner.scan(this.text,this.name)):this.template={fn:e}};(s.EJS=d).prototype.render=function(e,t){return e=e||{},this.template.fn.call(e,e,new d.Helpers(e,t||{}))},i(d.prototype,{scanner:new a.Scanner({text:{outStart:"with(_VIEW) { with (_CONTEXT) {",outEnd:"}}",argNames:"_CONTEXT,_VIEW",context:"this"},tokens:[["templateLeft","<%%"],["templateRight","%>"],["returnLeft","<%=="],["escapeLeft","<%="],["commentLeft","<%#"],["left","<%"],["right","%>"],["returnRight","%>"]],helpers:[{name:/\s*\(([\$\w]+)\)\s*->([^\n]*)/,fn:function(e){var t=e.match(/\s*\(([\$\w]+)\)\s*->([^\n]*)/);return"(function(__){var "+t[1]+"=__;"+t[2]+"}).bind(this);"}}],transform:function(e){return e.replace(/<%([\s\S]+?)%>/gm,function(e,t){var n,r,a=[];t.replace(/[{}]/gm,function(e,t){a.push([e,t])});do{for(n=!1,r=a.length-2;0<=r;r--)if("{"===a[r][0]&&"}"===a[r+1][0]){a.splice(r,2),n=!0;break}}while(n);if(2<=a.length){var i,s=["<%"],o=0;for(r=0;i=a[r];r++)s.push(t.substring(o,o=i[1])),"{"===i[0]&&r<% ":" %><% }"):s.push(i[0]),++o;return s.push(t.substring(o),"%>"),s.join("")}return"<%"+t+"%>"})}})}),d.Helpers=function(e,t){this._data=e,this._extras=t,i(this,t)},d.Helpers.prototype={list:function(n,r){c.isObservableLike(n)&&c.isListLike(n)&&u.get(n,"length"),o(n,function(e,t){r(e,t,n)})},each:function(e,t){Array.isArray(e)?this.list(e,t):a.view.lists(e,t)}};var f={};d.from=function(e){if(!f[e]){var t=l().getElementById(e);f[e]=d(t.innerHTML)}return f[e]},r.exports=d}(0,e,0,n)}),define("can-validate-legacy",["require","exports","module","can-util/js/dev/dev","can-util/namespace"],function(e,t,n){var r=e("can-util/js/dev/dev"),a={_validatorId:"",_validators:{},validator:function(){return this._validators[this._validatorId]},register:function(e,t){this._validatorId=e,this._validators[e]=t},isValid:function(){return this._validatorId||r.warn("A validator library is required for can.validate to work properly."),this.validator().isValid.apply(this,arguments)},once:function(){return this._validatorId||r.warn("A validator library is required for can.validate to work properly."),this.validator().once.apply(this,arguments)},validate:function(){var e=arguments;return this._validatorId||r.warn("A validator library is required for can.validate to work properly."),"object"!=typeof arguments[0]&&r.warn("Attempting to pass single value to validate, use can.validator.once instead."),this.validator().validate.apply(this,e)}};e("can-util/namespace").validate=a,n.exports=a}),define("can/legacy",["require","exports","module","can-util/namespace","can-component","can-route","can-stache","can-stache-bindings","can-compute","can-event","can-view-model","can-map","can-list","can-map-backup","can-map-define","can-connect/can/model/model","can-ejs","can-validate-legacy"],function(e,t,n){var r=e("can-util/namespace");e("can-component"),e("can-route"),e("can-stache"),e("can-stache-bindings"),e("can-compute"),e("can-event"),e("can-view-model"),e("can-map"),e("can-list"),e("can-map-backup"),e("can-map-define"),e("can-connect/can/model/model"),e("can-ejs"),e("can-validate-legacy"),r.view.attr=r.view.callbacks.attr,r.view.tag=r.view.callbacks.tag,n.exports=r}),define("can/all",["require","exports","module","can-util/namespace","can","can/ecosystem","can/legacy"],function(e,t,n){var r=e("can-util/namespace");e("can"),e("can/ecosystem"),e("can/legacy"),n.exports=r}),function(e){e._define=e.define,e.define=e.define.orig}("object"==typeof self&&self.Object==Object?self:"object"==typeof process&&"[object process]"===Object.prototype.toString.call(process)?global:window);