10 lines
293 KiB
JavaScript
10 lines
293 KiB
JavaScript
webpackJsonp([1],[function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(172),i=n(3),r=n(7),p=n(243),c=n(229),l=function(){function t(){}return t=s([i.Component({selector:"app"}),i.View({template:'\n <main class="bd-pageheader">\n <div class="container">\n <h1>ng2-file-upload</h1>\n <p>The Angular2 File Upload directives</p>\n <a class="btn btn-primary" href="https://github.com/valor-software/ng2-file-upload">View on GitHub</a>\n <div class="row">\n <div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div>\n <div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=fork&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div>\n </div>\n </div>\n </main>\n\n <div class="container">\n <section id="getting-started">'+c+'</section>\n\n <file-upload-section class="col-md-12"></file-upload-section>\n </div>\n\n <footer class="footer">\n <div class="container">\n <p class="text-muted text-center"><a href="https://github.com/valor-software/ng2-file-upload">ng2-file-upload</a> is maintained by <a href="https://github.com/valor-software">valor-software</a>.</p>\n </div>\n </footer>\n ',directives:[r.NgClass,p.FileUploadSection]}),a("design:paramtypes",[])],t)}();e.Demo=l,o.bootstrap(l)},,,,,,,,function(t,e,n){"use strict";function s(t){a.isBlank(e.DOM)&&(e.DOM=t)}var a=n(1);e.DOM=null,e.setRootDomAdapter=s;var o=function(){function t(){}return t}();e.DomAdapter=o},,,,,,,function(t,e,n){"use strict";function s(t){return d.StringWrapper.replaceAllMapped(t,f,function(t){return"-"+t[1].toLowerCase()})}function a(t){return d.StringWrapper.replaceAllMapped(t,m,function(t){return t[1].toUpperCase()})}function o(t){return d.isBlank(t)?null:"'"+r(t,g)+"'"}function i(t){return d.isBlank(t)?null:'"'+r(t,y)+'"'}function r(t,e){return d.StringWrapper.replaceAllMapped(t,e,function(t){return"$"==t[0]?d.IS_DART?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]})}function p(t){return d.IS_DART?"const "+t+" = ":"var "+t+" = exports['"+t+"'] = "}function c(t){return d.IS_DART?"const "+t:"new "+t}function l(t,e,n){return void 0===n&&(n=""),d.IS_DART?n+"("+t.join(",")+") => "+e:"function "+n+"("+t.join(",")+") { return "+e+"; }"}function u(t){return d.IS_DART?"'${"+t+"}'":t}function h(t,e){var n=d.StringWrapper.split(t.trim(),/\s*:\s*/g);return n.length>1?n:e}var d=n(1),f=/([A-Z])/g,m=/-([a-z])/g,g=/'|\\|\n|\r|\$/g,y=/"|\\|\n|\r|\$/g;e.MODULE_SUFFIX=d.IS_DART?".dart":".js",e.camelCaseToDashCase=s,e.dashCaseToCamelCase=a,e.escapeSingleQuoteString=o,e.escapeDoubleQuoteString=i,e.codeGenExportVariable=p,e.codeGenConstConstructorCall=c,e.codeGenValueFn=l,e.codeGenToString=u,e.splitAtColon=h},,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(1),r=n(4),p=n(5),c=n(57),l=n(2);e.EVENT_MANAGER_PLUGINS=i.CONST_EXPR(new p.OpaqueToken("EventManagerPlugins"));var u=function(){function t(t,e){var n=this;this._zone=e,t.forEach(function(t){return t.manager=n}),this._plugins=l.ListWrapper.reversed(t)}return t.prototype.addEventListener=function(t,e,n){var s=this._findPluginFor(e);s.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var s=this._findPluginFor(e);return s.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){for(var e=this._plugins,n=0;n<e.length;n++){var s=e[n];if(s.supports(t))return s}throw new r.BaseException("No event manager plugin found for event "+t)},t=s([p.Injectable(),o(0,p.Inject(e.EVENT_MANAGER_PLUGINS)),a("design:paramtypes",[Array,c.NgZone])],t)}();e.EventManager=u;var h=function(){function t(){}return t.prototype.supports=function(t){return!1},t.prototype.addEventListener=function(t,e,n){throw"not implemented"},t.prototype.addGlobalEventListener=function(t,e,n){throw"not implemented"},t}();e.EventManagerPlugin=h},,function(t,e,n){"use strict";function s(t){var e=c[t.toLowerCase()];return i.isPresent(e)?e:l}function a(t){if("@"!=t[0])return[null,t];var e=i.RegExpWrapper.firstMatch(u,t);return[e[1],e[2]]}function o(t){return a(t)[0]}var i=n(1);e.NAMED_ENTITIES=i.CONST_EXPR({Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"",zwnj:""}),function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(e.HtmlTagContentType||(e.HtmlTagContentType={}));var r=e.HtmlTagContentType,p=function(){function t(t){var e=this,n=void 0===t?{}:t,s=n.closedByChildren,a=n.requiredParents,o=n.implicitNamespacePrefix,p=n.contentType,c=n.closedByParent,l=n.isVoid,u=n.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,i.isPresent(s)&&s.length>0&&s.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=i.normalizeBool(l),this.closedByParent=i.normalizeBool(c)||this.isVoid,i.isPresent(a)&&a.length>0&&(this.requiredParents={},this.parentToAdd=a[0],a.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=i.isPresent(p)?p:r.PARSABLE_DATA,this.ignoreFirstLf=i.normalizeBool(u)}return t.prototype.requireExtraParent=function(t){if(i.isBlank(this.requiredParents))return!1;if(i.isBlank(t))return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||i.normalizeBool(this.closedByChildren[t.toLowerCase()])},t}();e.HtmlTagDefinition=p;var c={area:new p({isVoid:!0}),embed:new p({isVoid:!0}),link:new p({isVoid:!0}),img:new p({isVoid:!0}),input:new p({isVoid:!0}),param:new p({isVoid:!0}),hr:new p({isVoid:!0}),br:new p({isVoid:!0}),source:new p({isVoid:!0}),track:new p({isVoid:!0}),wbr:new p({isVoid:!0}),p:new p({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new p({closedByChildren:["tbody","tfoot"]}),tbody:new p({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new p({closedByChildren:["tbody"],closedByParent:!0}),tr:new p({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new p({closedByChildren:["td","th"],closedByParent:!0}),th:new p({closedByChildren:["td","th"],closedByParent:!0}),col:new p({requiredParents:["colgroup"],isVoid:!0}),svg:new p({implicitNamespacePrefix:"svg"}),math:new p({implicitNamespacePrefix:"math"}),li:new p({closedByChildren:["li"],closedByParent:!0}),dt:new p({closedByChildren:["dt","dd"]}),dd:new p({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new p({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new p({closedByChildren:["optgroup"],closedByParent:!0}),option:new p({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new p({ignoreFirstLf:!0}),listing:new p({ignoreFirstLf:!0}),style:new p({contentType:r.RAW_TEXT}),script:new p({contentType:r.RAW_TEXT}),title:new p({contentType:r.ESCAPABLE_RAW_TEXT}),textarea:new p({contentType:r.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},l=new p;e.getHtmlTagDefinition=s;var u=/^@([^:]+):(.+)/g;e.splitNsName=a,e.getNsPrefix=o},function(t,e,n){"use strict";function s(t){return"#MODULE["+t+"]"}var a=n(1),o=/#MODULE\[([^\]]*)\]/g;e.moduleRef=s;var i=function(){function t(t,e){this.moduleUrl=t,this.sourceWithModuleRefs=e}return t.prototype.getSourceWithImports=function(){var t=this,e={},n=[],s=a.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs,o,function(s){var o=s[1],i=e[o];return a.isBlank(i)&&(o==t.moduleUrl?i="":(i="import"+n.length,n.push([o,i])),e[o]=i),i.length>0?i+".":""});return new c(s,n)},t}();e.SourceModule=i;var r=function(){function t(t,e){this.declarations=t,this.expression=e}return t}();e.SourceExpression=r;var p=function(){function t(t,e){this.declarations=t,this.expressions=e}return t}();e.SourceExpressions=p;var c=function(){function t(t,e){this.source=t,this.imports=e}return t}();e.SourceWithImports=c},function(t,e,n){"use strict";function s(){return new y}function a(t){var e=i(t);return e&&e[v.Scheme]||""}function o(t,e,n,s,a,o,i){var r=[];return f.isPresent(t)&&r.push(t+":"),f.isPresent(n)&&(r.push("//"),f.isPresent(e)&&r.push(e+"@"),r.push(n),f.isPresent(s)&&r.push(":"+s)),f.isPresent(a)&&r.push(a),f.isPresent(o)&&r.push("?"+o),f.isPresent(i)&&r.push("#"+i),r.join("")}function i(t){return f.RegExpWrapper.firstMatch(k,t)}function r(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",s=t.split("/"),a=[],o=0,i=0;i<s.length;i++){var r=s[i];switch(r){case"":case".":break;case"..":a.length>0?a.pop():o++;break;default:a.push(r)}}if(""==e){for(;o-- >0;)a.unshift("..");0===a.length&&a.push(".")}return e+a.join("/")+n}function p(t){var e=t[v.Path];return e=f.isBlank(e)?"":r(e),t[v.Path]=e,o(t[v.Scheme],t[v.UserInfo],t[v.Domain],t[v.Port],e,t[v.QueryData],t[v.Fragment])}function c(t,e){var n=i(encodeURI(e)),s=i(t);if(f.isPresent(n[v.Scheme]))return p(n);n[v.Scheme]=s[v.Scheme];for(var a=v.Scheme;a<=v.Port;a++)f.isBlank(n[a])&&(n[a]=s[a]);if("/"==n[v.Path][0])return p(n);var o=s[v.Path];f.isBlank(o)&&(o="/");var r=o.lastIndexOf("/");return o=o.substring(0,r+1)+n[v.Path],n[v.Path]=o,p(n)}var l=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},h=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},d=n(5),f=n(1),m=n(29),g=n(5);e.createWithoutPackagePrefix=s,e.DEFAULT_PACKAGE_URL_PROVIDER=new g.Provider(m.PACKAGE_ROOT_URL,{useValue:"/"});var y=function(){function t(t){void 0===t&&(t=null),f.isPresent(t)&&(this._packagePrefix=f.StringWrapper.stripRight(t,"/")+"/")}return t.prototype.resolve=function(t,e){var n=e;return f.isPresent(t)&&t.length>0&&(n=c(t,n)),f.isPresent(this._packagePrefix)&&"package"==a(n)&&(n=n.replace("package:",this._packagePrefix)),n},t=l([d.Injectable(),h(0,d.Inject(m.PACKAGE_ROOT_URL)),u("design:paramtypes",[String])],t)}();e.UrlResolver=y,e.getUrlScheme=a;var v,k=f.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!function(t){t[t.Scheme=1]="Scheme",t[t.UserInfo=2]="UserInfo",t[t.Domain=3]="Domain",t[t.Port=4]="Port",t[t.Path=5]="Path",t[t.QueryData=6]="QueryData",t[t.Fragment=7]="Fragment"}(v||(v={}))},,,,,,,,,function(t,e,n){"use strict";var s=n(5),a=n(1);e.DOCUMENT=a.CONST_EXPR(new s.OpaqueToken("DocumentToken"))},,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(t){this.element=t,this.fileOver=new o.EventEmitter}return t.prototype.getOptions=function(){return this.uploader.options},t.prototype.getFilters=function(){},t.prototype.onDrop=function(t){var e=this._getTransfer(t);if(e){var n=this.getOptions(),s=this.getFilters();this._preventAndStop(t),this.uploader.addToQueue(e.files,n,s),this.fileOver.next(!1)}},t.prototype.onDragOver=function(t){var e=this._getTransfer(t);this._haveFiles(e.types)&&(e.dropEffect="copy",this._preventAndStop(t),this.fileOver.next(!0))},t.prototype.onDragLeave=function(t){t.currentTarget!==this.element[0]&&(this._preventAndStop(t),this.fileOver.next(!1))},t.prototype._getTransfer=function(t){return t.dataTransfer?t.dataTransfer:t.originalEvent.dataTransfer},t.prototype._preventAndStop=function(t){t.preventDefault(),t.stopPropagation()},t.prototype._haveFiles=function(t){return t?t.indexOf?-1!==t.indexOf("Files"):t.contains?t.contains("Files"):!1:!1},t.prototype._addOverClass=function(t){t.addOverClass()},t.prototype._removeOverClass=function(t){t.removeOverClass()},t=s([o.Directive({selector:"[ng2-file-drop]",properties:["uploader"],events:["fileOver"],host:{"(drop)":"onDrop($event)","(dragover)":"onDragOver($event)","(dragleave)":"onDragLeave($event)"}}),a("design:paramtypes",[o.ElementRef])],t)}();e.FileDrop=i},function(t,e){function n(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}var s=function(){function t(t){var e=n(t),s=e?t.value:t,a="string"==typeof s?"FakePath":"Object",o="_createFrom"+a;this[o](s)}return t.prototype._createFromFakePath=function(t){this.lastModifiedDate=null,this.size=null,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)},t.prototype._createFromObject=function(t){this.size=t.size,this.type=t.type,this.name=t.name},t}();e.FileLikeObject=s},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(t){this.element=t}return t.prototype.getOptions=function(){return this.uploader.options},t.prototype.getFilters=function(){},t.prototype.isEmptyAfterSelection=function(){return!!this.element.nativeElement.attributes.multiple},t.prototype.onChange=function(){var t=this.element.nativeElement.files,e=this.getOptions(),n=this.getFilters();this.uploader.addToQueue(t,e,n),this.isEmptyAfterSelection()},t=s([o.Directive({selector:"[ng2-file-select]",properties:["uploader"],host:{"(change)":"onChange()"}}),a("design:paramtypes",[o.ElementRef])],t)}();e.FileSelect=i,e.fileUpload=[i]},,,,,function(t,e,n){"use strict";function s(t,e){var n=p.CssSelector.parse(e)[0].getMatchingElementTemplate();return f.create({type:new h({runtime:Object,name:"Host"+t.name,moduleUrl:t.moduleUrl,isHost:!0}),template:new d({template:n,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:i.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,dynamicLoadable:!1,selector:"*"})}var a=n(1),o=n(2),i=n(10),r=n(17),p=n(122),c=n(15),l=n(33),u=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,h=function(){function t(t){var e=void 0===t?{}:t,n=e.runtime,s=e.name,o=e.moduleUrl,i=e.isHost;this.runtime=n,this.name=s,this.moduleUrl=o,this.isHost=a.normalizeBool(i)}return t.fromJson=function(e){return new t({name:e.name,moduleUrl:e.moduleUrl,isHost:e.isHost})},t.prototype.toJson=function(){return{name:this.name,moduleUrl:this.moduleUrl,isHost:this.isHost}},t}();e.CompileTypeMetadata=h;var d=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,s=e.template,o=e.templateUrl,i=e.styles,p=e.styleUrls,c=e.ngContentSelectors;this.encapsulation=a.isPresent(n)?n:r.ViewEncapsulation.Emulated,this.template=s,this.templateUrl=o,this.styles=a.isPresent(i)?i:[],this.styleUrls=a.isPresent(p)?p:[],this.ngContentSelectors=a.isPresent(c)?c:[]}return t.fromJson=function(e){return new t({encapsulation:a.isPresent(e.encapsulation)?r.VIEW_ENCAPSULATION_VALUES[e.encapsulation]:e.encapsulation,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,ngContentSelectors:e.ngContentSelectors})},t.prototype.toJson=function(){return{encapsulation:a.isPresent(this.encapsulation)?a.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},t}();e.CompileTemplateMetadata=d;var f=function(){function t(t){var e=void 0===t?{}:t,n=e.type,s=e.isComponent,a=e.dynamicLoadable,o=e.selector,i=e.exportAs,r=e.changeDetection,p=e.inputs,c=e.outputs,l=e.hostListeners,u=e.hostProperties,h=e.hostAttributes,d=e.lifecycleHooks,f=e.template;this.type=n,this.isComponent=s,this.dynamicLoadable=a,this.selector=o,this.exportAs=i,this.changeDetection=r,this.inputs=p,this.outputs=c,this.hostListeners=l,this.hostProperties=u,this.hostAttributes=h,this.lifecycleHooks=d,this.template=f}return t.create=function(e){var n=void 0===e?{}:e,s=n.type,i=n.isComponent,r=n.dynamicLoadable,p=n.selector,l=n.exportAs,h=n.changeDetection,d=n.inputs,f=n.outputs,m=n.host,g=n.lifecycleHooks,y=n.template,v={},k={},_={};a.isPresent(m)&&o.StringMapWrapper.forEach(m,function(t,e){var n=a.RegExpWrapper.firstMatch(u,e);a.isBlank(n)?_[e]=t:a.isPresent(n[1])?k[n[1]]=t:a.isPresent(n[2])&&(v[n[2]]=t)});var b={};a.isPresent(d)&&d.forEach(function(t){var e=c.splitAtColon(t,[t,t]);b[e[0]]=e[1]});var E={};return a.isPresent(f)&&f.forEach(function(t){var e=c.splitAtColon(t,[t,t]);E[e[0]]=e[1]}),new t({type:s,isComponent:a.normalizeBool(i),dynamicLoadable:a.normalizeBool(r),selector:p,exportAs:l,changeDetection:h,inputs:b,outputs:E,hostListeners:v,hostProperties:k,hostAttributes:_,lifecycleHooks:a.isPresent(g)?g:[],template:y})},t.fromJson=function(e){return new t({isComponent:e.isComponent,dynamicLoadable:e.dynamicLoadable,selector:e.selector,exportAs:e.exportAs,type:a.isPresent(e.type)?h.fromJson(e.type):e.type,changeDetection:a.isPresent(e.changeDetection)?i.CHANGE_DETECTION_STRATEGY_VALUES[e.changeDetection]:e.changeDetection,inputs:e.inputs,outputs:e.outputs,hostListeners:e.hostListeners,hostProperties:e.hostProperties,hostAttributes:e.hostAttributes,lifecycleHooks:e.lifecycleHooks.map(function(t){return l.LIFECYCLE_HOOKS_VALUES[t]}),template:a.isPresent(e.template)?d.fromJson(e.template):e.template})},t.prototype.toJson=function(){return{isComponent:this.isComponent,dynamicLoadable:this.dynamicLoadable,selector:this.selector,exportAs:this.exportAs,type:a.isPresent(this.type)?this.type.toJson():this.type,changeDetection:a.isPresent(this.changeDetection)?a.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(t){return a.serializeEnum(t)}),template:a.isPresent(this.template)?this.template.toJson():this.template}},t}();e.CompileDirectiveMetadata=f,e.createHostComponentMeta=s},function(t,e,n){"use strict";function s(t,e,n){void 0===n&&(n=null);var s=[];return e.forEach(function(e){var o=e.visit(t,n);a.isPresent(o)&&s.push(o)}),s}var a=n(1),o=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.TextAst=o;var i=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}();e.BoundTextAst=i;var r=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}();e.AttrAst=r;var p=function(){function t(t,e,n,s,a){this.name=t,this.type=e,this.value=n,this.unit=s,this.sourceSpan=a}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}();e.BoundElementPropertyAst=p;var c=function(){function t(t,e,n,s){this.name=t,this.target=e,this.handler=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return a.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),t}();e.BoundEventAst=c;var l=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}();e.VariableAst=l;var u=function(){function t(t,e,n,s,a,o,i,r,p){this.name=t,this.attrs=e,this.inputs=n,this.outputs=s,this.exportAsVars=a,this.directives=o,this.children=i,this.ngContentIndex=r,this.sourceSpan=p}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t.prototype.isBound=function(){return this.inputs.length>0||this.outputs.length>0||this.exportAsVars.length>0||this.directives.length>0},t.prototype.getComponent=function(){return this.directives.length>0&&this.directives[0].directive.isComponent?this.directives[0].directive:null},t}();e.ElementAst=u;var h=function(){function t(t,e,n,s,a,o,i){this.attrs=t,this.outputs=e,this.vars=n,this.directives=s,this.children=a,this.ngContentIndex=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}();e.EmbeddedTemplateAst=h;var d=function(){function t(t,e,n,s){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}();e.BoundDirectivePropertyAst=d;var f=function(){function t(t,e,n,s,a,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=s,this.exportAsVars=a,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}();e.DirectiveAst=f;var m=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}();e.NgContentAst=m,function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style"}(e.PropertyBindingType||(e.PropertyBindingType={})),e.PropertyBindingType,e.templateVisitAll=s},function(t,e){"use strict";var n=function(){function t(){}return t.prototype.get=function(t){return null},t}();e.XHR=n},,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},r=n(8),p=n(5),c=n(2),l=n(37),u=function(){function t(){this._styles=[],this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=[];t.forEach(function(t){c.SetWrapper.has(e._stylesSet,t)||(e._stylesSet.add(t),e._styles.push(t),n.push(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return this._styles},t=a([p.Injectable(),o("design:paramtypes",[])],t)}();e.SharedStylesHost=u;var h=function(t){function e(e){t.call(this),this._hostNodes=new Set,this._hostNodes.add(e.head)}return s(e,t),e.prototype._addStylesToHost=function(t,e){for(var n=0;n<t.length;n++){var s=t[n];r.DOM.appendChild(e,r.DOM.createStyleElement(s))}},e.prototype.addHost=function(t){this._addStylesToHost(this._styles,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){c.SetWrapper["delete"](this._hostNodes,t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){e._addStylesToHost(t,n)})},e=a([p.Injectable(),i(0,p.Inject(l.DOCUMENT)),o("design:paramtypes",[Object])],e)}(u);e.DomSharedStylesHost=h},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(170),r=function(){function t(t){this.el=t,this.onToggle=new o.EventEmitter,this.addClass=!0}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},set:function(t){this._isOpen=!!t,this.dropdownAppendToBody&&this.menuEl,this.isOpen?(this.dropdownMenuTemplateUrl,this.focusToggleElement(),i.dropdownService.open(this)):(this.dropdownMenuTemplateUrl,i.dropdownService.close(this),this.selectedOption=null),this.onToggle.emit(this.isOpen)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.autoClose=this.autoClose||i.ALWAYS,this.keyboardNav="undefined"!=typeof this.keyboardNav,this.dropdownAppendToBody="undefined"!=typeof this.dropdownAppendToBody,this.isOpen},t.prototype.ngOnDestroy=function(){this.dropdownAppendToBody&&this.menuEl&&this.menuEl.nativeElement.remove()},Object.defineProperty(t.prototype,"dropDownMenu",{set:function(t){this.menuEl=t.el,t.templateUrl&&(this.dropdownMenuTemplateUrl=t.templateUrl),this.dropdownAppendToBody&&window.document.body.appendChild(this.menuEl.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropDownToggle",{set:function(t){this.toggleEl=t.el},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){return this.isOpen=arguments.length?!!t:!this.isOpen},t.prototype.focusDropdownEntry=function(t){var e=this.menuEl?this.menuEl.nativeElement:this.el.nativeElement.getElementsByTagName("ul")[0];if(e){var n=e.getElementsByTagName("a");if(n&&n.length){switch(t){case 40:if("number"!=typeof this.selectedOption){this.selectedOption=0;break}if(this.selectedOption===n.length-1)break;this.selectedOption++;break;case 38:if("number"!=typeof this.selectedOption)return;if(0===this.selectedOption)break;this.selectedOption--}n[this.selectedOption].focus()}}},t.prototype.focusToggleElement=function(){this.toggleEl&&this.toggleEl.nativeElement.focus()},s([o.HostBinding("class.open"),o.Input(),a("design:type",Boolean)],t.prototype,"isOpen",null),s([o.Input(),a("design:type",String)],t.prototype,"autoClose",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"keyboardNav",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"dropdownAppendToBody",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"onToggle",void 0),s([o.HostBinding("class.dropdown"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([o.Directive({selector:"[dropdown]"}),a("design:paramtypes",[o.ElementRef])],t)}();e.Dropdown=r},,,,,,,,,,,function(t,e,n){"use strict";function s(t,e,n){return y.templateVisitAll(t,e,n),n}function a(t){for(var e=new Set,n=[],s=0;s<t.length;s+=2){var a=t[s],o=t[s+1],i=a+":"+o;m.SetWrapper.has(e,i)||(n.push(a),n.push(o),e.add(i))}return n}function o(t){for(var e={},n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function i(t){var e=[];m.StringMapWrapper.forEach(t,function(t,n){e.push([n,t])}),m.ListWrapper.sort(e,function(t,e){return f.StringWrapper.compare(t[0],e[0])});var n=[];return e.forEach(function(t){n.push(t[0]),n.push(t[1])}),n}function r(t,e,n){return t==E||t==C?e+" "+n:n}function p(t){return t instanceof O?t.value:f.isString(t)?k.escapeSingleQuoteString(t):f.isBlank(t)?"null":""+t}function c(t){var e="["+t.map(p).join(",")+"]";return f.IS_DART?"const "+e:e}function l(t){var e=t.map(function(t){return""+v.moduleRef(t.type.moduleUrl)+t.type.name}),n="["+e.join(",")+"]";return f.IS_DART?"const "+n:n}function u(t){return f.IS_DART?""+e.TEMPLATE_COMMANDS_MODULE_REF+t:""+t}var h=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},d=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0;
|
||
},f=n(1),m=n(2),g=n(52),y=n(47),v=n(27),k=n(15),_=n(5);e.TEMPLATE_COMMANDS_MODULE_REF=v.moduleRef("package:angular2/src/core/linker/template_commands"+k.MODULE_SUFFIX);var b="$implicit",E="class",C="style",T=function(){function t(){}return t.prototype.compileComponentRuntime=function(t,e,n,s){var a=new P(new w(t,s,n),0);return y.templateVisitAll(a,e),a.result},t.prototype.compileComponentCodeGen=function(t,e,n,s){var a=new P(new S(t,s,n),0);return y.templateVisitAll(a,e),new v.SourceExpression([],c(a.result))},t=h([_.Injectable(),d("design:paramtypes",[])],t)}();e.CommandCompiler=T;var w=function(){function t(t,e,n){this.component=t,this.componentTemplateFactory=e,this.changeDetectorFactories=n}return t.prototype._mapDirectives=function(t){return t.map(function(t){return t.type.runtime})},t.prototype.createText=function(t,e,n){return new g.TextCmd(t,e,n)},t.prototype.createNgContent=function(t,e){return new g.NgContentCmd(t,e)},t.prototype.createBeginElement=function(t,e,n,s,a,o,i){return new g.BeginElementCmd(t,e,n,s,this._mapDirectives(a),o,i)},t.prototype.createEndElement=function(){return new g.EndElementCmd},t.prototype.createBeginComponent=function(t,e,n,s,a,o,i){var r=this.componentTemplateFactory(a[0]);return new g.BeginComponentCmd(t,e,n,s,this._mapDirectives(a),o,i,r)},t.prototype.createEndComponent=function(){return new g.EndComponentCmd},t.prototype.createEmbeddedTemplate=function(t,e,n,s,a,o,i){return new g.EmbeddedTemplateCmd(e,n,this._mapDirectives(s),a,o,this.changeDetectorFactories[t],i)},t}(),S=function(){function t(t,e,n){this.component=t,this.componentTemplateFactory=e,this.changeDetectorFactoryExpressions=n}return t.prototype.createText=function(t,n,s){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"TextCmd")+"("+k.escapeSingleQuoteString(t)+", "+n+", "+s+")")},t.prototype.createNgContent=function(t,n){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"NgContentCmd")+"("+t+", "+n+")")},t.prototype.createBeginElement=function(t,n,s,a,o,i,r){var p=c(n);return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"BeginElementCmd")+"("+k.escapeSingleQuoteString(t)+", "+p+", "+(c(s)+", "+c(a)+", "+l(o)+", "+i+", "+r+")"))},t.prototype.createEndElement=function(){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EndElementCmd")+"()")},t.prototype.createBeginComponent=function(t,n,s,a,o,i,r){var p=c(n);return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"BeginComponentCmd")+"("+k.escapeSingleQuoteString(t)+", "+p+", "+(c(s)+", "+c(a)+", "+l(o)+", "+u(i)+", "+r+", "+this.componentTemplateFactory(o[0])+")"))},t.prototype.createEndComponent=function(){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EndComponentCmd")+"()")},t.prototype.createEmbeddedTemplate=function(t,n,s,a,o,i,r){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EmbeddedTemplateCmd")+"("+c(n)+", "+c(s)+", "+(l(a)+", "+o+", "+i+", "+this.changeDetectorFactoryExpressions[t]+", "+c(r)+")"))},t}(),P=function(){function t(t,e){this.commandFactory=t,this.embeddedTemplateIndex=e,this.result=[],this.transitiveNgContentCount=0}return t.prototype._readAttrNameAndValues=function(t,e){var n=o(s(this,e,[]));return t.forEach(function(t){m.StringMapWrapper.forEach(t.hostAttributes,function(t,e){var s=n[e];n[e]=f.isPresent(s)?r(e,s,t):t})}),i(n)},t.prototype.visitNgContent=function(t,e){return this.transitiveNgContentCount++,this.result.push(this.commandFactory.createNgContent(t.index,t.ngContentIndex)),null},t.prototype.visitEmbeddedTemplate=function(e,n){var s=this;this.embeddedTemplateIndex++;var a=new t(this.commandFactory,this.embeddedTemplateIndex);y.templateVisitAll(a,e.children);var o=a.transitiveNgContentCount>0,i=[];e.vars.forEach(function(t){i.push(t.name),i.push(t.value.length>0?t.value:b)});var r=[];return m.ListWrapper.forEachWithIndex(e.directives,function(t,e){t.visit(s,new R(e,[],[],r))}),this.result.push(this.commandFactory.createEmbeddedTemplate(this.embeddedTemplateIndex,this._readAttrNameAndValues(r,e.attrs),i,r,o,e.ngContentIndex,a.result)),this.transitiveNgContentCount+=a.transitiveNgContentCount,this.embeddedTemplateIndex=a.embeddedTemplateIndex,null},t.prototype.visitElement=function(t,e){var n=this,o=t.getComponent(),i=s(this,t.outputs,[]),r=[];f.isBlank(o)&&t.exportAsVars.forEach(function(t){r.push(t.name),r.push(null)});var p=[];m.ListWrapper.forEachWithIndex(t.directives,function(t,e){t.visit(n,new R(e,i,r,p))}),i=a(i);var c=this._readAttrNameAndValues(p,t.attrs);return f.isPresent(o)?(this.result.push(this.commandFactory.createBeginComponent(t.name,c,i,r,p,o.template.encapsulation,t.ngContentIndex)),y.templateVisitAll(this,t.children),this.result.push(this.commandFactory.createEndComponent())):(this.result.push(this.commandFactory.createBeginElement(t.name,c,i,r,p,t.isBound(),t.ngContentIndex)),y.templateVisitAll(this,t.children),this.result.push(this.commandFactory.createEndElement())),null},t.prototype.visitVariable=function(t,e){return null},t.prototype.visitAttr=function(t,e){return e.push(t.name),e.push(t.value),null},t.prototype.visitBoundText=function(t,e){return this.result.push(this.commandFactory.createText(null,!0,t.ngContentIndex)),null},t.prototype.visitText=function(t,e){return this.result.push(this.commandFactory.createText(t.value,!1,t.ngContentIndex)),null},t.prototype.visitDirective=function(t,e){return e.targetDirectives.push(t.directive),y.templateVisitAll(this,t.hostEvents,e.eventTargetAndNames),t.exportAsVars.forEach(function(t){e.targetVariableNameAndValues.push(t.name),e.targetVariableNameAndValues.push(e.index)}),null},t.prototype.visitEvent=function(t,e){return e.push(t.target),e.push(t.name),null},t.prototype.visitDirectiveProperty=function(t,e){return null},t.prototype.visitElementProperty=function(t,e){return null},t}(),R=function(){function t(t,e,n,s){this.index=t,this.eventTargetAndNames=e,this.targetVariableNameAndValues=n,this.targetDirectives=s}return t}(),O=function(){function t(t){this.value=t}return t}()},function(t,e,n){"use strict";function s(t,e,n){void 0===n&&(n=null);var s=[];return e.forEach(function(e){var o=e.visit(t,n);a.isPresent(o)&&s.push(o)}),s}var a=n(1),o=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.HtmlTextAst=o;var i=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}();e.HtmlAttrAst=i;var r=function(){function t(t,e,n,s){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}();e.HtmlElementAst=r,e.htmlVisitAll=s},function(t,e,n){"use strict";function s(t,e){return p.isPresent(t)?"@"+t+":"+e:e}function a(t,e,n){return p.isBlank(t)&&(t=f.getHtmlTagDefinition(e).implicitNamespacePrefix,p.isBlank(t)&&p.isPresent(n)&&(t=f.getNsPrefix(n.name))),s(t,e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=n(1),c=n(2),l=n(72),u=n(5),h=n(186),d=n(74),f=n(26),m=function(t){function e(e,n,s){t.call(this,n,s),this.elementName=e}return o(e,t),e.create=function(t,n,s){return new e(t,n,s)},e}(d.ParseError);e.HtmlTreeError=m;var g=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}();e.HtmlParseTreeResult=g;var y=function(){function t(){}return t.prototype.parse=function(t,e){var n=h.tokenizeHtml(t,e),s=new v(n.tokens).build();return new g(s.rootNodes,n.errors.concat(s.errors))},t=i([u.Injectable(),r("design:paramtypes",[])],t)}();e.HtmlParser=y;var v=function(){function t(t){this.tokens=t,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return t.prototype.build=function(){for(;this.peek.type!==h.HtmlTokenType.EOF;)this.peek.type===h.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===h.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===h.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===h.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===h.HtmlTokenType.TEXT||this.peek.type===h.HtmlTokenType.RAW_TEXT||this.peek.type===h.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._advance();return new g(this.rootNodes,this.errors)},t.prototype._advance=function(){var t=this.peek;return this.index<this.tokens.length-1&&this.index++,this.peek=this.tokens[this.index],t},t.prototype._advanceIf=function(t){return this.peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(h.HtmlTokenType.CDATA_END)},t.prototype._consumeComment=function(t){this._advanceIf(h.HtmlTokenType.RAW_TEXT),this._advanceIf(h.HtmlTokenType.COMMENT_END)},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();p.isPresent(n)&&0==n.children.length&&f.getHtmlTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new l.HtmlTextAst(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var t=c.ListWrapper.last(this.elementStack);f.getHtmlTagDefinition(t.name).isVoid&&this.elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],s=[];this.peek.type===h.HtmlTokenType.ATTR_NAME;)s.push(this._consumeAttr(this._advance()));var o=a(e,n,this._getParentElement()),i=!1;this.peek.type===h.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),i=!0,null!=f.getNsPrefix(o)||f.getHtmlTagDefinition(o).isVoid||this.errors.push(m.create(o,t.sourceSpan.start,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))):this.peek.type===h.HtmlTokenType.TAG_OPEN_END&&(this._advance(),i=!1);var r=this.peek.sourceSpan.start,p=new l.HtmlElementAst(o,s,[],new d.ParseSourceSpan(t.sourceSpan.start,r));this._pushElement(p),i&&this._popElement(o)},t.prototype._pushElement=function(t){if(this.elementStack.length>0){var e=c.ListWrapper.last(this.elementStack);f.getHtmlTagDefinition(e.name).isClosedByChild(t.name)&&this.elementStack.pop()}var n=f.getHtmlTagDefinition(t.name),e=this._getParentElement();if(n.requireExtraParent(p.isPresent(e)?e.name:null)){var s=new l.HtmlElementAst(n.parentToAdd,[],[t],t.sourceSpan);this._addToParent(s),this.elementStack.push(s),this.elementStack.push(t)}else this._addToParent(t),this.elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=a(t.parts[0],t.parts[1],this._getParentElement());f.getHtmlTagDefinition(e).isVoid?this.errors.push(m.create(e,t.sourceSpan.start,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this.errors.push(m.create(e,t.sourceSpan.start,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this.elementStack.length-1;e>=0;e--){var n=this.elementStack[e];if(n.name==t)return c.ListWrapper.splice(this.elementStack,e,this.elementStack.length-e),!0;if(!f.getHtmlTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=s(t.parts[0],t.parts[1]),n=t.sourceSpan.end,a="";if(this.peek.type===h.HtmlTokenType.ATTR_VALUE){var o=this._advance();a=o.parts[0],n=o.sourceSpan.end}return new l.HtmlAttrAst(e,a,new d.ParseSourceSpan(t.sourceSpan.start,n))},t.prototype._getParentElement=function(){return this.elementStack.length>0?c.ListWrapper.last(this.elementStack):null},t.prototype._addToParent=function(t){var e=this._getParentElement();p.isPresent(e)?e.children.push(t):this.rootNodes.push(t)},t}()},function(t,e){"use strict";var n=function(){function t(t,e,n,s){this.file=t,this.offset=e,this.line=n,this.col=s}return t.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},t}();e.ParseLocation=n;var s=function(){function t(t,e){this.content=t,this.url=e}return t}();e.ParseSourceFile=s;var a=function(){function t(t,e){this.location=t,this.msg=e}return t.prototype.toString=function(){var t=this.location.file.content,e=this.location.offset;e>t.length-1&&(e=t.length-1);for(var n=e,s=0,a=0;100>s&&e>0&&(e--,s++,"\n"!=t[e]||3!=++a););for(s=0,a=0;100>s&&n<t.length-1&&(n++,s++,"\n"!=t[n]||3!=++a););var o=t.substring(e,this.location.offset)+"[ERROR ->]"+t.substring(this.location.offset,n+1);return this.msg+' ("'+o+'"): '+this.location},t}();e.ParseError=a;var o=function(){function t(t,e){this.start=t,this.end=e}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();e.ParseSourceSpan=o},function(t,e){"use strict";var n=function(){function t(){}return t.prototype.hasProperty=function(t,e){return!0},t.prototype.getMappedPropName=function(t){return t},t}();e.ElementSchemaRegistry=n},function(t,e,n){"use strict";function s(t){if(o.isBlank(t)||0===t.length||"/"==t[0])return!1;var e=o.RegExpWrapper.firstMatch(p,t);return o.isBlank(e)||"package"==e[1]||"asset"==e[1]}function a(t,e,n){var a=[],p=o.StringWrapper.replaceAllMapped(n,r,function(n){var i=o.isPresent(n[1])?n[1]:n[2];return s(i)?(a.push(t.resolve(e,i)),""):n[0]});return new i(p,a)}var o=n(1),i=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}();e.StyleWithImports=i,e.isStyleUrlResolvable=s,e.extractStyleUrls=a;var r=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,p=/^([a-zA-Z\-\+\.]+):/g},function(t,e,n){"use strict";function s(t){if(!t.isComponent)throw new d.BaseException("Could not compile '"+t.type.name+"' because it is not a component.")}function a(t){return t.name+"Template"}function o(t){return a(t)+"Getter"}function i(t){var e=t.substring(0,t.length-P.MODULE_SUFFIX.length);return e+".template"+P.MODULE_SUFFIX}function r(t,e){for(var n=0;n<t.length;n++)e.push(t[n])}function p(t){return""+k.moduleRef(i(t.type.moduleUrl))+o(t.type)}function c(t){var e=[];return t.forEach(function(t){var n=e.filter(function(e){return e.type.name==t.type.name&&e.type.moduleUrl==t.type.moduleUrl&&e.type.runtime==t.type.runtime}).length>0;n||e.push(t)}),e}var l=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},h=n(1),d=n(4),f=n(2),m=n(6),g=n(52),y=n(46),v=n(5),k=n(27),_=n(119),b=n(123),E=n(71),C=n(78),T=n(124),w=n(121),S=n(71),P=n(15),R=function(){function t(t,e,n,s,a,o){this._runtimeMetadataResolver=t,this._templateNormalizer=e,this._templateParser=n,this._styleCompiler=s,this._commandCompiler=a,this._cdCompiler=o,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map,this._nextTemplateId=0}return t.prototype.normalizeDirectiveMetadata=function(t){return t.isComponent?this._templateNormalizer.normalizeTemplate(t.type,t.template).then(function(e){return new y.CompileDirectiveMetadata({type:t.type,isComponent:t.isComponent,dynamicLoadable:t.dynamicLoadable,selector:t.selector,exportAs:t.exportAs,changeDetection:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,lifecycleHooks:t.lifecycleHooks,template:e})}):m.PromiseWrapper.resolve(t)},t.prototype.compileHostComponentRuntime=function(t){var e=this._hostCacheKeys.get(t);if(h.isBlank(e)){e=new Object,this._hostCacheKeys.set(t,e);var n=this._runtimeMetadataResolver.getMetadata(t);s(n);var a=y.createHostComponentMeta(n.type,n.selector);this._compileComponentRuntime(e,a,[n],new Set)}return this._compiledTemplateDone.get(e).then(function(t){return new g.CompiledHostTemplate(t)})},t.prototype.clearCache=function(){this._hostCacheKeys.clear(),this._styleCompiler.clearCache(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear()},t.prototype._compileComponentRuntime=function(t,e,n,s){var a=this,o=c(n),i=this._compiledTemplateCache.get(t),r=this._compiledTemplateDone.get(t);if(h.isBlank(i)){var p,l=[],u=[],d=h.stringify(e.type.runtime)+"Template"+this._nextTemplateId++;i=new g.CompiledComponentTemplate(d,function(t){return p(t)},u,l),this._compiledTemplateCache.set(t,i),s.add(t),r=m.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(e.template)].concat(o.map(function(t){return a.normalizeDirectiveMetadata(t)}))).then(function(t){var n=[],o=t.slice(1),i=a._templateParser.parse(e.template.template,o,e.type.name),r=a._cdCompiler.compileComponentRuntime(e.type,e.changeDetection,i);p=r[0];var c=t[0];c.forEach(function(t){return l.push(t)});var h=a._compileCommandsRuntime(e,i,r,s,n);return h.forEach(function(t){return u.push(t)}),m.PromiseWrapper.all(n)}).then(function(e){return f.SetWrapper["delete"](s,t),i}),this._compiledTemplateDone.set(t,r)}return i},t.prototype._compileCommandsRuntime=function(t,e,n,s,a){var o=this,i=this._commandCompiler.compileComponentRuntime(t,e,n,function(t){var e=t.type.runtime,n=o._runtimeMetadataResolver.getViewDirectivesMetadata(t.type.runtime),i=f.SetWrapper.has(s,e),r=o._compileComponentRuntime(e,t,n,s);return i||a.push(o._compiledTemplateDone.get(e)),function(){return r}});return i.forEach(function(t){t instanceof g.BeginComponentCmd&&t.templateGetter()}),i},t.prototype.compileTemplatesCodeGen=function(t){var e=this;if(0===t.length)throw new d.BaseException("No components given");var n=[],r=[],p=[];t.forEach(function(t){var a=t.component;if(s(a),p.push(a),e._processTemplateCodeGen(a,t.directives,n,r),a.dynamicLoadable){var o=y.createHostComponentMeta(a.type,a.selector);p.push(o),e._processTemplateCodeGen(o,[a],n,r)}}),f.ListWrapper.forEachWithIndex(p,function(t,e){var s,i=t.type.moduleUrl+"|"+t.type.name,p=h.IS_DART?"const":"new",c=p+" "+S.TEMPLATE_COMMANDS_MODULE_REF+"CompiledComponentTemplate('"+i+"',"+r[e].join(",")+")";s=t.type.isHost?p+" "+S.TEMPLATE_COMMANDS_MODULE_REF+"CompiledHostTemplate("+c+")":c;var l=a(t.type);n.push(""+P.codeGenExportVariable(l)+s+";"),n.push(P.codeGenValueFn([],l,o(t.type))+";")});var c=t[0].component.type.moduleUrl;return new k.SourceModule(""+i(c),n.join("\n"))},t.prototype.compileStylesheetCodeGen=function(t,e){return this._styleCompiler.compileStylesheetCodeGen(t,e)},t.prototype._processTemplateCodeGen=function(t,e,n,s){var a=c(e),o=this._styleCompiler.compileComponentCodeGen(t.template),i=this._templateParser.parse(t.template.template,a,t.type.name),l=this._cdCompiler.compileComponentCodeGen(t.type,t.changeDetection,i),u=this._commandCompiler.compileComponentCodeGen(t,i,l.expressions,p);r(o.declarations,n),r(l.declarations,n),r(u.declarations,n),s.push([l.expressions[0],u.expression,o.expression])},t=l([v.Injectable(),u("design:paramtypes",[w.RuntimeMetadataResolver,T.TemplateNormalizer,C.TemplateParser,b.StyleCompiler,E.CommandCompiler,_.ChangeDetectionCompiler])],t)}();e.TemplateCompiler=R;var O=function(){function t(t,e){this.component=t,this.directives=e}return t}();e.NormalizedComponentWithViewDirectives=O},function(t,e,n){"use strict";function s(t){return l.StringWrapper.split(t.trim(),/\s+/g)}function a(t,e){var n=new k.CssSelector,a=g.splitNsName(t)[1];n.setElement(a);for(var o=0;o<e.length;o++){var i=e[o][0],r=g.splitNsName(i)[1],p=e[o][1];if(n.addAttribute(r,p),i.toLowerCase()==O){var c=s(p);c.forEach(function(t){return n.addClassName(t)})}}return n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},c=n(2),l=n(1),u=n(3),h=n(1),d=n(4),f=n(10),m=n(73),g=n(26),y=n(74),v=n(47),k=n(122),_=n(75),b=n(125),E=n(76),C=n(72),T=n(15),w=/^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,S="template",P="template",R="*",O="class",A=".",D="attr",x="class",M="style",I=k.CssSelector.parse("*")[0];e.TEMPLATE_TRANSFORMS=h.CONST_EXPR(new u.OpaqueToken("TemplateTransforms"));var N=function(t){function e(e,n){t.call(this,n,e)}return o(e,t),e}(y.ParseError);e.TemplateParseError=N;var B=function(){function t(t,e,n,s){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=n,this.transforms=s}return t.prototype.parse=function(t,e,n){var s=new L(e,this._exprParser,this._schemaRegistry),a=this._htmlParser.parse(t,n),o=C.htmlVisitAll(s,a.rootNodes,F),i=a.errors.concat(s.errors);if(i.length>0){var r=i.join("\n");throw new d.BaseException("Template parse errors:\n"+r)}return l.isPresent(this.transforms)&&this.transforms.forEach(function(t){o=v.templateVisitAll(t,o)}),o},t=i([u.Injectable(),p(3,u.Optional()),p(3,u.Inject(e.TEMPLATE_TRANSFORMS)),r("design:paramtypes",[f.Parser,_.ElementSchemaRegistry,m.HtmlParser,Array])],t)}();e.TemplateParser=B;var L=function(){function t(t,e,n){var s=this;this._exprParser=e,this._schemaRegistry=n,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new k.SelectorMatcher,c.ListWrapper.forEachWithIndex(t,function(t,e){var n=k.CssSelector.parse(t.selector);s.selectorMatcher.addSelectables(n,t),s.directivesIndex.set(t,e)})}return t.prototype._reportError=function(t,e){this.errors.push(new N(t,e.start))},t.prototype._parseInterpolation=function(t,e){var n=e.start.toString();try{return this._exprParser.parseInterpolation(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{return this._exprParser.parseAction(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseBinding=function(t,e){var n=e.start.toString();try{return this._exprParser.parseBinding(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseTemplateBindings=function(t,e){var n=e.start.toString();try{return this._exprParser.parseTemplateBindings(t,n)}catch(s){return this._reportError(""+s,e),[]}},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(I),s=this._parseInterpolation(t.value,t.sourceSpan);return l.isPresent(s)?new v.BoundTextAst(s,n,t.sourceSpan):new v.TextAst(t.value,n,t.sourceSpan)},t.prototype.visitAttr=function(t,e){return new v.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this,s=t.name,o=b.preparseElement(t);if(o.type===b.PreparsedElementType.SCRIPT||o.type===b.PreparsedElementType.STYLE)return null;if(o.type===b.PreparsedElementType.STYLESHEET&&E.isStyleUrlResolvable(o.hrefAttr))return null;var i=[],r=[],p=[],c=[],u=[],h=[],d=[],f=!1,m=[];t.attrs.forEach(function(t){i.push([t.name,t.value]);var e=n._parseAttr(t,i,r,c,p),s=n._parseInlineTemplateBinding(t,d,u,h);e||s||m.push(n.visitAttr(t,null)),s&&(f=!0)});var y,k=g.splitNsName(s.toLowerCase())[1],_=k==S,T=a(s,i),w=this._createDirectiveAsts(t.name,this._parseDirectives(this.selectorMatcher,T),r,_?[]:p,t.sourceSpan),P=this._createElementPropertyAsts(t.name,r,w),R=C.htmlVisitAll(o.nonBindable?V:this,t.children,H.create(w)),O=f?null:e.findNgContentIndex(T);if(o.type===b.PreparsedElementType.NG_CONTENT)l.isPresent(t.children)&&t.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",t.sourceSpan),y=new v.NgContentAst(this.ngContentCount++,O,t.sourceSpan);else if(_)this._assertAllEventsPublishedByDirectives(w,c),this._assertNoComponentsNorElementBindingsOnTemplate(w,P,t.sourceSpan),y=new v.EmbeddedTemplateAst(m,c,p,w,R,O,t.sourceSpan);else{this._assertOnlyOneComponent(w,t.sourceSpan);var A=p.filter(function(t){return 0===t.value.length});y=new v.ElementAst(s,m,P,c,A,w,R,O,t.sourceSpan)}if(f){var D=a(S,d),x=this._createDirectiveAsts(t.name,this._parseDirectives(this.selectorMatcher,D),u,[],t.sourceSpan),M=this._createElementPropertyAsts(t.name,u,x);this._assertNoComponentsNorElementBindingsOnTemplate(x,M,t.sourceSpan),y=new v.EmbeddedTemplateAst([],[],h,x,[y],e.findNgContentIndex(D),t.sourceSpan)}return y},t.prototype._parseInlineTemplateBinding=function(t,e,n,s){var a=null;if(t.name==P)a=t.value;else if(t.name.startsWith(R)){var o=t.name.substring(R.length);a=0==t.value.length?o:o+" "+t.value}if(l.isPresent(a)){for(var i=this._parseTemplateBindings(a,t.sourceSpan),r=0;r<i.length;r++){var p=i[r];p.keyIsVar?(s.push(new v.VariableAst(p.key,p.name,t.sourceSpan)),e.push([p.key,p.name])):l.isPresent(p.expression)?this._parsePropertyAst(p.key,p.expression,t.sourceSpan,e,n):(e.push([p.key,""]),this._parseLiteralAttr(p.key,null,t.sourceSpan,n))}return!0}return!1},t.prototype._parseAttr=function(t,e,n,s,a){var o=this._normalizeAttributeName(t.name),i=t.value,r=l.RegExpWrapper.firstMatch(w,o),p=!1;if(l.isPresent(r))if(p=!0,l.isPresent(r[1]))this._parseProperty(r[5],i,t.sourceSpan,e,n);else if(l.isPresent(r[2])){var c=r[5];this._parseVariable(c,i,t.sourceSpan,a)}else l.isPresent(r[3])?this._parseEvent(r[5],i,t.sourceSpan,e,s):l.isPresent(r[4])?(this._parseProperty(r[5],i,t.sourceSpan,e,n),this._parseAssignmentEvent(r[5],i,t.sourceSpan,e,s)):l.isPresent(r[6])?(this._parseProperty(r[6],i,t.sourceSpan,e,n),this._parseAssignmentEvent(r[6],i,t.sourceSpan,e,s)):l.isPresent(r[7])?this._parseProperty(r[7],i,t.sourceSpan,e,n):l.isPresent(r[8])&&this._parseEvent(r[8],i,t.sourceSpan,e,s);else p=this._parsePropertyInterpolation(o,i,t.sourceSpan,e,n);return p||this._parseLiteralAttr(o,i,t.sourceSpan,n),p},t.prototype._normalizeAttributeName=function(t){return t.toLowerCase().startsWith("data-")?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,s){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),s.push(new v.VariableAst(t,e,n))},t.prototype._parseProperty=function(t,e,n,s,a){this._parsePropertyAst(t,this._parseBinding(e,n),n,s,a)},t.prototype._parsePropertyInterpolation=function(t,e,n,s,a){var o=this._parseInterpolation(e,n);return l.isPresent(o)?(this._parsePropertyAst(t,o,n,s,a),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,s,a){s.push([t,e.source]),a.push(new U(t,e,!1,n))},t.prototype._parseAssignmentEvent=function(t,e,n,s,a){this._parseEvent(t+"Change",e+"=$event",n,s,a)},t.prototype._parseEvent=function(t,e,n,s,a){var o=T.splitAtColon(t,[null,t]),i=o[0],r=o[1];a.push(new v.BoundEventAst(r,i,this._parseAction(e,n),n))},t.prototype._parseLiteralAttr=function(t,e,n,s){s.push(new U(t,this._exprParser.wrapLiteralPrimitive(e,""),!0,n))},t.prototype._parseDirectives=function(t,e){var n=this,s=[];return t.match(e,function(t,e){s.push(e)}),c.ListWrapper.sort(s,function(t,e){var s=t.isComponent,a=e.isComponent;return s&&!a?-1:!s&&a?1:n.directivesIndex.get(t)-n.directivesIndex.get(e)}),s},t.prototype._createDirectiveAsts=function(t,e,n,s,a){var o=this,i=new Set,r=e.map(function(e){var r=[],p=[],c=[];o._createDirectiveHostPropertyAsts(t,e.hostProperties,a,r),o._createDirectiveHostEventAsts(e.hostListeners,a,p),o._createDirectivePropertyAsts(e.inputs,n,c);var l=[];return s.forEach(function(t){(0===t.value.length&&e.isComponent||e.exportAs==t.value)&&(l.push(t),i.add(t.name))}),new v.DirectiveAst(e,c,r,p,l,a)});return s.forEach(function(t){t.value.length>0&&!c.SetWrapper.has(i,t.name)&&o._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan)}),r},t.prototype._createDirectiveHostPropertyAsts=function(t,e,n,s){var a=this;l.isPresent(e)&&c.StringMapWrapper.forEach(e,function(e,o){var i=a._parseBinding(e,n);s.push(a._createElementPropertyAst(t,o,i,n))})},t.prototype._createDirectiveHostEventAsts=function(t,e,n){var s=this;l.isPresent(t)&&c.StringMapWrapper.forEach(t,function(t,a){s._parseEvent(a,t,e,[],n)})},t.prototype._createDirectivePropertyAsts=function(t,e,n){if(l.isPresent(t)){var s=new Map;e.forEach(function(t){var e=s.get(t.name);(l.isBlank(e)||e.isLiteral)&&s.set(t.name,t)}),c.StringMapWrapper.forEach(t,function(t,e){var a=s.get(t);l.isPresent(a)&&n.push(new v.BoundDirectivePropertyAst(e,a.name,a.expression,a.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var s=this,a=[],o=new Map;return n.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){!e.isLiteral&&l.isBlank(o.get(e.name))&&a.push(s._createElementPropertyAst(t,e.name,e.expression,e.sourceSpan))}),a},t.prototype._createElementPropertyAst=function(t,e,n,s){var a,o,i=null,r=e.split(A);return 1===r.length?(o=this._schemaRegistry.getMappedPropName(r[0]),a=v.PropertyBindingType.Property,this._schemaRegistry.hasProperty(t,o)||this._reportError("Can't bind to '"+o+"' since it isn't a known native property",s)):r[0]==D?(o=r[1],a=v.PropertyBindingType.Attribute):r[0]==x?(o=r[1],a=v.PropertyBindingType.Class):r[0]==M?(i=r.length>2?r[2]:null,o=r[1],a=v.PropertyBindingType.Style):(this._reportError("Invalid property name '"+e+"'",s),a=null),new v.BoundElementPropertyAst(o,a,n,i,s)},t.prototype._findComponentDirectiveNames=function(t){var e=[];return t.forEach(function(t){var n=t.directive.type.name;t.directive.isComponent&&e.push(n)}),e},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component: "+n.join(","),e)},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var s=this,a=this._findComponentDirectiveNames(t);a.length>0&&this._reportError("Components on an embedded template: "+a.join(","),n),e.forEach(function(t){s._reportError("Property binding "+t.name+" not used by any directive on an embedded template",n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,s=new Set;t.forEach(function(t){c.StringMapWrapper.forEach(t.directive.outputs,function(t,e){s.add(t)})}),e.forEach(function(t){(l.isPresent(t.target)||!c.SetWrapper.has(s,t.name))&&n._reportError("Event binding "+t.fullName+" not emitted by any directive on an embedded template",t.sourceSpan)})},t}(),j=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=b.preparseElement(t);if(n.type===b.PreparsedElementType.SCRIPT||n.type===b.PreparsedElementType.STYLE||n.type===b.PreparsedElementType.STYLESHEET)return null;var s=t.attrs.map(function(t){return[t.name,t.value]}),o=a(t.name,s),i=e.findNgContentIndex(o),r=C.htmlVisitAll(this,t.children,F);return new v.ElementAst(t.name,C.htmlVisitAll(this,t.attrs),[],[],[],[],r,i,t.sourceSpan)},t.prototype.visitAttr=function(t,e){return new v.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(I);
|
||
return new v.TextAst(t.value,n,t.sourceSpan)},t}(),U=function(){function t(t,e,n,s){this.name=t,this.expression=e,this.isLiteral=n,this.sourceSpan=s}return t}();e.splitClasses=s;var H=function(){function t(t,e){this.ngContentIndexMatcher=t,this.wildcardNgContentIndex=e}return t.create=function(e){if(0===e.length||!e[0].directive.isComponent)return F;for(var n=new k.SelectorMatcher,s=e[0].directive.template.ngContentSelectors,a=null,o=0;o<s.length;o++){var i=s[o];l.StringWrapper.equals(i,"*")?a=o:n.addSelectables(k.CssSelector.parse(s[o]),o)}return new t(n,a)},t.prototype.findNgContentIndex=function(t){var e=[];return this.ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),c.ListWrapper.sort(e),l.isPresent(this.wildcardNgContentIndex)&&e.push(this.wildcardNgContentIndex),e.length>0?e[0]:null},t}(),F=new H(new k.SelectorMatcher,null),V=new j},,,,,,,,,,,,,,,,,,,function(t,e,n){var s=n(40),a=function(){function t(t,e,n){this.uploader=t,this.some=e,this.options=n,this.alias="file",this.url="/",this.method="POST",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=null,this.file=new s.FileLikeObject(e),this._file=e,this.url=t.url}return t.prototype.upload=function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,[]),this.uploader._onErrorItem(this,"",0,[])}},t.prototype.cancel=function(){this.uploader.cancelItem(this)},t.prototype.remove=function(){this.uploader.removeFromQueue(this)},t.prototype.onBeforeUpload=function(){},t.prototype.onProgress=function(t){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.onCancel=function(t,e,n){},t.prototype.onComplete=function(t,e,n){},t.prototype._onBeforeUpload=function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()},t.prototype._onProgress=function(t){this.progress=t,this.onProgress(t)},t.prototype._onSuccess=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=null,this.onSuccess(t,e,n)},t.prototype._onError=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=null,this.onError(t,e,n)},t.prototype._onCancel=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=null,this.onCancel(t,e,n)},t.prototype._onComplete=function(t,e,n){this.onComplete(t,e,n),this.uploader.removeAfterUpload&&this.remove()},t.prototype._prepareToUploading=function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0},t}();e.FileItem=a},function(t,e,n){function s(t){return File&&t instanceof File}var a=n(40),o=n(97),i=function(){function t(t){this.options=t,this.isUploading=!1,this.queue=[],this.progress=0,this.autoUpload=!1,this.isHTML5=!0,this.removeAfterUpload=!1,this._nextIndex=0,this.filters=[],this.url=t.url,this.authToken=t.authToken,this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return t.prototype.addToQueue=function(t,e,n){for(var s=this,i=[],r=0;r<t.length;r++){var p=t[r];i.push(p)}var c=this._getFilters(n),l=this.queue.length,u=[];i.map(function(t){var n=new a.FileLikeObject(t);if(s._isValidFile(n,[],e)){var i=new o.FileItem(s,t,e);u.push(i),s.queue.push(i),s._onAfterAddingFile(i)}else{var r=c[s._failFilterIndex];s._onWhenAddingFileFailed(n,r,e)}}),this.queue.length!==l&&(this._onAfterAddingAll(u),this.progress=this._getTotalProgress()),this._render(),this.autoUpload&&this.uploadAll()},t.prototype.removeFromQueue=function(t){var e=this.getIndexOfItem(t),n=this.queue[e];n.isUploading&&n.cancel(),this.queue.splice(e,1),this.progress=this._getTotalProgress()},t.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},t.prototype.uploadItem=function(t){var e=this.getIndexOfItem(t),n=this.queue[e],s=this.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),this.isUploading||(this.isUploading=!0,this[s](n))},t.prototype.cancelItem=function(t){var e=this.getIndexOfItem(t),n=this.queue[e],s=this.isHTML5?"_xhr":"_form";n&&n.isUploading&&n[s].abort()},t.prototype.uploadAll=function(){var t=this.getNotUploadedItems().filter(function(t){return!t.isUploading});t.length&&(t.map(function(t){return t._prepareToUploading()}),t[0].upload())},t.prototype.cancelAll=function(){var t=this.getNotUploadedItems();t.map(function(t){return t.cancel()})},t.prototype.isFile=function(t){return s(t)},t.prototype.isFileLikeObject=function(t){return t instanceof a.FileLikeObject},t.prototype.getIndexOfItem=function(t){return"number"==typeof t?t:this.queue.indexOf(t)},t.prototype.getNotUploadedItems=function(){return this.queue.filter(function(t){return!t.isUploaded})},t.prototype.getReadyItems=function(){return this.queue.filter(function(t){return t.isReady&&!t.isUploading}).sort(function(t,e){return t.index-e.index})},t.prototype.destroy=function(){},t.prototype.onAfterAddingAll=function(t){},t.prototype.onAfterAddingFile=function(t){},t.prototype.onWhenAddingFileFailed=function(t,e,n){},t.prototype.onBeforeUploadItem=function(t){},t.prototype.onProgressItem=function(t,e){},t.prototype.onProgressAll=function(t){},t.prototype.onSuccessItem=function(t,e,n,s){},t.prototype.onErrorItem=function(t,e,n,s){},t.prototype.onCancelItem=function(t,e,n,s){},t.prototype.onCompleteItem=function(t,e,n,s){},t.prototype.onCompleteAll=function(){},t.prototype._getTotalProgress=function(t){if(void 0===t&&(t=0),this.removeAfterUpload)return t;var e=this.getNotUploadedItems().length,n=e?this.queue.length-e:this.queue.length,s=100/this.queue.length,a=t*s/100;return Math.round(n*s+a)},t.prototype._getFilters=function(t){if(!t)return this.filters;if(Array.isArray(t))return t;var e=t.match(/[^\s,]+/g);return this.filters.filter(function(t){return-1!==e.indexOf(t.name)})},t.prototype._render=function(){},t.prototype._folderFilter=function(t){return!(!t.size&&!t.type)},t.prototype._queueLimitFilter=function(){return this.queue.length<this.queueLimit},t.prototype._isValidFile=function(t,e,n){var s=this;return this._failFilterIndex=-1,e.length?e.every(function(e){return s._failFilterIndex++,e.fn.call(s,t,n)}):!0},t.prototype._isSuccessCode=function(t){return t>=200&&300>t||304===t},t.prototype._transformResponse=function(t,e){return t},t.prototype._parseHeaders=function(t){var e,n,s,a={};return t?(t.split("\n").map(function(t){s=t.indexOf(":"),e=t.slice(0,s).trim().toLowerCase(),n=t.slice(s+1).trim(),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a},t.prototype._headersGetter=function(t){return function(e){return e?t[e.toLowerCase()]||null:t}},t.prototype._xhrTransport=function(t){var e=this,n=t._xhr=new XMLHttpRequest,s=new FormData;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");s.append(t.alias,t._file,t.file.name),n.upload.onprogress=function(n){var s=Math.round(n.lengthComputable?100*n.loaded/n.total:0);e._onProgressItem(t,s)},n.onload=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s),o=e._isSuccessCode(n.status)?"Success":"Error",i="_on"+o+"Item";e[i](t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.onerror=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s);e._onErrorItem(t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.onabort=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s);e._onCancelItem(t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.open(t.method,t.url,!0),n.withCredentials=t.withCredentials,this.authToken&&n.setRequestHeader("Authorization",this.authToken),n.send(s),this._render()},t.prototype._iframeTransport=function(t){},t.prototype._onWhenAddingFileFailed=function(t,e,n){this.onWhenAddingFileFailed(t,e,n)},t.prototype._onAfterAddingFile=function(t){this.onAfterAddingFile(t)},t.prototype._onAfterAddingAll=function(t){this.onAfterAddingAll(t)},t.prototype._onBeforeUploadItem=function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)},t.prototype._onProgressItem=function(t,e){var n=this._getTotalProgress(e);this.progress=n,t._onProgress(e),this.onProgressItem(t,e),this.onProgressAll(n),this._render()},t.prototype._onSuccessItem=function(t,e,n,s){t._onSuccess(e,n,s),this.onSuccessItem(t,e,n,s)},t.prototype._onErrorItem=function(t,e,n,s){t._onError(e,n,s),this.onErrorItem(t,e,n,s)},t.prototype._onCancelItem=function(t,e,n,s){t._onCancel(e,n,s),this.onCancelItem(t,e,n,s)},t.prototype._onCompleteItem=function(t,e,n,s){t._onComplete(e,n,s),this.onCompleteItem(t,e,n,s);var a=this.getReadyItems()[0];return this.isUploading=!1,a?void a.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),void this._render())},t}();e.FileUploader=i},function(t,e,n){function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(41)),s(n(39)),s(n(98));var a=n(41),o=n(39);e.FILE_UPLOAD_DIRECTIVES=[a.FileSelect,o.FileDrop]},function(t,e){!function(t){t[t.BS3=1]="BS3",t[t.BS4=2]="BS4"}(e.Ng2BootstrapTheme||(e.Ng2BootstrapTheme={}));var n=e.Ng2BootstrapTheme,s=function(){function t(){}return Object.defineProperty(t,"theme",{get:function(){var t=window;return t&&"bs4"===t.__theme?n.BS4:this._theme||n.BS3},set:function(t){this._theme=t},enumerable:!0,configurable:!0}),t}();e.Ng2BootstrapConfig=s},function(t,e){var n=function(){function t(){}return Object.defineProperty(t.prototype,"window",{get:function(){return window},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return window.document},enumerable:!0,configurable:!0}),t.prototype.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:this.window.getComputedStyle?this.window.getComputedStyle(t)[e]:t.style[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.parentOffsetEl=function(t){for(var e=t.offsetParent||this.document;e&&e!==this.document&&this.isStaticPositioned(e);)e=e.offsetParent;return e||this.document},t.prototype.position=function(t){var e=this.offset(t),n={top:0,left:0},s=this.parentOffsetEl(t);s!==this.document&&(n=this.offset(s),n.top+=s.clientTop-s.scrollTop,n.left+=s.clientLeft-s.scrollLeft);var a=t.getBoundingClientRect();return{width:a.width||t.offsetWidth,height:a.height||t.offsetHeight,top:e.top-n.top,left:e.left-n.left}},t.prototype.offset=function(t){var e=t.getBoundingClientRect();return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(this.window.pageYOffset||this.document.documentElement.scrollTop),left:e.left+(this.window.pageXOffset||this.document.documentElement.scrollLeft)}},t.prototype.positionElements=function(t,e,n,s){var a,o=n.split("-"),i=o[0],r=o[1]||"center",p=s?this.offset(t):this.position(t),c=e.offsetWidth,l=e.offsetHeight,u={center:function(){return p.left+p.width/2-c/2},left:function(){return p.left},right:function(){return p.left+p.width}},h={center:function(){return p.top+p.height/2-l/2},top:function(){return p.top},bottom:function(){return p.top+p.height}};switch(i){case"right":a={top:h[r](),left:u[i]()};break;case"left":a={top:h[r](),left:p.left-c};break;case"bottom":a={top:h[i](),left:u[r]()};break;default:a={top:p.top-l,left:u[r]()}}return a},t}();e.PositionService=n,e.positionService=new n},function(t,e,n){"use strict";function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(28)),s(n(48)),s(n(185))},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(5),i=n(175),r=n(104),p=function(){function t(t){this.browserDetails=t}return t.prototype.css=function(){return new i.CssAnimationBuilder(this.browserDetails)},t=s([o.Injectable(),a("design:paramtypes",[r.BrowserDetails])],t)}();e.AnimationBuilder=p},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(5),i=n(156),r=n(8),p=function(){function t(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return t.prototype.doesElapsedTimeIncludesDelay=function(){var t=this,e=r.DOM.createElement("div");r.DOM.setAttribute(e,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(n){r.DOM.on(e,"transitionend",function(n){var s=i.Math.round(1e3*n.elapsedTime);t.elapsedTimeIncludesDelay=2==s,r.DOM.remove(e)}),r.DOM.setStyle(e,"width","2px")},2)},t.prototype.raf=function(t,e){void 0===e&&(e=1);var n=new c(t,e);return function(){return n.cancel()}},t=s([o.Injectable(),a("design:paramtypes",[])],t)}();e.BrowserDetails=p;var c=function(){function t(t,e){this.callback=t,this.frames=e,this._raf()}return t.prototype._raf=function(){var t=this;this.currentFrameId=r.DOM.requestAnimationFrame(function(e){return t._nextFrame(e)})},t.prototype._nextFrame=function(t){this.frames--,this.frames>0?this._raf():this.callback(t)},t.prototype.cancel=function(){r.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},t}()},,,,,,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(27),i=n(130),r=n(184),p=n(1),c=n(10),l=n(227),u=n(15),h=n(5),d="AbstractChangeDetector",f="ChangeDetectionUtil",m="ChangeDetectorState",g=o.moduleRef("package:angular2/src/core/change_detection/abstract_change_detector"+u.MODULE_SUFFIX),y=o.moduleRef("package:angular2/src/core/change_detection/change_detection_util"+u.MODULE_SUFFIX),v=o.moduleRef("package:angular2/src/core/change_detection/pregen_proto_change_detector"+u.MODULE_SUFFIX),k=o.moduleRef("package:angular2/src/core/change_detection/constants"+u.MODULE_SUFFIX),_=function(){function t(t){this._genConfig=t}return t.prototype.compileComponentRuntime=function(t,e,n){var s=this,a=r.createChangeDetectorDefinitions(t,e,this._genConfig,n);return a.map(function(t){return s._createChangeDetectorFactory(t)})},t.prototype._createChangeDetectorFactory=function(t){if(p.IS_DART||!this._genConfig.useJit){var e=new c.DynamicProtoChangeDetector(t);return function(t){return e.instantiate(t)}}return new i.ChangeDetectorJITGenerator(t,f,d,m).generate()},t.prototype.compileComponentCodeGen=function(t,e,n){var s=r.createChangeDetectorDefinitions(t,e,this._genConfig,n),a=[],c=0,u=s.map(function(e){var n,s;if(p.IS_DART){n=new l.Codegen(v);var r="_"+e.id,u=0===c&&t.isHost?"dynamic":""+o.moduleRef(t.moduleUrl)+t.name;n.generate(u,r,e),a.push(r+".newChangeDetector"),s=n.toString()}else n=new i.ChangeDetectorJITGenerator(e,""+y+f,""+g+d,""+k+m),a.push("function(dispatcher) { return new "+n.typeName+"(dispatcher); }"),s=n.generateSource();return c++,s});return new o.SourceExpressions(u,a)},t=s([h.Injectable(),a("design:paramtypes",[c.ChangeDetectorGenConfig])],t)}();e.ChangeDetectionCompiler=_},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(23),r=n(51),p=n(77),c=n(5),l=function(t){function e(){t.apply(this,arguments)}return s(e,t),e}(i.Compiler);e.RuntimeCompiler=l;var u=function(t){function e(e,n){t.call(this,e),this._templateCompiler=n}return s(e,t),e.prototype.compileInHost=function(t){var e=this;return this._templateCompiler.compileHostComponentRuntime(t).then(function(t){return i.internalCreateProtoView(e,t)})},e.prototype.clearCache=function(){t.prototype.clearCache.call(this),this._templateCompiler.clearCache()},e=a([c.Injectable(),o("design:paramtypes",[r.ProtoViewFactory,p.TemplateCompiler])],e)}(i.Compiler_);e.RuntimeCompiler_=u},function(t,e,n){"use strict";function s(t,e){var n=[];return u.isPresent(e)&&a(e,n),u.isPresent(t.directives)&&a(t.directives,n),n}function a(t,e){for(var n=0;n<t.length;n++){var s=l.resolveForwardRef(t[n]);u.isArray(s)?a(s,e):e.push(s)}}function o(t){return u.isPresent(t)&&t instanceof u.Type}function i(t,e){var n=e.moduleId;if(u.isPresent(n)){var s=C.getUrlScheme(n);return u.isPresent(s)&&s.length>0?n:"package:"+n+E.MODULE_SUFFIX}return k.reflector.importUri(t)}var r=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},p=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},c=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},l=n(5),u=n(1),h=n(4),d=n(46),f=n(35),m=n(50),g=n(54),y=n(143),v=n(33),k=n(9),_=n(5),b=n(55),E=n(15),C=n(28),T=function(){function t(t,e,n){this._directiveResolver=t,this._viewResolver=e,this._platformDirectives=n,this._cache=new Map}return t.prototype.getMetadata=function(t){var e=this._cache.get(t);if(u.isBlank(e)){var n=this._directiveResolver.resolve(t),s=null,a=null,o=null;if(n instanceof f.ComponentMetadata){var r=n;s=i(t,r);var p=this._viewResolver.resolve(t);a=new d.CompileTemplateMetadata({encapsulation:p.encapsulation,template:p.template,templateUrl:p.templateUrl,styles:p.styles,styleUrls:p.styleUrls}),o=r.changeDetection}e=d.CompileDirectiveMetadata.create({selector:n.selector,exportAs:n.exportAs,isComponent:u.isPresent(a),dynamicLoadable:!0,type:new d.CompileTypeMetadata({name:u.stringify(t),moduleUrl:s,runtime:t}),template:a,changeDetection:o,inputs:n.inputs,outputs:n.outputs,host:n.host,lifecycleHooks:v.LIFECYCLE_HOOKS_VALUES.filter(function(e){return y.hasLifecycleHook(e,t)})}),this._cache.set(t,e)}return e},t.prototype.getViewDirectivesMetadata=function(t){for(var e=this,n=this._viewResolver.resolve(t),a=s(n,this._platformDirectives),i=0;i<a.length;i++)if(!o(a[i]))throw new h.BaseException("Unexpected directive value '"+u.stringify(a[i])+"' on the View of component '"+u.stringify(t)+"'");return a.map(function(t){return e.getMetadata(t)})},t=r([_.Injectable(),c(2,_.Optional()),c(2,_.Inject(b.PLATFORM_DIRECTIVES)),p("design:paramtypes",[m.DirectiveResolver,g.ViewResolver,Array])],t)}();e.RuntimeMetadataResolver=T},function(t,e,n){"use strict";var s=n(2),a=n(1),o=n(4),i="",r=a.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),p=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){for(var n,i=[],p=function(t,e){e.notSelectors.length>0&&a.isBlank(e.element)&&s.ListWrapper.isEmpty(e.classNames)&&s.ListWrapper.isEmpty(e.attrs)&&(e.element="*"),t.push(e)},c=new t,l=a.RegExpWrapper.matcher(r,e),u=c,h=!1;a.isPresent(n=a.RegExpMatcherWrapper.next(l));){if(a.isPresent(n[1])){if(h)throw new o.BaseException("Nesting :not is not allowed in a selector");h=!0,u=new t,c.notSelectors.push(u)}if(a.isPresent(n[2])&&u.setElement(n[2]),a.isPresent(n[3])&&u.addClassName(n[3]),a.isPresent(n[4])&&u.addAttribute(n[4],n[5]),a.isPresent(n[6])&&(h=!1,u=c),a.isPresent(n[7])){if(h)throw new o.BaseException("Multiple selectors in :not are not supported");p(i,c),c=u=new t}}return p(i,c),i},t.prototype.isElementSelector=function(){return a.isPresent(this.element)&&s.ListWrapper.isEmpty(this.classNames)&&s.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=a.isPresent(this.element)?this.element:"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",s=0;s<this.attrs.length;s+=2){var o=this.attrs[s],i=""!==this.attrs[s+1]?'="'+this.attrs[s+1]+'"':"";n+=" "+o+i}return"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=i),this.attrs.push(t),e=a.isPresent(e)?e.toLowerCase():i,this.attrs.push(e)},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t="";if(a.isPresent(this.element)&&(t+=this.element),a.isPresent(this.classNames))for(var e=0;e<this.classNames.length;e++)t+="."+this.classNames[e];if(a.isPresent(this.attrs))for(var e=0;e<this.attrs.length;){var n=this.attrs[e++],s=this.attrs[e++];t+="["+n,s.length>0&&(t+="="+s),t+="]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}();e.CssSelector=p;var c=function(){function t(){this._elementMap=new s.Map,this._elementPartialMap=new s.Map,this._classMap=new s.Map,this._classPartialMap=new s.Map,this._attrValueMap=new s.Map,this._attrValuePartialMap=new s.Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new l(t),this._listContexts.push(n));for(var s=0;s<t.length;s++)this._addSelectable(t[s],e,n)},t.prototype._addSelectable=function(t,e,n){var o=this,i=t.element,r=t.classNames,p=t.attrs,c=new u(t,e,n);if(a.isPresent(i)){var l=0===p.length&&0===r.length;l?this._addTerminal(o._elementMap,i,c):o=this._addPartial(o._elementPartialMap,i)}if(a.isPresent(r))for(var h=0;h<r.length;h++){var l=0===p.length&&h===r.length-1,d=r[h];l?this._addTerminal(o._classMap,d,c):o=this._addPartial(o._classPartialMap,d)}if(a.isPresent(p))for(var h=0;h<p.length;){var l=h===p.length-2,f=p[h++],m=p[h++];if(l){var g=o._attrValueMap,y=g.get(f);a.isBlank(y)&&(y=new s.Map,g.set(f,y)),this._addTerminal(y,m,c)}else{var v=o._attrValuePartialMap,k=v.get(f);a.isBlank(k)&&(k=new s.Map,v.set(f,k)),o=this._addPartial(k,m)}}},t.prototype._addTerminal=function(t,e,n){var s=t.get(e);a.isBlank(s)&&(s=[],t.set(e,s)),s.push(n)},t.prototype._addPartial=function(e,n){var s=e.get(n);return a.isBlank(s)&&(s=new t,e.set(n,s)),s},t.prototype.match=function(t,e){for(var n=!1,s=t.element,o=t.classNames,r=t.attrs,p=0;p<this._listContexts.length;p++)this._listContexts[p].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,s,t,e)||n,n=this._matchPartial(this._elementPartialMap,s,t,e)||n,a.isPresent(o))for(var c=0;c<o.length;c++){var l=o[c];n=this._matchTerminal(this._classMap,l,t,e)||n,n=this._matchPartial(this._classPartialMap,l,t,e)||n}if(a.isPresent(r))for(var c=0;c<r.length;){var u=r[c++],h=r[c++],d=this._attrValueMap.get(u);a.StringWrapper.equals(h,i)||(n=this._matchTerminal(d,i,t,e)||n),n=this._matchTerminal(d,h,t,e)||n;var f=this._attrValuePartialMap.get(u);a.StringWrapper.equals(h,i)||(n=this._matchPartial(f,i,t,e)||n),n=this._matchPartial(f,h,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,s){if(a.isBlank(t)||a.isBlank(e))return!1;var o=t.get(e),i=t.get("*");if(a.isPresent(i)&&(o=o.concat(i)),a.isBlank(o))return!1;for(var r,p=!1,c=0;c<o.length;c++)r=o[c],p=r.finalize(n,s)||p;return p},t.prototype._matchPartial=function(t,e,n,s){if(a.isBlank(t)||a.isBlank(e))return!1;var o=t.get(e);return a.isBlank(o)?!1:o.match(n,s)},t}();e.SelectorMatcher=c;var l=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}();e.SelectorListContext=l;var u=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var s=c.createNotMatcher(this.notSelectors);n=!s.match(t,null)}return n&&a.isPresent(e)&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(a.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}();e.SelectorContext=u},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(27),i=n(17),r=n(48),p=n(1),c=n(6),l=n(188),u=n(28),h=n(76),d=n(15),f=n(5),m=n(154),g=function(){function t(t,e){this._xhr=t,this._urlResolver=e,this._styleCache=new Map,this._shadowCss=new l.ShadowCss}return t.prototype.compileComponentRuntime=function(t){var e=t.styles,n=t.styleUrls;return this._loadStyles(e,n,t.encapsulation===i.ViewEncapsulation.Emulated)},t.prototype.compileComponentCodeGen=function(t){var e=t.encapsulation===i.ViewEncapsulation.Emulated;return this._styleCodeGen(t.styles,t.styleUrls,e)},t.prototype.compileStylesheetCodeGen=function(t,e){var n=h.extractStyleUrls(this._urlResolver,t,e);return[this._styleModule(t,!1,this._styleCodeGen([n.style],n.styleUrls,!1)),this._styleModule(t,!0,this._styleCodeGen([n.style],n.styleUrls,!0))]},t.prototype.clearCache=function(){this._styleCache.clear()},t.prototype._loadStyles=function(t,e,n){var s=this,a=e.map(function(t){var e=""+t+(n?".shim":""),a=s._styleCache.get(e);return p.isBlank(a)&&(a=s._xhr.get(t).then(function(e){var a=h.extractStyleUrls(s._urlResolver,t,e);return s._loadStyles([a.style],a.styleUrls,n)}),s._styleCache.set(e,a)),a});return c.PromiseWrapper.all(a).then(function(e){var a=t.map(function(t){return s._shimIfNeeded(t,n)});return e.forEach(function(t){return a.push(t)}),a})},t.prototype._styleCodeGen=function(t,e,n){for(var s=this,a=p.IS_DART?"const":"",i=t.map(function(t){return d.escapeSingleQuoteString(s._shimIfNeeded(t,n))}),r=0;r<e.length;r++){var c=this._createModuleUrl(e[r],n);i.push(o.moduleRef(c)+"STYLES")}var l=a+" ["+i.join(",")+"]";return new o.SourceExpression([],l)},t.prototype._styleModule=function(t,e,n){var s="\n "+n.declarations.join("\n")+"\n "+d.codeGenExportVariable("STYLES")+n.expression+";\n ";return new o.SourceModule(this._createModuleUrl(t,e),s)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,m.CONTENT_ATTR,m.HOST_ATTR):t},t.prototype._createModuleUrl=function(t,e){return e?t+".shim"+d.MODULE_SUFFIX:""+t+d.MODULE_SUFFIX},t=s([f.Injectable(),a("design:paramtypes",[r.XHR,u.UrlResolver])],t)}();e.StyleCompiler=g},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(46),i=n(1),r=n(4),p=n(6),c=n(48),l=n(28),u=n(76),h=n(5),d=n(17),f=n(72),m=n(73),g=n(125),y=function(){function t(t,e,n){this._xhr=t,this._urlResolver=e,this._htmlParser=n}return t.prototype.normalizeTemplate=function(t,e){var n=this;if(i.isPresent(e.template))return p.PromiseWrapper.resolve(this.normalizeLoadedTemplate(t,e,e.template,t.moduleUrl));if(i.isPresent(e.templateUrl)){var s=this._urlResolver.resolve(t.moduleUrl,e.templateUrl);return this._xhr.get(s).then(function(a){return n.normalizeLoadedTemplate(t,e,a,s)})}throw new r.BaseException("No template specified for component "+t.name)},t.prototype.normalizeLoadedTemplate=function(t,e,n,s){var a=this,i=this._htmlParser.parse(n,t.name);if(i.errors.length>0){var p=i.errors.join("\n");throw new r.BaseException("Template parse errors:\n"+p)}var c=new v;f.htmlVisitAll(c,i.rootNodes);var l=e.styles.concat(c.styles),h=c.styleUrls.filter(u.isStyleUrlResolvable).map(function(t){return a._urlResolver.resolve(s,t)}).concat(e.styleUrls.filter(u.isStyleUrlResolvable).map(function(e){return a._urlResolver.resolve(t.moduleUrl,e)})),m=l.map(function(t){var e=u.extractStyleUrls(a._urlResolver,s,t);return e.styleUrls.forEach(function(t){return h.push(t)}),e.style}),g=e.encapsulation;return g===d.ViewEncapsulation.Emulated&&0===m.length&&0===h.length&&(g=d.ViewEncapsulation.None),new o.CompileTemplateMetadata({encapsulation:g,template:n,templateUrl:s,styles:m,styleUrls:h,ngContentSelectors:c.ngContentSelectors})},t=s([h.Injectable(),a("design:paramtypes",[c.XHR,l.UrlResolver,m.HtmlParser])],t)}();e.TemplateNormalizer=y;var v=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=g.preparseElement(t);switch(n.type){case g.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case g.PreparsedElementType.STYLE:var s="";t.children.forEach(function(t){t instanceof f.HtmlTextAst&&(s+=t.value)}),this.styles.push(s);break;case g.PreparsedElementType.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,f.htmlVisitAll(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitAttr=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}()},function(t,e,n){"use strict";function s(t){var e=null,n=null,s=null,o=!1;t.attrs.forEach(function(t){var a=t.name.toLowerCase();a==r?e=t.value:a==u?n=t.value:a==l?s=t.value:t.name==m&&(o=!0)}),e=a(e);var v=t.name.toLowerCase(),k=g.OTHER;return i.splitNsName(v)[1]==p?k=g.NG_CONTENT:v==d?k=g.STYLE:v==f?k=g.SCRIPT:v==c&&s==h&&(k=g.STYLESHEET),new y(k,e,n,o)}function a(t){return o.isBlank(t)||0===t.length?"*":t}var o=n(1),i=n(26),r="select",p="ng-content",c="link",l="rel",u="href",h="stylesheet",d="style",f="script",m="ngNonBindable";e.preparseElement=s,function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(e.PreparsedElementType||(e.PreparsedElementType={}));var g=e.PreparsedElementType,y=function(){function t(t,e,n,s){
|
||
this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=s}return t}();e.PreparsedElement=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(4),o=n(2),i=n(1),r=n(18),p=function(t){function e(e,n){t.call(this),this.template=e,this.cmds=n}return s(e,t),e}(r.RenderProtoViewRef);e.DefaultProtoViewRef=p;var c=function(t){function e(e){t.call(this),this.nodes=e}return s(e,t),e}(r.RenderFragmentRef);e.DefaultRenderFragmentRef=c;var l=function(t){function e(e,n,s,a,o,i){t.call(this),this.fragments=e,this.boundTextNodes=n,this.boundElements=s,this.nativeShadowRoots=a,this.globalEventAdders=o,this.rootContentInsertionPoints=i,this.hydrated=!1,this.eventDispatcher=null,this.globalEventRemovers=null}return s(e,t),e.prototype.hydrate=function(){if(this.hydrated)throw new a.BaseException("The view is already hydrated.");this.hydrated=!0,this.globalEventRemovers=o.ListWrapper.createFixedSize(this.globalEventAdders.length);for(var t=0;t<this.globalEventAdders.length;t++)this.globalEventRemovers[t]=this.globalEventAdders[t]()},e.prototype.dehydrate=function(){if(!this.hydrated)throw new a.BaseException("The view is already dehydrated.");for(var t=0;t<this.globalEventRemovers.length;t++)this.globalEventRemovers[t]();this.globalEventRemovers=null,this.hydrated=!1},e.prototype.setEventDispatcher=function(t){this.eventDispatcher=t},e.prototype.dispatchRenderEvent=function(t,e,n){var s=!0;if(i.isPresent(this.eventDispatcher)){var a=new o.Map;a.set("$event",n),s=this.eventDispatcher.dispatchRenderEvent(t,e,a)}return s},e}(r.RenderViewRef);e.DefaultRenderView=l},function(t,e,n){"use strict";function s(t){var e=t.styles;if(t.encapsulation===u.ViewEncapsulation.Emulated){e=h.ListWrapper.createFixedSize(t.styles.length);for(var n=0;n<t.styles.length;n++)e[n]=c.StringWrapper.replaceAll(t.styles[n],g,t.shortId)}return e}function a(t,e,n,s){var a,o=function(t,e,n){return a.dispatchRenderEvent(t,e,n)},i=new d(o,s,n);i.build(t,e);for(var r=[],p=0;p<i.fragments.length;p++)r.push(new l.DefaultRenderFragmentRef(i.fragments[p]));return a=new l.DefaultRenderView(r,i.boundTextNodes,i.boundElements,i.nativeShadowRoots,i.globalEventAdders,i.rootContentInsertionPoints)}function o(t,e,n){return function(s){return n(t,e,s)}}function i(t,e,n,s){return function(){return s.globalOn(t,e,n)}}function r(t){return c.StringWrapper.replaceAll(e.CONTENT_ATTR,g,t)}function p(t){return c.StringWrapper.replaceAll(e.HOST_ATTR,g,t)}var c=n(1),l=n(153),u=n(16),h=n(2);e.encapsulateStyles=s,e.createRenderView=a;var d=function(){function t(t,e,n){this._eventDispatcher=t,this.factory=e,this._inplaceElement=n,this._builders=[],this.globalEventAdders=[],this.boundElements=[],this.boundTextNodes=[],this.nativeShadowRoots=[],this.fragments=[],this.rootContentInsertionPoints=[],this.componentCount=0,this.isHost=c.isPresent(n)}return t.prototype.build=function(t,e){this.enqueueRootBuilder(t,e),this._build(this._builders[0])},t.prototype._build=function(t){this._builders=[],t.build(this);for(var e=this._builders,n=0;n<e.length;n++)this._build(e[n])},t.prototype.enqueueComponentBuilder=function(t){this.componentCount++,this._builders.push(new f(t,null,t.template,t.template.commands))},t.prototype.enqueueFragmentBuilder=function(t,e,n){var s=[];this.fragments.push(s),this._builders.push(new f(t,s,e,n))},t.prototype.enqueueRootBuilder=function(t,e){var n=[];this.fragments.push(n),this._builders.push(new f(null,n,t,e))},t.prototype.consumeInplaceElement=function(){var t=this._inplaceElement;return this._inplaceElement=null,t},t.prototype.addEventListener=function(t,e,n){if(c.isPresent(e)){var s=o(t,e+":"+n,this._eventDispatcher);this.globalEventAdders.push(i(e,n,s,this.factory))}else{var s=o(t,n,this._eventDispatcher);this.factory.on(this.boundElements[t],n,s)}},t}(),f=function(){function t(t,e,n,s){this.parentComponent=t,this.fragmentRootNodes=e,this.template=n,this.cmds=s;var a=c.isPresent(e)?null:t.shadowRoot;this.parentStack=[a]}return t.prototype.build=function(t){for(var e=this.cmds,n=0;n<e.length;n++)e[n].visit(this,t)},Object.defineProperty(t.prototype,"parent",{get:function(){return this.parentStack[this.parentStack.length-1]},enumerable:!0,configurable:!0}),t.prototype.visitText=function(t,e){var n=e.factory.createText(t.value);return this._addChild(n,t.ngContentIndex,e),t.isBound&&e.boundTextNodes.push(n),null},t.prototype.visitNgContent=function(t,e){if(c.isPresent(this.parentComponent))if(this.parentComponent.isRoot){var n=e.factory.createRootContentInsertionPoint();this.parent instanceof m?e.factory.appendChild(this.parent.shadowRoot,n):e.factory.appendChild(this.parent,n),e.rootContentInsertionPoints.push(n)}else for(var s=this.parentComponent.project(t.index),a=0;a<s.length;a++){var o=s[a];this._addChild(o,t.ngContentIndex,e)}return null},t.prototype.visitBeginElement=function(t,e){return this.parentStack.push(this._beginElement(t,e,null)),null},t.prototype.visitEndElement=function(t){return this._endElement(),null},t.prototype.visitBeginComponent=function(t,e){var n=t.templateId,s=e.factory.resolveComponentTemplate(n),a=this._beginElement(t,e,s),o=a;s.encapsulation===u.ViewEncapsulation.Native&&(o=e.factory.createShadowRoot(a,n),e.nativeShadowRoots.push(o));var i=0===e.componentCount&&e.isHost,r=new m(a,o,i,s);return e.enqueueComponentBuilder(r),this.parentStack.push(r),null},t.prototype.visitEndComponent=function(t){return this._endElement(),null},t.prototype.visitEmbeddedTemplate=function(t,e){var n=e.factory.createTemplateAnchor(t.attrNameAndValues);return this._addChild(n,t.ngContentIndex,e),e.boundElements.push(n),t.isMerged&&e.enqueueFragmentBuilder(this.parentComponent,this.template,t.children),null},t.prototype._beginElement=function(t,e,n){var s=e.consumeInplaceElement(),a=t.attrNameAndValues,o=this.template.encapsulation===u.ViewEncapsulation.Emulated,i=c.isPresent(n)&&n.encapsulation===u.ViewEncapsulation.Emulated,l=a.length+(o?2:0)+(i?2:0);if(l>a.length){var d,f=h.ListWrapper.createFixedSize(l);for(d=0;d<a.length;d++)f[d]=a[d];o&&(f[d++]=r(this.template.shortId),f[d++]=""),i&&(f[d++]=p(n.shortId),f[d++]=""),a=f}if(c.isPresent(s)?(e.factory.mergeElement(s,a),this.fragmentRootNodes.push(s)):(s=e.factory.createElement(t.name,a),this._addChild(s,t.ngContentIndex,e)),t.isBound){var m=e.boundElements.length;e.boundElements.push(s);for(var g=0;g<t.eventTargetAndNames.length;g+=2){var y=t.eventTargetAndNames[g],v=t.eventTargetAndNames[g+1];e.addEventListener(m,y,v)}}return s},t.prototype._endElement=function(){this.parentStack.pop()},t.prototype._addChild=function(t,e,n){var s=this.parent;c.isPresent(s)?s instanceof m?s.addContentNode(e,t,n):n.factory.appendChild(s,t):this.fragmentRootNodes.push(t)},t}(),m=function(){function t(t,e,n,s){this.hostElement=t,this.shadowRoot=e,this.isRoot=n,this.template=s,this.contentNodesByNgContentIndex=[]}return t.prototype.addContentNode=function(t,e,n){if(c.isBlank(t))this.template.encapsulation===u.ViewEncapsulation.Native&&n.factory.appendChild(this.hostElement,e);else{for(;this.contentNodesByNgContentIndex.length<=t;)this.contentNodesByNgContentIndex.push([]);this.contentNodesByNgContentIndex[t].push(e)}},t.prototype.project=function(t){return t<this.contentNodesByNgContentIndex.length?this.contentNodesByNgContentIndex[t]:[]},t}(),g=/%COMP%/g;e.COMPONENT_VARIABLE="%COMP%",e.HOST_ATTR="_nghost-"+e.COMPONENT_VARIABLE,e.CONTENT_ATTR="_ngcontent-"+e.COMPONENT_VARIABLE},,function(t,e,n){"use strict";var s=n(1);e.Math=s.global.Math,e.NaN=typeof e.NaN},function(t,e,n){"use strict";function s(){return r.isBlank(m)&&(m=document.querySelector("base"),r.isBlank(m))?null:m.getAttribute("href")}function a(t){return r.isBlank(g)&&(g=document.createElement("a")),g.setAttribute("href",t),"/"===g.pathname.charAt(0)?g.pathname:"/"+g.pathname}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),r=n(1),p=n(8),c=n(217),l={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},u=3,h={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},f=function(t){function e(){t.apply(this,arguments)}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){p.setRootDomAdapter(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console.error?window.console.error(t):window.console.log(t)},e.prototype.log=function(t){window.console.log(t)},e.prototype.logGroup=function(t){window.console.group?(window.console.group(t),this.logError(t)):window.console.log(t)},e.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),e.prototype.query=function(t){return document.querySelector(t)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||r.isPresent(t.returnValue)&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=i.ListWrapper.createFixedSize(e.length),s=0;s<e.length;s++)n[s]=e[s];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e){t.parentNode.insertBefore(e,t)},e.prototype.insertAllBefore=function(t,e){e.forEach(function(e){return t.parentNode.insertBefore(e,t)})},e.prototype.insertAfter=function(t,e){t.parentNode.insertBefore(e,t.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var s=n.createElement("SCRIPT");return s.setAttribute(t,e),s},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=null},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var s=this.getStyle(t,e)||"";return n?s==n:s.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,s=0;s<n.length;s++){var a=n[s];e.set(a.name,a.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,s){t.setAttributeNS(e,n,s)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.defaultDoc=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t){document.title=t||""},e.prototype.elementMatches=function(t,e){var n=!1;return t instanceof HTMLElement&&(t.matches?n=t.matches(e):t.msMatchesSelector?n=t.msMatchesSelector(e):t.webkitMatchesSelector&&(n=t.webkitMatchesSelector(e))),n},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return t instanceof HTMLElement&&r.isPresent(t.shadowRoot)},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){var e=t;return this.isTemplateElement(t)&&(e=this.content(t)),document.importNode(e,!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(r.isBlank(e)){if(e=t.keyIdentifier,r.isBlank(e))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===u&&d.hasOwnProperty(e)&&(e=d[e]))}return h.hasOwnProperty(e)&&(e=h[e]),e},e.prototype.getGlobalEventTarget=function(t){return"window"==t?window:"document"==t?document:"body"==t?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=s();return r.isBlank(t)?null:a(t)},e.prototype.resetBaseElement=function(){m=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){r.setValueOnPath(r.global,t,e)},e.prototype.requestAnimationFrame=function(t){return window.requestAnimationFrame(t)},e.prototype.cancelAnimationFrame=function(t){window.cancelAnimationFrame(t)},e.prototype.performanceNow=function(){return r.isPresent(window.performance)&&r.isPresent(window.performance.now)?window.performance.now():r.DateWrapper.toMillis(r.DateWrapper.now())},e}(c.GenericBrowserDomAdapter);e.BrowserDomAdapter=f;var m=null,g=null},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(58),o=n(1),i=n(48),r=function(t){function e(){t.apply(this,arguments)}return s(e,t),e.prototype.get=function(t){var e=a.PromiseWrapper.completer(),n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="text",n.onload=function(){var s=o.isPresent(n.response)?n.response:n.responseText,a=1223===n.status?204:n.status;0===a&&(a=s?200:0),a>=200&&300>=a?e.resolve(s):e.reject("Failed to load "+t,null)},n.onerror=function(){e.reject("Failed to load "+t,null)},n.send(),e.promise},e}(i.XHR);e.XHRImpl=r},function(t,e,n){"use strict";function s(){return new p.ExceptionHandler(u.DOM,!i.IS_DART)}function a(){return u.DOM.defaultDoc()}function o(){b.BrowserDomAdapter.makeCurrent(),C.wtfInit(),E.BrowserGetTestability.init()}var i=n(1),r=n(5),p=n(3),c=n(7),l=n(56),u=n(8),h=n(161),d=n(226),f=n(225),m=n(37),g=n(160),y=n(59),v=n(59),k=n(104),_=n(103),b=n(157),E=n(218),C=n(210),T=n(24),w=n(37);e.DOCUMENT=w.DOCUMENT;var S=n(219);e.Title=S.Title;var P=n(173);e.DebugElementViewListener=P.DebugElementViewListener,e.ELEMENT_PROBE_PROVIDERS=P.ELEMENT_PROBE_PROVIDERS,e.ELEMENT_PROBE_BINDINGS=P.ELEMENT_PROBE_BINDINGS,e.inspectNativeElement=P.inspectNativeElement,e.By=P.By;var R=n(157);e.BrowserDomAdapter=R.BrowserDomAdapter;var O=n(221);e.enableDebugTools=O.enableDebugTools,e.disableDebugTools=O.disableDebugTools,e.BROWSER_PROVIDERS=i.CONST_EXPR([p.PLATFORM_COMMON_PROVIDERS,new r.Provider(p.PLATFORM_INITIALIZER,{useValue:o,multi:!0})]),e.BROWSER_APP_COMMON_PROVIDERS=i.CONST_EXPR([p.APPLICATION_COMMON_PROVIDERS,c.FORM_PROVIDERS,new r.Provider(p.PLATFORM_PIPES,{useValue:c.COMMON_PIPES,multi:!0}),new r.Provider(p.PLATFORM_DIRECTIVES,{useValue:c.COMMON_DIRECTIVES,multi:!0}),new r.Provider(p.ExceptionHandler,{useFactory:s,deps:[]}),new r.Provider(m.DOCUMENT,{useFactory:a,deps:[]}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:h.DomEventsPlugin,multi:!0}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:d.KeyEventsPlugin,multi:!0}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:f.HammerGesturesPlugin,multi:!0}),new r.Provider(g.DomRenderer,{useClass:g.DomRenderer_}),new r.Provider(p.Renderer,{useExisting:g.DomRenderer}),new r.Provider(v.SharedStylesHost,{useExisting:y.DomSharedStylesHost}),y.DomSharedStylesHost,l.Testability,k.BrowserDetails,_.AnimationBuilder,T.EventManager]),e.initDomAdapter=o},function(t,e,n){"use strict";function s(t){return t}function a(t){return t.nodes}function o(t,e){var n=T.DOM.parentElement(t);if(e.length>0&&f.isPresent(n)){var s=T.DOM.nextSibling(t);if(f.isPresent(s))for(var a=0;a<e.length;a++)T.DOM.insertBefore(s,e[a]);else for(var a=0;a<e.length;a++)T.DOM.appendChild(n,e[a])}}function i(t){return function(e){var n=t(e);n||T.DOM.preventDefault(e)}}function r(t){if("@"!=t[0])return[null,t];var e=f.RegExpWrapper.firstMatch(D,t);return[e[1],e[2]]}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},l=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},u=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},h=n(5),d=n(103),f=n(1),m=n(4),g=n(59),y=n(36),v=n(3),k=n(24),_=n(37),b=n(154),E=n(153),C=n(16),T=n(8),w=n(162),S=f.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),P="template bindings={}",R=/^template bindings=(.*)$/g,O=function(t){function e(){t.apply(this,arguments)}return p(e,t),e.prototype.getNativeElementSync=function(t){return s(t.renderView).boundElements[t.boundElementIndex]},e.prototype.getRootNodes=function(t){return a(t)},e.prototype.attachFragmentAfterFragment=function(t,e){var n=a(t);if(n.length>0){var s=n[n.length-1],i=a(e);o(s,i),this.animateNodesEnter(i)}},e.prototype.animateNodesEnter=function(t){for(var e=0;e<t.length;e++)this.animateNodeEnter(t[e])},e.prototype.attachFragmentAfterElement=function(t,e){var n=s(t.renderView),i=n.boundElements[t.boundElementIndex],r=a(e);o(i,r),this.animateNodesEnter(r)},e.prototype.hydrateView=function(t){s(t).hydrate()},e.prototype.dehydrateView=function(t){s(t).dehydrate()},e.prototype.createTemplateAnchor=function(t){return T.DOM.createComment(P)},e.prototype.createText=function(t){return T.DOM.createTextNode(f.isPresent(t)?t:"")},e.prototype.appendChild=function(t,e){T.DOM.appendChild(t,e)},e.prototype.setElementProperty=function(t,e,n){var a=s(t.renderView);T.DOM.setProperty(a.boundElements[t.boundElementIndex],e,n)},e.prototype.setElementAttribute=function(t,e,n){var a=s(t.renderView),o=a.boundElements[t.boundElementIndex];f.isPresent(n)?T.DOM.setAttribute(o,e,f.stringify(n)):T.DOM.removeAttribute(o,e)},e.prototype.setBindingDebugInfo=function(t,e,n){var a=s(t.renderView),o=a.boundElements[t.boundElementIndex],i=w.camelCaseToDashCase(e);if(T.DOM.isCommentNode(o)){var r=f.RegExpWrapper.firstMatch(R,f.StringWrapper.replaceAll(T.DOM.getText(o),/\n/g,"")),p=f.Json.parse(r[1]);p[i]=n,T.DOM.setText(o,f.StringWrapper.replace(P,"{}",f.Json.stringify(p)))}else this.setElementAttribute(t,e,n)},e.prototype.setElementClass=function(t,e,n){var a=s(t.renderView),o=a.boundElements[t.boundElementIndex];n?T.DOM.addClass(o,e):T.DOM.removeClass(o,e)},e.prototype.setElementStyle=function(t,e,n){var a=s(t.renderView),o=a.boundElements[t.boundElementIndex];f.isPresent(n)?T.DOM.setStyle(o,e,f.stringify(n)):T.DOM.removeStyle(o,e)},e.prototype.invokeElementMethod=function(t,e,n){var a=s(t.renderView),o=a.boundElements[t.boundElementIndex];T.DOM.invoke(o,e,n)},e.prototype.setText=function(t,e,n){var a=s(t);T.DOM.setText(a.boundTextNodes[e],n)},e.prototype.setEventDispatcher=function(t,e){s(t).setEventDispatcher(e)},e}(v.Renderer);e.DomRenderer=O;var A=function(t){function e(e,n,s,a){t.call(this),this._eventManager=e,this._domSharedStylesHost=n,this._animate=s,this._componentTpls=new Map,this._createRootHostViewScope=y.wtfCreateScope("DomRenderer#createRootHostView()"),this._createViewScope=y.wtfCreateScope("DomRenderer#createView()"),this._detachFragmentScope=y.wtfCreateScope("DomRenderer#detachFragment()"),this._document=a}return p(e,t),e.prototype.registerComponentTemplate=function(t){if(this._componentTpls.set(t.id,t),t.encapsulation!==C.ViewEncapsulation.Native){var e=b.encapsulateStyles(t);this._domSharedStylesHost.addStyles(e)}},e.prototype.createProtoView=function(t,e){return new E.DefaultProtoViewRef(this._componentTpls.get(t),e)},e.prototype.resolveComponentTemplate=function(t){return this._componentTpls.get(t)},e.prototype.createRootHostView=function(t,e,n){var s=this._createRootHostViewScope(),a=T.DOM.querySelector(this._document,n);if(f.isBlank(a))throw y.wtfLeave(s),new m.BaseException('The selector "'+n+'" did not match any elements');return y.wtfLeave(s,this._createView(t,a))},e.prototype.createView=function(t,e){var n=this._createViewScope();return y.wtfLeave(n,this._createView(t,null))},e.prototype._createView=function(t,e){for(var n=t,s=b.createRenderView(n.template,n.cmds,e,this),a=s.nativeShadowRoots,o=0;o<a.length;o++)this._domSharedStylesHost.addHost(a[o]);return new v.RenderViewWithFragments(s,s.fragments)},e.prototype.destroyView=function(t){for(var e=t,n=e.nativeShadowRoots,s=0;s<n.length;s++)this._domSharedStylesHost.removeHost(n[s])},e.prototype.animateNodeEnter=function(t){T.DOM.isElementNode(t)&&T.DOM.hasClass(t,"ng-animate")&&(T.DOM.addClass(t,"ng-enter"),this._animate.css().addAnimationClass("ng-enter-active").start(t).onComplete(function(){T.DOM.removeClass(t,"ng-enter")}))},e.prototype.animateNodeLeave=function(t){T.DOM.isElementNode(t)&&T.DOM.hasClass(t,"ng-animate")?(T.DOM.addClass(t,"ng-leave"),this._animate.css().addAnimationClass("ng-leave-active").start(t).onComplete(function(){T.DOM.removeClass(t,"ng-leave"),T.DOM.remove(t)})):T.DOM.remove(t)},e.prototype.detachFragment=function(t){for(var e=this._detachFragmentScope(),n=a(t),s=0;s<n.length;s++)this.animateNodeLeave(n[s]);y.wtfLeave(e)},e.prototype.createElement=function(t,e){var n=r(t),s=f.isPresent(n[0])?T.DOM.createElementNS(S[n[0]],n[1]):T.DOM.createElement(n[1]);return this._setAttributes(s,e),s},e.prototype.mergeElement=function(t,e){T.DOM.clearNodes(t),this._setAttributes(t,e)},e.prototype._setAttributes=function(t,e){for(var n=0;n<e.length;n+=2){var s,a=e[n],o=r(a);f.isPresent(o[0])&&(a=o[0]+":"+o[1],s=S[o[0]]);var i=e[n+1];f.isPresent(s)?T.DOM.setAttributeNS(t,s,a,i):T.DOM.setAttribute(t,o[1],i)}},e.prototype.createRootContentInsertionPoint=function(){return T.DOM.createComment("root-content-insertion-point")},e.prototype.createShadowRoot=function(t,e){for(var n=T.DOM.createShadowRoot(t),s=this._componentTpls.get(e),a=0;a<s.styles.length;a++)T.DOM.appendChild(n,T.DOM.createStyleElement(s.styles[a]));return n},e.prototype.on=function(t,e,n){this._eventManager.addEventListener(t,e,i(n))},e.prototype.globalOn=function(t,e,n){return this._eventManager.addGlobalEventListener(t,e,i(n))},e=c([h.Injectable(),u(3,h.Inject(_.DOCUMENT)),l("design:paramtypes",[k.EventManager,g.DomSharedStylesHost,d.AnimationBuilder,Object])],e)}(O);e.DomRenderer_=A;var D=/^@([^:]+):(.+)/g},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(8),r=n(3),p=n(24),c=function(t){function e(){t.apply(this,arguments)}return s(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var s=this.manager.getZone(),a=function(t){return s.run(function(){return n(t)})};this.manager.getZone().runOutsideAngular(function(){i.DOM.on(t,e,a)})},e.prototype.addGlobalEventListener=function(t,e,n){var s=i.DOM.getGlobalEventTarget(t),a=this.manager.getZone(),o=function(t){return a.run(function(){return n(t)})};return this.manager.getZone().runOutsideAngular(function(){return i.DOM.onAndCancel(s,e,o)})},e=a([r.Injectable(),o("design:paramtypes",[])],e)}(p.EventManagerPlugin);e.DomEventsPlugin=c},function(t,e,n){"use strict";function s(t){return o.StringWrapper.replaceAllMapped(t,i,function(t){return"-"+t[1].toLowerCase()})}function a(t){return o.StringWrapper.replaceAllMapped(t,r,function(t){return t[1].toUpperCase()})}var o=n(1),i=/([A-Z])/g,r=/-([a-z])/g;e.camelCaseToDashCase=s,e.dashCaseToCamelCase=a},,,,,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(){this.isExpanded=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1}return Object.defineProperty(t.prototype,"collapse",{get:function(){return this.isExpanded},set:function(t){this.isExpanded=t,this.toggle()},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){this.isExpanded?this.hide():this.show()},t.prototype.hide=function(){var t=this;this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,setTimeout(function(){t.height="0",t.isCollapse=!0,t.isCollapsing=!1},4)},t.prototype.show=function(){var t=this;this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,setTimeout(function(){t.height="auto",t.isCollapse=!0,t.isCollapsing=!1},4)},s([o.HostBinding("style.height"),a("design:type",String)],t.prototype,"height",void 0),s([o.HostBinding("class.in"),o.HostBinding("attr.aria-expanded"),a("design:type",Boolean)],t.prototype,"isExpanded",void 0),s([o.HostBinding("attr.aria-hidden"),a("design:type",Boolean)],t.prototype,"isCollapsed",void 0),s([o.HostBinding("class.collapse"),a("design:type",Boolean)],t.prototype,"isCollapse",void 0),s([o.HostBinding("class.collapsing"),a("design:type",Boolean)],t.prototype,"isCollapsing",void 0),s([o.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],t.prototype,"collapse",null),t=s([o.Directive({selector:"[collapse]"}),a("design:paramtypes",[])],t)}();e.Collapse=i},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=function(){function t(t){this.viewRef=t}return Object.defineProperty(t.prototype,"ngTransclude",{get:function(){return this._ngTransclude},set:function(t){this._ngTransclude=t,t&&this.viewRef.createEmbeddedView(t)},enumerable:!0,configurable:!0}),t=s([i.Directive({selector:"[ngTransclude]",properties:["ngTransclude"]}),o(0,i.Inject(i.ViewContainerRef)),a("design:paramtypes",[i.ViewContainerRef])],t)}();e.NgTransclude=r},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(60),p=function(){function t(t,e){
|
||
this.dropdown=t,this.el=e}return t.prototype.ngOnInit=function(){this.dropdown.dropDownMenu=this},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),t=s([i.Directive({selector:"[dropdown-menu]"}),o(0,i.Host()),a("design:paramtypes",[r.Dropdown,i.ElementRef])],t)}();e.DropdownMenu=p},function(t,e){e.ALWAYS="always",e.DISABLED="disabled",e.OUTSIDECLICK="outsideClick";var n=function(){function t(){this.closeDropdownBind=this.closeDropdown.bind(this),this.keybindFilterBind=this.keybindFilter.bind(this)}return t.prototype.open=function(t){this.openScope||(window.document.addEventListener("click",this.closeDropdownBind),window.document.addEventListener("keydown",this.keybindFilterBind)),this.openScope&&this.openScope!==this.dropdownScope&&(this.openScope.isOpen=!1),this.openScope=t},t.prototype.close=function(t){this.openScope===t&&(this.openScope=null,window.document.removeEventListener("click",this.closeDropdownBind),window.document.removeEventListener("keydown",this.keybindFilterBind))},t.prototype.closeDropdown=function(t){this.openScope&&(t&&this.openScope.autoClose===e.DISABLED||t&&this.openScope.toggleEl&&this.openScope.toggleEl.nativeElement===t.target||t&&this.openScope.autoClose===e.OUTSIDECLICK&&this.openScope.menuEl&&this.openScope.menuEl.nativeElement===t.target||(this.openScope.isOpen=!1))},t.prototype.keybindFilter=function(t){return 27===t.which?(this.openScope.focusToggleElement(),void this.closeDropdown(null)):void(this.openScope.keyboardNav&&this.openScope.isOpen&&(38===t.which||40===t.which)&&(t.preventDefault(),t.stopPropagation(),this.openScope.focusDropdownEntry(t.which)))},t}();e.DropdownService=n,e.dropdownService=new n},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(60),p=function(){function t(t,e){this.dropdown=t,this.el=e,this.disabled=!1,this.addClass=!0}return t.prototype.ngOnInit=function(){this.dropdown.dropDownToggle=this},Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.dropdown.isOpen},enumerable:!0,configurable:!0}),t.prototype.toggleDropdown=function(t){return t.stopPropagation(),this.disabled||this.dropdown.toggle(),!1},s([i.HostBinding("class.disabled"),i.Input(),a("design:type",Boolean)],t.prototype,"disabled",void 0),s([i.HostBinding("class.dropdown-toggle"),i.HostBinding("attr.aria-haspopup"),a("design:type",Object)],t.prototype,"addClass",void 0),s([i.HostBinding("attr.aria-expanded"),a("design:type",Object)],t.prototype,"isOpen",null),s([i.HostListener("click",["$event"]),a("design:type",Function),a("design:paramtypes",[MouseEvent]),a("design:returntype",void 0)],t.prototype,"toggleDropdown",null),t=s([i.Directive({selector:"[dropdown-toggle]"}),o(0,i.Host()),a("design:paramtypes",[r.Dropdown,i.ElementRef])],t)}();e.DropdownToggle=p},function(t,e,n){"use strict";function s(t,n){c.reflector.reflectionCapabilities=new l.ReflectionCapabilities;var s=i.isPresent(n)?[e.BROWSER_APP_PROVIDERS,n]:e.BROWSER_APP_PROVIDERS;return c.platform(r.BROWSER_PROVIDERS).application(s).bootstrap(t)}var a=n(189);e.AngularEntrypoint=a.AngularEntrypoint;var o=n(159);e.BROWSER_PROVIDERS=o.BROWSER_PROVIDERS,e.ELEMENT_PROBE_BINDINGS=o.ELEMENT_PROBE_BINDINGS,e.ELEMENT_PROBE_PROVIDERS=o.ELEMENT_PROBE_PROVIDERS,e.inspectNativeElement=o.inspectNativeElement,e.BrowserDomAdapter=o.BrowserDomAdapter,e.By=o.By,e.Title=o.Title,e.DOCUMENT=o.DOCUMENT,e.enableDebugTools=o.enableDebugTools,e.disableDebugTools=o.disableDebugTools;var i=n(1),r=n(159),p=n(102),c=n(3),l=n(151),u=n(158),h=n(102),d=n(5);e.BROWSER_APP_PROVIDERS=i.CONST_EXPR([r.BROWSER_APP_COMMON_PROVIDERS,p.COMPILER_PROVIDERS,new d.Provider(h.XHR,{useClass:u.XHRImpl})]),e.bootstrap=s},function(t,e,n){"use strict";function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var a=n(8);e.DOM=a.DOM,e.setRootDomAdapter=a.setRootDomAdapter,e.DomAdapter=a.DomAdapter;var o=n(160);e.DomRenderer=o.DomRenderer;var i=n(37);e.DOCUMENT=i.DOCUMENT;var r=n(59);e.SharedStylesHost=r.SharedStylesHost,e.DomSharedStylesHost=r.DomSharedStylesHost;var p=n(161);e.DomEventsPlugin=p.DomEventsPlugin;var c=n(24);e.EVENT_MANAGER_PLUGINS=c.EVENT_MANAGER_PLUGINS,e.EventManager=c.EventManager,e.EventManagerPlugin=c.EventManagerPlugin,s(n(222)),s(n(223))},function(t,e,n){"use strict";var s=n(1),a=n(156),o=n(162),i=n(2),r=n(8),p=function(){function t(t,e,n){var a=this;this.element=t,this.data=e,this.browserDetails=n,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=s.DateWrapper.toMillis(s.DateWrapper.now()),this._stringPrefix=r.DOM.getAnimationPrefix(),this.setup(),this.wait(function(t){return a.start()})}return Object.defineProperty(t.prototype,"totalTime",{get:function(){var t=null!=this.computedDelay?this.computedDelay:0,e=null!=this.computedDuration?this.computedDuration:0;return t+e},enumerable:!0,configurable:!0}),t.prototype.wait=function(t){this.browserDetails.raf(t,2)},t.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},t.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var t=r.DOM.getComputedStyle(this.element);this.computedDelay=a.Math.max(this.parseDurationString(t.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=a.Math.max(this.parseDurationString(t.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},t.prototype.applyStyles=function(t){var e=this;i.StringMapWrapper.forEach(t,function(t,n){var a=o.camelCaseToDashCase(n);s.isPresent(r.DOM.getStyle(e.element,a))?r.DOM.setStyle(e.element,a,t.toString()):r.DOM.setStyle(e.element,e._stringPrefix+a,t.toString())})},t.prototype.addClasses=function(t){for(var e=0,n=t.length;n>e;e++)r.DOM.addClass(this.element,t[e])},t.prototype.removeClasses=function(t){for(var e=0,n=t.length;n>e;e++)r.DOM.removeClass(this.element,t[e])},t.prototype.addEvents=function(){var t=this;this.totalTime>0?this.eventClearFunctions.push(r.DOM.onAndCancel(this.element,r.DOM.getTransitionEnd(),function(e){return t.handleAnimationEvent(e)})):this.handleAnimationCompleted()},t.prototype.handleAnimationEvent=function(t){var e=a.Math.round(1e3*t.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(e+=this.computedDelay),t.stopPropagation(),e>=this.totalTime&&this.handleAnimationCompleted()},t.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(t){return t()}),this.callbacks=[],this.eventClearFunctions.forEach(function(t){return t()}),this.eventClearFunctions=[],this.completed=!0},t.prototype.onComplete=function(t){return this.completed?t():this.callbacks.push(t),this},t.prototype.parseDurationString=function(t){var e=0;if(null==t||t.length<2)return e;if("ms"==t.substring(t.length-2)){var n=s.NumberWrapper.parseInt(this.stripLetters(t),10);n>e&&(e=n)}else if("s"==t.substring(t.length-1)){var o=1e3*s.NumberWrapper.parseFloat(this.stripLetters(t)),n=a.Math.floor(o);n>e&&(e=n)}return e},t.prototype.stripLetters=function(t){return s.StringWrapper.replaceAll(t,s.RegExpWrapper.create("[^0-9]+$",""),"")},t}();e.Animation=p},function(t,e,n){"use strict";var s=n(176),a=n(174),o=function(){function t(t){this.browserDetails=t,this.data=new s.CssAnimationOptions}return t.prototype.addAnimationClass=function(t){return this.data.animationClasses.push(t),this},t.prototype.addClass=function(t){return this.data.classesToAdd.push(t),this},t.prototype.removeClass=function(t){return this.data.classesToRemove.push(t),this},t.prototype.setDuration=function(t){return this.data.duration=t,this},t.prototype.setDelay=function(t){return this.data.delay=t,this},t.prototype.setStyles=function(t,e){return this.setFromStyles(t).setToStyles(e)},t.prototype.setFromStyles=function(t){return this.data.fromStyles=t,this},t.prototype.setToStyles=function(t){return this.data.toStyles=t,this},t.prototype.start=function(t){return new a.Animation(t,this.data,this.browserDetails)},t}();e.CssAnimationBuilder=o},function(t,e){"use strict";var n=function(){function t(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return t}();e.CssAnimationOptions=n},,,,,,,,function(t,e,n){"use strict";function s(t,e,n,s){var o=[],i=new h(null,o,e);return l.templateVisitAll(i,s),a(o,t,n)}function a(t,e,n){var s=o(t);return t.map(function(t){var a=e.name+"_"+t.viewIndex;return new c.ChangeDetectorDefinition(a,t.strategy,s[t.viewIndex],t.bindingRecords,t.eventRecords,t.directiveRecords,n)})}function o(t){var e=i.ListWrapper.createFixedSize(t.length);return t.forEach(function(t){var n=r.isPresent(t.parent)?e[t.parent.viewIndex]:[];e[t.viewIndex]=n.concat(t.variableNames)}),e}var i=n(2),r=n(1),p=n(9),c=n(10),l=n(47),u=n(33);e.createChangeDetectorDefinitions=s;var h=function(){function t(t,e,n){this.parent=t,this.allVisitors=e,this.strategy=n,this.boundTextCount=0,this.boundElementCount=0,this.variableNames=[],this.bindingRecords=[],this.eventRecords=[],this.directiveRecords=[],this.viewIndex=e.length,e.push(this)}return t.prototype.visitEmbeddedTemplate=function(e,n){this.boundElementCount++,l.templateVisitAll(this,e.outputs);for(var s=0;s<e.directives.length;s++)e.directives[s].visit(this,s);var a=new t(this,this.allVisitors,c.ChangeDetectionStrategy.Default);return l.templateVisitAll(a,e.vars),l.templateVisitAll(a,e.children),null},t.prototype.visitElement=function(t,e){t.isBound()&&this.boundElementCount++,l.templateVisitAll(this,t.inputs,null),l.templateVisitAll(this,t.outputs),l.templateVisitAll(this,t.exportAsVars);for(var n=0;n<t.directives.length;n++)t.directives[n].visit(this,n);return l.templateVisitAll(this,t.children),null},t.prototype.visitNgContent=function(t,e){return null},t.prototype.visitVariable=function(t,e){return this.variableNames.push(t.name),null},t.prototype.visitEvent=function(t,e){var n=r.isPresent(e)?c.BindingRecord.createForHostEvent(t.handler,t.fullName,e):c.BindingRecord.createForEvent(t.handler,t.fullName,this.boundElementCount-1);return this.eventRecords.push(n),null},t.prototype.visitElementProperty=function(t,e){var n,s=this.boundElementCount-1,a=r.isPresent(e)?e.directiveIndex:null;return t.type===l.PropertyBindingType.Property?n=r.isPresent(a)?c.BindingRecord.createForHostProperty(a,t.value,t.name):c.BindingRecord.createForElementProperty(t.value,s,t.name):t.type===l.PropertyBindingType.Attribute?n=r.isPresent(a)?c.BindingRecord.createForHostAttribute(a,t.value,t.name):c.BindingRecord.createForElementAttribute(t.value,s,t.name):t.type===l.PropertyBindingType.Class?n=r.isPresent(a)?c.BindingRecord.createForHostClass(a,t.value,t.name):c.BindingRecord.createForElementClass(t.value,s,t.name):t.type===l.PropertyBindingType.Style&&(n=r.isPresent(a)?c.BindingRecord.createForHostStyle(a,t.value,t.name,t.unit):c.BindingRecord.createForElementStyle(t.value,s,t.name,t.unit)),this.bindingRecords.push(n),null},t.prototype.visitAttr=function(t,e){return null},t.prototype.visitBoundText=function(t,e){var n=this.boundTextCount++;return this.bindingRecords.push(c.BindingRecord.createForTextNode(t.value,n)),null},t.prototype.visitText=function(t,e){return null},t.prototype.visitDirective=function(t,e){var n=new c.DirectiveIndex(this.boundElementCount-1,e),s=t.directive,a=new c.DirectiveRecord({directiveIndex:n,callAfterContentInit:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.AfterContentInit),callAfterContentChecked:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.AfterContentChecked),callAfterViewInit:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.AfterViewInit),callAfterViewChecked:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.AfterViewChecked),callOnChanges:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.OnChanges),callDoCheck:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.DoCheck),callOnInit:-1!==s.lifecycleHooks.indexOf(u.LifecycleHooks.OnInit),changeDetection:s.changeDetection});this.directiveRecords.push(a),l.templateVisitAll(this,t.inputs,a);var o=this.bindingRecords;return a.callOnChanges&&o.push(c.BindingRecord.createDirectiveOnChanges(a)),a.callOnInit&&o.push(c.BindingRecord.createDirectiveOnInit(a)),a.callDoCheck&&o.push(c.BindingRecord.createDirectiveDoCheck(a)),l.templateVisitAll(this,t.hostProperties,a),l.templateVisitAll(this,t.hostEvents,a),l.templateVisitAll(this,t.exportAsVars),null},t.prototype.visitDirectiveProperty=function(t,e){var n=p.reflector.setter(t.directiveName);return this.bindingRecords.push(c.BindingRecord.createForDirective(t.value,t.directiveName,n,e)),null},t}()},function(t,e,n){"use strict";function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function a(){return new b.ChangeDetectorGenConfig(u.assertionsEnabled(),!1,!0)}var o=n(120),i=n(77);e.TemplateCompiler=i.TemplateCompiler;var r=n(46);e.CompileDirectiveMetadata=r.CompileDirectiveMetadata,e.CompileTypeMetadata=r.CompileTypeMetadata,e.CompileTemplateMetadata=r.CompileTemplateMetadata;var p=n(27);e.SourceModule=p.SourceModule,e.SourceWithImports=p.SourceWithImports;var c=n(55);e.PLATFORM_DIRECTIVES=c.PLATFORM_DIRECTIVES,e.PLATFORM_PIPES=c.PLATFORM_PIPES,s(n(47));var l=n(78);e.TEMPLATE_TRANSFORMS=l.TEMPLATE_TRANSFORMS;var u=n(1),h=n(5),d=n(78),f=n(73),m=n(124),g=n(121),y=n(119),v=n(123),k=n(71),_=n(77),b=n(10),E=n(23),C=n(120),T=n(75),w=n(187),S=n(28),P=n(10);e.COMPILER_PROVIDERS=u.CONST_EXPR([P.Lexer,P.Parser,f.HtmlParser,d.TemplateParser,m.TemplateNormalizer,g.RuntimeMetadataResolver,S.DEFAULT_PACKAGE_URL_PROVIDER,v.StyleCompiler,k.CommandCompiler,y.ChangeDetectionCompiler,new h.Provider(b.ChangeDetectorGenConfig,{useFactory:a,deps:[]}),_.TemplateCompiler,new h.Provider(C.RuntimeCompiler,{useClass:o.RuntimeCompiler_}),new h.Provider(E.Compiler,{useExisting:C.RuntimeCompiler}),w.DomElementSchemaRegistry,new h.Provider(T.ElementSchemaRegistry,{useExisting:w.DomElementSchemaRegistry}),S.UrlResolver])},function(t,e,n){"use strict";function s(t,e){return new et(new k.ParseSourceFile(t,e)).tokenize()}function a(t){var e=t===w?"EOF":y.StringWrapper.fromCharCode(t);return'Unexpected character "'+e+'"'}function o(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function i(t){return!r(t)||t===w}function r(t){return t>=S&&O>=t||t===J}function p(t){return r(t)||t===W||t===B||t===I||t===D||t===V}function c(t){return($>t||t>Y)&&(z>t||t>G)&&(L>t||t>U)}function l(t){return t==j||t==w||!f(t)}function u(t){return t==j||t==w||!d(t)}function h(t){return t===F||t===w}function d(t){return t>=$&&Y>=t}function f(t){return t>=$&&K>=t||t>=L&&U>=t}function m(t){for(var e,n=[],s=0;s<t.length;s++){var a=t[s];y.isPresent(e)&&e.type==b.TEXT&&a.type==b.TEXT?(e.parts[0]+=a.parts[0],e.sourceSpan.end=a.sourceSpan.end):(e=a,n.push(e))}return n}var g=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},y=n(1),v=n(2),k=n(74),_=n(26);!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.TEXT=4]="TEXT",t[t.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=6]="RAW_TEXT",t[t.COMMENT_START=7]="COMMENT_START",t[t.COMMENT_END=8]="COMMENT_END",t[t.CDATA_START=9]="CDATA_START",t[t.CDATA_END=10]="CDATA_END",t[t.ATTR_NAME=11]="ATTR_NAME",t[t.ATTR_VALUE=12]="ATTR_VALUE",t[t.DOC_TYPE=13]="DOC_TYPE",t[t.EOF=14]="EOF"}(e.HtmlTokenType||(e.HtmlTokenType={}));var b=e.HtmlTokenType,E=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}();e.HtmlToken=E;var C=function(t){function e(e,n,s){t.call(this,s,e),this.tokenType=n}return g(e,t),e}(k.ParseError);e.HtmlTokenError=C;var T=function(){function t(t,e){this.tokens=t,this.errors=e}return t}();e.HtmlTokenizeResult=T,e.tokenizeHtml=s;var w=0,S=9,P=10,R=13,O=32,A=33,D=34,x=35,M=38,I=39,N=45,B=47,L=48,j=59,U=57,H=58,F=60,V=61,W=62,z=65,G=90,q=91,X=93,$=97,K=102,Y=122,Z=120,J=160,Q=/\r\n?/g,tt=function(){function t(t){this.error=t}return t}(),et=function(){function t(t){this.file=t,this.peek=-1,this.index=-1,this.line=0,this.column=-1,this.tokens=[],this.errors=[],this.input=t.content,this.inputLowercase=t.content.toLowerCase(),this.length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return y.StringWrapper.replaceAll(t,Q,"\n")},t.prototype.tokenize=function(){for(;this.peek!==w;){var t=this._getLocation();try{this._attemptChar(F)?this._attemptChar(A)?this._attemptChar(q)?this._consumeCdata(t):this._attemptChar(N)?this._consumeComment(t):this._consumeDocType(t):this._attemptChar(B)?this._consumeTagClose(t):this._consumeTagOpen(t):this._consumeText()}catch(e){if(!(e instanceof tt))throw e;this.errors.push(e.error)}}return this._beginToken(b.EOF),this._endToken([]),new T(m(this.tokens),this.errors)},t.prototype._getLocation=function(){return new k.ParseLocation(this.file,this.index,this.line,this.column)},t.prototype._beginToken=function(t,e){void 0===e&&(e=null),y.isBlank(e)&&(e=this._getLocation()),this.currentTokenStart=e,this.currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=null),y.isBlank(e)&&(e=this._getLocation());var n=new E(this.currentTokenType,t,new k.ParseSourceSpan(this.currentTokenStart,e));return this.tokens.push(n),this.currentTokenStart=null,this.currentTokenType=null,n},t.prototype._createError=function(t,e){var n=new C(t,this.currentTokenType,e);return this.currentTokenStart=null,this.currentTokenType=null,new tt(n)},t.prototype._advance=function(){if(this.index>=this.length)throw this._createError(a(w),this._getLocation());this.peek===P?(this.line++,this.column=0):this.peek!==P&&this.peek!==R&&this.column++,this.index++,this.peek=this.index>=this.length?w:y.StringWrapper.charCodeAt(this.inputLowercase,this.index)},t.prototype._attemptChar=function(t){return this.peek===t?(this._advance(),!0):!1},t.prototype._requireChar=function(t){var e=this._getLocation();if(!this._attemptChar(t))throw this._createError(a(this.peek),e)},t.prototype._attemptChars=function(t){for(var e=0;e<t.length;e++)if(!this._attemptChar(y.StringWrapper.charCodeAt(t,e)))return!1;return!0},t.prototype._requireChars=function(t){var e=this._getLocation();if(!this._attemptChars(t))throw this._createError(a(this.peek),e)},t.prototype._attemptUntilFn=function(t){for(;!t(this.peek);)this._advance()},t.prototype._requireUntilFn=function(t,e){var n=this._getLocation();if(this._attemptUntilFn(t),this.index-n.offset<e)throw this._createError(a(this.peek),n)},t.prototype._attemptUntilChar=function(t){for(;this.peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this.peek===M)return this._decodeEntity();var e=this.index;return this._advance(),this.input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptChar(x)){var e=this._savePosition();if(this._attemptUntilFn(u),this.peek!=j)return this._restorePosition(e),"&";this._advance();var n=this.input.substring(t.offset+1,this.index-1),s=_.NAMED_ENTITIES[n];if(y.isBlank(s))throw this._createError(o(n),t);return s}var i=this._attemptChar(Z),r=this._getLocation().offset;if(this._attemptUntilFn(l),this.peek!=j)throw this._createError(a(this.peek),this._getLocation());this._advance();var p=this.input.substring(r,this.index-1);try{var c=y.NumberWrapper.parseInt(p,i?16:10);return y.StringWrapper.fromCharCode(c)}catch(h){var d=this.input.substring(t.offset+1,this.index-1);throw this._createError(o(d),t)}},t.prototype._consumeRawText=function(t,e,n){var s,a=this._getLocation();this._beginToken(t?b.ESCAPABLE_RAW_TEXT:b.RAW_TEXT,a);for(var o=[];s=this._getLocation(),!this._attemptChar(e)||!n();)for(this.index>s.offset&&o.push(this.input.substring(s.offset,this.index));this.peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],s)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(b.COMMENT_START,t),this._requireChar(N),this._endToken([]);var n=this._consumeRawText(!1,N,function(){return e._attemptChars("->")});this._beginToken(b.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(b.CDATA_START,t),this._requireChars("cdata["),this._endToken([]);var n=this._consumeRawText(!1,X,function(){return e._attemptChars("]>")});this._beginToken(b.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(b.DOC_TYPE,t),this._attemptUntilChar(W),this._advance(),this._endToken([this.input.substring(t.offset+2,this.index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this.index,e=null;this.peek!==H&&!c(this.peek);)this._advance();var n;this.peek===H?(this._advance(),e=this.input.substring(t,this.index-1),n=this.index):n=t,this._requireUntilFn(p,this.index===n?1:0);var s=this.input.substring(n,this.index);return[e,s]},t.prototype._consumeTagOpen=function(t){var e,n=this._savePosition();try{if(!d(this.peek))throw this._createError(a(this.peek),this._getLocation());var s=this.index;for(this._consumeTagOpenStart(t),e=this.inputLowercase.substring(s,this.index),this._attemptUntilFn(i);this.peek!==B&&this.peek!==W;)this._consumeAttributeName(),this._attemptUntilFn(i),this._attemptChar(V)&&(this._attemptUntilFn(i),this._consumeAttributeValue()),this._attemptUntilFn(i);this._consumeTagOpenEnd()}catch(o){if(o instanceof tt)return this._restorePosition(n),this._beginToken(b.TEXT,t),void this._endToken(["<"]);throw o}var r=_.getHtmlTagDefinition(e).contentType;r===_.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(e,!1):r===_.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(e,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,s=this._consumeRawText(e,F,function(){return n._attemptChar(B)?(n._attemptUntilFn(i),n._attemptChars(t)?(n._attemptUntilFn(i),n._attemptChar(W)?!0:!1):!1):!1});this._beginToken(b.TAG_CLOSE,s.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(b.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(b.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(b.ATTR_VALUE);var t;if(this.peek===I||this.peek===D){var e=this.peek;this._advance();for(var n=[];this.peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var s=this.index;this._requireUntilFn(p,1),t=this.input.substring(s,this.index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptChar(B)?b.TAG_OPEN_END_VOID:b.TAG_OPEN_END;this._beginToken(t),this._requireChar(W),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(b.TAG_CLOSE,t),this._attemptUntilFn(i);var e;e=this._consumePrefixAndName(),this._attemptUntilFn(i),this._requireChar(W),this._endToken(e)},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(b.TEXT,t);for(var e=[this._readChar(!0)];!h(this.peek);)e.push(this._readChar(!0));this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},t.prototype._restorePosition=function(t){this.peek=t[0],this.index=t[1],this.column=t[2],this.line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=v.ListWrapper.slice(this.tokens,0,e))},t}()},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(5),r=n(1),p=n(2),c=n(8),l=n(26),u=n(75),h=r.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),d=function(t){function e(){t.apply(this,arguments),this._protoElements=new Map}return s(e,t),e.prototype._getProtoElement=function(t){var e=this._protoElements.get(t);if(r.isBlank(e)){var n=l.splitNsName(t);e=r.isPresent(n[0])?c.DOM.createElementNS(h[n[0]],n[1]):c.DOM.createElement(n[1]),this._protoElements.set(t,e)}return e},e.prototype.hasProperty=function(t,e){if(-1!==t.indexOf("-"))return!0;var n=this._getProtoElement(t);return c.DOM.hasProperty(n,e)},e.prototype.getMappedPropName=function(t){var e=p.StringMapWrapper.get(c.DOM.attrToPropMap,t);return r.isPresent(e)?e:t},e=a([i.Injectable(),o("design:paramtypes",[])],e)}(u.ElementSchemaRegistry);e.DomElementSchemaRegistry=d},function(t,e,n){"use strict";function s(t){return r.StringWrapper.replaceAllMapped(t,C,function(t){return""})}function a(t,e){var n=o(t),s=0;return r.StringWrapper.replaceAllMapped(n.escapedString,T,function(t){var a=t[2],o="",i=t[4],p="";r.isPresent(t[4])&&t[4].startsWith("{"+R)&&(o=n.blocks[s++],i=t[4].substring(R.length+1),p="{");var c=e(new O(a,o));return""+t[1]+c.selector+t[3]+p+c.content+i})}function o(t){for(var e=r.StringWrapper.split(t,w),n=[],s=[],a=0,o=[],i=0;i<e.length;i++){var p=e[i];p==P&&a--,a>0?o.push(p):(o.length>0&&(s.push(o.join("")),n.push(R),o=[]),n.push(p)),p==S&&a++}return o.length>0&&(s.push(o.join("")),n.push(R)),new A(n.join(""),s)}var i=n(2),r=n(1),p=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){return void 0===n&&(n=""),t=s(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return r.StringWrapper.replaceAllMapped(t,c,function(t){return t[1]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return r.StringWrapper.replaceAllMapped(t,l,function(t){var e=t[0];return e=r.StringWrapper.replace(e,t[1],""),e=r.StringWrapper.replace(e,t[2],""),t[3]+e})},t.prototype._scopeCssText=function(t,e,n){var s=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),r.isPresent(e)&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+s,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){for(var e,n="",s=r.RegExpWrapper.matcher(u,t);r.isPresent(e=r.RegExpMatcherWrapper.next(s));){var a=e[0];a=r.StringWrapper.replace(a,e[2],""),a=r.StringWrapper.replace(a,e[1],e[3]),n+=a+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,m,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,g,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return r.StringWrapper.replaceAllMapped(t,e,function(t){if(r.isPresent(t[2])){for(var e=t[2].split(","),s=[],a=0;a<e.length;a++){var o=e[a];if(r.isBlank(o))break;o=o.trim(),s.push(n(y,o,t[3]))}return s.join(",")}return y+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return r.StringWrapper.contains(e,h)?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+r.StringWrapper.replace(e,h,"")+n},t.prototype._convertShadowDOMSelectors=function(t){for(var e=0;e<v.length;e++)t=r.StringWrapper.replaceAll(t,v[e]," ");return t},t.prototype._scopeSelectors=function(t,e,n){var s=this;return a(t,function(t){var a=t.selector,o=t.content;return"@"!=t.selector[0]||t.selector.startsWith("@page")?a=s._scopeSelector(t.selector,e,n,s.strictStyling):t.selector.startsWith("@media")&&(o=s._scopeSelectors(t.content,e,n)),new O(a,o)})},t.prototype._scopeSelector=function(t,e,n,s){for(var a=[],o=t.split(","),i=0;i<o.length;i++){var p=o[i];p=p.trim(),this._selectorNeedsScoping(p,e)&&(p=s&&!r.StringWrapper.contains(p,y)?this._applyStrictSelectorScope(p,e):this._applySelectorScope(p,e,n)),a.push(p)}return a.join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!r.isPresent(r.RegExpWrapper.firstMatch(n,t))},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=r.StringWrapper.replaceAll(t,e,"\\["),t=r.StringWrapper.replaceAll(t,n,"\\]"),r.RegExpWrapper.create("^("+t+")"+k,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(r.isPresent(r.RegExpWrapper.firstMatch(_,t))){var s=this.strictStyling?"["+n+"]":e;return t=r.StringWrapper.replace(t,y,s),r.StringWrapper.replaceAll(t,_,s+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e){var n=/\[is=([^\]]*)\]/g;e=r.StringWrapper.replaceAllMapped(e,n,function(t){return t[1]});for(var s=[" ",">","+","~"],a=t,o="["+e+"]",p=0;p<s.length;p++){var c=s[p],l=a.split(c);a=l.map(function(t){var e=r.StringWrapper.replaceAll(t.trim(),_,"");if(e.length>0&&!i.ListWrapper.contains(s,e)&&!r.StringWrapper.contains(e,o)){var n=/([^:]*)(:*)(.*)/g,a=r.RegExpWrapper.firstMatch(n,e);r.isPresent(a)&&(t=a[1]+o+a[2]+a[3])}return t}).join(c)}return a},t.prototype._insertPolyfillHostInCssText=function(t){return t=r.StringWrapper.replaceAll(t,E,d),t=r.StringWrapper.replaceAll(t,b,h)},t}();e.ShadowCss=p;var c=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,l=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,u=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,h="-shadowcsshost",d="-shadowcsscontext",f=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",m=r.RegExpWrapper.create("("+h+f,"im"),g=r.RegExpWrapper.create("("+d+f,"im"),y=h+"-no-combinator",v=[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow-deep\//g,/\/shadow\//g],k="([>\\s~+[.,{:][\\s\\S]*)?$",_=r.RegExpWrapper.create(h,"im"),b=/:host/gim,E=/:host-context/gim,C=/\/\*[\s\S]*?\*\//g,T=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,S="{",P="}",R="%BLOCK%",O=function(){function t(t,e){this.selector=t,this.content=e}return t}();e.CssRule=O,e.processRules=a;var A=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}()},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),
|
||
i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(1),i=function(){function t(t){this.name=t}return t=s([o.CONST(),a("design:paramtypes",[String])],t)}();e.AngularEntrypoint=i},,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";function n(){}e.wtfInit=n},,,,,function(t,e){"use strict";var n=window;e.window=n,e.document=window.document,e.location=window.location,e.gc=window.gc?function(){return window.gc()}:function(){return null},e.performance=window.performance?window.performance:null,e.Event=window.Event,e.MouseEvent=window.MouseEvent,e.KeyboardEvent=window.KeyboardEvent,e.EventTarget=window.EventTarget,e.History=window.History,e.Location=window.Location,e.EventListener=window.EventListener},,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(2),o=n(1),i=n(8),r=n(158),p=function(t){function e(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(o.isPresent(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var s=["Webkit","Moz","O","ms"],i=0;i<s.length;i++)if(o.isPresent(this.getStyle(n,s[i]+"AnimationName"))){this._animationPrefix="-"+s[i].toLowerCase()+"-";break}var r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};a.StringMapWrapper.forEach(r,function(t,s){o.isPresent(e.getStyle(n,s))&&(e._transitionEnd=t)})}catch(p){this._animationPrefix=null,this._transitionEnd=null}}return s(e,t),e.prototype.getXHR=function(){return r.XHRImpl},e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return o.isFunction(this.defaultDoc().body.createShadowRoot)},e.prototype.getAnimationPrefix=function(){return o.isPresent(this._animationPrefix)?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return o.isPresent(this._transitionEnd)?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return o.isPresent(this._animationPrefix)&&o.isPresent(this._transitionEnd)},e}(i.DomAdapter);e.GenericBrowserDomAdapter=p},function(t,e,n){"use strict";var s=n(1),a=n(8),o=n(3),i=function(){function t(t){this._testability=t}return t.prototype.isStable=function(){return this._testability.isStable()},t.prototype.whenStable=function(t){this._testability.whenStable(t)},t.prototype.findBindings=function(t,e,n){return this.findProviders(t,e,n)},t.prototype.findProviders=function(t,e,n){return this._testability.findBindings(t,e,n)},t}(),r=function(){function t(){}return t.init=function(){o.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){s.global.getAngularTestability=function(e,n){void 0===n&&(n=!0);var s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return new i(s)},s.global.getAllAngularTestabilities=function(){var e=t.getAllTestabilities();return e.map(function(t){return new i(t)})}},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return s.isPresent(o)?o:n?a.DOM.isShadowRoot(e)?this.findTestabilityInTree(t,a.DOM.getHost(e),!0):this.findTestabilityInTree(t,a.DOM.parentElement(e),!0):null},t}();e.BrowserGetTestability=r},function(t,e,n){"use strict";var s=n(8),a=function(){function t(){}return t.prototype.getTitle=function(){return s.DOM.getTitle()},t.prototype.setTitle=function(t){s.DOM.setTitle(t)},t}();e.Title=a},function(t,e,n){"use strict";var s=n(126),a=n(1),o=n(215),i=n(8),r=function(){function t(t){this.profiler=new p(t)}return t}();e.AngularTools=r;var p=function(){function t(t){this.appRef=t.injector.get(s.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=a.isPresent(t)&&t.record,n="Change Detection",s=a.isPresent(o.window.console.profile);e&&s&&o.window.console.profile(n);for(var r=i.DOM.performanceNow(),p=0;5>p||i.DOM.performanceNow()-r<500;)this.appRef.tick(),p++;var c=i.DOM.performanceNow();e&&s&&o.window.console.profileEnd(n);var l=(c-r)/p;o.window.console.log("ran "+p+" change detection cycles"),o.window.console.log(a.NumberWrapper.toFixed(l,2)+" ms per check")},t}();e.AngularProfiler=p},function(t,e,n){"use strict";function s(t){r.ng=new i.AngularTools(t)}function a(){delete r.ng}var o=n(1),i=n(220),r=o.global;e.enableDebugTools=s,e.disableDebugTools=a},function(t,e,n){"use strict";var s=n(1),a=n(8),o=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return s.isPresent(e.nativeElement)?a.DOM.elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return e.hasDirective(t)}},t}();e.By=o},function(t,e,n){"use strict";function s(t,e){p.isPresent(t)&&h.DOM.isElementNode(t)&&h.DOM.setData(t,m,e.join(y))}function a(t){var e=h.DOM.getData(t,m);return p.isPresent(e)?e.split(y).map(function(t){return p.NumberWrapper.parseInt(t,10)}):null}function o(t){var e=a(t);if(p.isPresent(e)){var n=k.get(e[0]);if(p.isPresent(n))return new f.DebugElement_(n,e[1])}return null}var i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=n(1),c=n(2),l=n(5),u=n(89),h=n(8),d=n(18),f=n(140),m="ngid",g="ng.probe",y="#",v=new c.Map,k=new c.Map,_=0;e.inspectNativeElement=o;var b=function(){function t(t){this._renderer=t,h.DOM.setGlobalVar(g,o)}return t.prototype.onViewCreated=function(t){var e=_++;k.set(e,t),v.set(t,e);for(var n=0;n<t.elementRefs.length;n++){var a=t.elementRefs[n];s(this._renderer.getNativeElementSync(a),[e,n])}},t.prototype.onViewDestroyed=function(t){var e=v.get(t);v["delete"](t),k["delete"](e)},t=i([l.Injectable(),r("design:paramtypes",[d.Renderer])],t)}();e.DebugElementViewListener=b,e.ELEMENT_PROBE_PROVIDERS=p.CONST_EXPR([b,p.CONST_EXPR(new l.Provider(u.AppViewListener,{useExisting:b}))]),e.ELEMENT_PROBE_BINDINGS=e.ELEMENT_PROBE_PROVIDERS},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(24),o=n(2),i={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},r=function(t){function e(){t.call(this)}return s(e,t),e.prototype.supports=function(t){return t=t.toLowerCase(),o.StringMapWrapper.contains(i,t)},e}(a.EventManagerPlugin);e.HammerGesturesPluginCommon=r},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(224),r=n(1),p=n(4),c=n(5),l=function(t){function e(){t.apply(this,arguments)}return s(e,t),e.prototype.supports=function(e){if(!t.prototype.supports.call(this,e))return!1;if(!r.isPresent(window.Hammer))throw new p.BaseException("Hammer.js is not loaded, can not bind "+e+" event");return!0},e.prototype.addEventListener=function(t,e,n){var s=this.manager.getZone();e=e.toLowerCase(),s.runOutsideAngular(function(){var a=new Hammer(t);a.get("pinch").set({enable:!0}),a.get("rotate").set({enable:!0}),a.on(e,function(t){s.run(function(){n(t)})})})},e=a([c.Injectable(),o("design:paramtypes",[])],e)}(i.HammerGesturesPluginCommon);e.HammerGesturesPlugin=l},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(8),r=n(1),p=n(2),c=n(24),l=n(5),u=["alt","control","meta","shift"],h={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},d=function(t){function e(){t.call(this)}return s(e,t),e.prototype.supports=function(t){return r.isPresent(e.parseEventName(t))},e.prototype.addEventListener=function(t,n,s){var a=e.parseEventName(n),o=e.eventCallback(t,p.StringMapWrapper.get(a,"fullKey"),s,this.manager.getZone());this.manager.getZone().runOutsideAngular(function(){i.DOM.on(t,p.StringMapWrapper.get(a,"domEventName"),o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||!r.StringWrapper.equals(s,"keydown")&&!r.StringWrapper.equals(s,"keyup"))return null;var a=e._normalizeKey(n.pop()),o="";if(u.forEach(function(t){p.ListWrapper.contains(n,t)&&(p.ListWrapper.remove(n,t),o+=t+".")}),o+=a,0!=n.length||0===a.length)return null;var i=p.StringMapWrapper.create();return p.StringMapWrapper.set(i,"domEventName",s),p.StringMapWrapper.set(i,"fullKey",o),i},e.getEventFullKey=function(t){var e="",n=i.DOM.getEventKey(t);return n=n.toLowerCase(),r.StringWrapper.equals(n," ")?n="space":r.StringWrapper.equals(n,".")&&(n="dot"),u.forEach(function(s){if(s!=n){var a=p.StringMapWrapper.get(h,s);a(t)&&(e+=s+".")}}),e+=n},e.eventCallback=function(t,n,s,a){return function(t){r.StringWrapper.equals(e.getEventFullKey(t),n)&&a.run(function(){return s(t)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e=a([l.Injectable(),o("design:paramtypes",[])],e)}(c.EventManagerPlugin);e.KeyEventsPlugin=d},function(t,e){"use strict";var n=function(){function t(t){}return t.prototype.generate=function(t,e,n){throw"Not implemented in JS"},t.prototype.toString=function(){throw"Not implemented in JS"},t}();e.Codegen=n},function(t,e){t.exports='<h3 id="usage">Usage</h3>\n<pre class="language-typescript"><code class="language-typescript"><span class="token keyword" >import</span> <span class="token punctuation" >{</span>FileSelect<span class="token punctuation" >,</span> FileDrop<span class="token punctuation" >,</span> FileUploader<span class="token punctuation" >}</span> from <span class="token string" >\'ng2-file-upload\'</span><span class="token punctuation" >;</span>\n</code></pre>\n<h3 id="annotations">Annotations</h3>\n<pre class="language-typescript"><code class="language-typescript"><span class="token comment" spellcheck="true">// class FileSelect</span>\n@<span class="token function" >Directive</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>\n selector<span class="token punctuation" >:</span> <span class="token string" >\'[ng2-file-select]\'</span><span class="token punctuation" >,</span>\n properties<span class="token punctuation" >:</span> <span class="token punctuation" >[</span><span class="token string" >\'uploader\'</span><span class="token punctuation" >]</span><span class="token punctuation" >,</span>\n host<span class="token punctuation" >:</span> <span class="token punctuation" >{</span>\n <span class="token string" >\'(change)\'</span><span class="token punctuation" >:</span> <span class="token string" >\'onChange()\'</span>\n <span class="token punctuation" >}</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span>\n</code></pre>\n<pre class="language-typescript"><code class="language-typescript"><span class="token comment" spellcheck="true">// class FileDrop</span>\n@<span class="token function" >Directive</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>\n selector<span class="token punctuation" >:</span> <span class="token string" >\'[ng2-file-drop]\'</span><span class="token punctuation" >,</span>\n properties<span class="token punctuation" >:</span> <span class="token punctuation" >[</span><span class="token string" >\'uploader\'</span><span class="token punctuation" >]</span><span class="token punctuation" >,</span>\n events<span class="token punctuation" >:</span> <span class="token punctuation" >[</span><span class="token string" >\'fileOver\'</span><span class="token punctuation" >]</span><span class="token punctuation" >,</span>\n host<span class="token punctuation" >:</span> <span class="token punctuation" >{</span>\n <span class="token string" >\'(drop)\'</span><span class="token punctuation" >:</span> <span class="token string" >\'onDrop($event)\'</span><span class="token punctuation" >,</span>\n <span class="token string" >\'(dragover)\'</span><span class="token punctuation" >:</span> <span class="token string" >\'onDragOver($event)\'</span><span class="token punctuation" >,</span>\n <span class="token string" >\'(dragleave)\'</span><span class="token punctuation" >:</span> <span class="token string" >\'onDragLeave($event)\'</span>\n <span class="token punctuation" >}</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span>\n</code></pre>\n<h2 id="fileselect-api">FileSelect API</h2>\n<h3 id="properties">Properties</h3>\n<ul>\n<li><p><code>uploader</code> - (<code>FileUploader</code>) - uploader object. See using in <a href="https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.ts">demo</a></p>\n<p>Parameters that supported by this object:</p>\n</li>\n<li><p><code>url</code> - URL of File Uploader's route</p>\n</li>\n<li><code>authToken</code> - auth token that will be applied as 'Authorization' header during file send.</li>\n</ul>\n<h2 id="filedrop-api">FileDrop API</h2>\n<h3 id="properties">Properties</h3>\n<ul>\n<li><code>uploader</code> - (<code>FileUploader</code>) - uploader object. See using in <a href="https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.ts">demo</a></li>\n</ul>\n<h3 id="events">Events</h3>\n<ul>\n<li><code>file-over</code> - it fires during 'over' and 'out' events for Drop Area; returns <code>boolean</code>: <code>true</code> if file is over Drop Area, <code>false</code> in case of out.\nSee using in <a href="https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.ts">ts demo</a> and\n<a href="https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.html">html demo</a></li>\n</ul>\n'},function(t,e){t.exports='<h1 id="getting-started">Getting started</h1>\n<h2 id="first-of-all-welcome-">First of all, Welcome!</h2>\n<h3 id="install">Install</h3>\n<p>Install the components</p>\n<pre><code>npm install ng2-file-upload --save\n</code></pre>'},function(t,e){t.exports='<span class="token keyword" >var</span> express <span class="token operator" >=</span> <span class="token function" >require</span><span class="token punctuation" >(</span><span class="token string" >\'express\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token keyword" >var</span> multer <span class="token operator" >=</span> <span class="token function" >require</span><span class="token punctuation" >(</span><span class="token string" >\'multer\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token keyword" >var</span> fs <span class="token operator" >=</span> <span class="token function" >require</span><span class="token punctuation" >(</span><span class="token string" >\'fs\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token keyword" >var</span> app <span class="token operator" >=</span> <span class="token function" >express</span><span class="token punctuation" >(</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\n<span class="token keyword" >var</span> DIR <span class="token operator" >=</span> <span class="token string" >\'./uploads/\'</span><span class="token punctuation" >;</span>\n\n<span class="token keyword" >var</span> upload <span class="token operator" >=</span> <span class="token function" >multer</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>dest<span class="token punctuation" >:</span> DIR<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\napp<span class="token punctuation" >.</span><span class="token function" >use</span><span class="token punctuation" >(</span><span class="token keyword" >function</span> <span class="token punctuation" >(</span>req<span class="token punctuation" >,</span> res<span class="token punctuation" >,</span> next<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n res<span class="token punctuation" >.</span><span class="token function" >setHeader</span><span class="token punctuation" >(</span><span class="token string" >\'Access-Control-Allow-Origin\'</span><span class="token punctuation" >,</span> <span class="token string" >\'http://valor-software.github.io\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n res<span class="token punctuation" >.</span><span class="token function" >setHeader</span><span class="token punctuation" >(</span><span class="token string" >\'Access-Control-Allow-Methods\'</span><span class="token punctuation" >,</span> <span class="token string" >\'POST\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n res<span class="token punctuation" >.</span><span class="token function" >setHeader</span><span class="token punctuation" >(</span><span class="token string" >\'Access-Control-Allow-Headers\'</span><span class="token punctuation" >,</span> <span class="token string" >\'X-Requested-With,content-type\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n res<span class="token punctuation" >.</span><span class="token function" >setHeader</span><span class="token punctuation" >(</span><span class="token string" >\'Access-Control-Allow-Credentials\'</span><span class="token punctuation" >,</span> <span class="token keyword" >true</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token function" >next</span><span class="token punctuation" >(</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\napp<span class="token punctuation" >.</span><span class="token function" >use</span><span class="token punctuation" >(</span><span class="token function" >multer</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>\n dest<span class="token punctuation" >:</span> DIR<span class="token punctuation" >,</span>\n rename<span class="token punctuation" >:</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>fieldname<span class="token punctuation" >,</span> filename<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >return</span> filename <span class="token operator" >+</span> Date<span class="token punctuation" >.</span><span class="token function" >now</span><span class="token punctuation" >(</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span><span class="token punctuation" >,</span>\n onFileUploadStart<span class="token punctuation" >:</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>file<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n console<span class="token punctuation" >.</span><span class="token function" >log</span><span class="token punctuation" >(</span>file<span class="token punctuation" >.</span>originalname <span class="token operator" >+</span> <span class="token string" >\' is starting ...\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span><span class="token punctuation" >,</span>\n onFileUploadComplete<span class="token punctuation" >:</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>file<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n console<span class="token punctuation" >.</span><span class="token function" >log</span><span class="token punctuation" >(</span>file<span class="token punctuation" >.</span>fieldname <span class="token operator" >+</span> <span class="token string" >\' uploaded to \'</span> <span class="token operator" >+</span> file<span class="token punctuation" >.</span>path<span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\napp<span class="token punctuation" >.</span><span class="token keyword" >get</span><span class="token punctuation" >(</span><span class="token string" >\'/api\'</span><span class="token punctuation" >,</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>req<span class="token punctuation" >,</span> res<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n res<span class="token punctuation" >.</span><span class="token function" >end</span><span class="token punctuation" >(</span><span class="token string" >\'file catcher example\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\napp<span class="token punctuation" >.</span><span class="token function" >post</span><span class="token punctuation" >(</span><span class="token string" >\'/api\'</span><span class="token punctuation" >,</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>req<span class="token punctuation" >,</span> res<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token function" >upload</span><span class="token punctuation" >(</span>req<span class="token punctuation" >,</span> res<span class="token punctuation" >,</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span>err<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >if</span> <span class="token punctuation" >(</span>err<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >return</span> res<span class="token punctuation" >.</span><span class="token function" >end</span><span class="token punctuation" >(</span>err<span class="token punctuation" >.</span><span class="token function" >toString</span><span class="token punctuation" >(</span><span class="token punctuation" >)</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span>\n\n res<span class="token punctuation" >.</span><span class="token function" >end</span><span class="token punctuation" >(</span><span class="token string" >\'File is uploaded\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\n<span class="token keyword" >var</span> PORT <span class="token operator" >=</span> process<span class="token punctuation" >.</span>env<span class="token punctuation" >.</span>PORT <span class="token operator" >||</span> <span class="token number" >3000</span><span class="token punctuation" >;</span>\n\napp<span class="token punctuation" >.</span><span class="token function" >listen</span><span class="token punctuation" >(</span>PORT<span class="token punctuation" >,</span> <span class="token keyword" >function</span> <span class="token punctuation" >(</span><span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n console<span class="token punctuation" >.</span><span class="token function" >log</span><span class="token punctuation" >(</span><span class="token string" >\'Working on port \'</span> <span class="token operator" >+</span> PORT<span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n'},function(t,e){t.exports='<span class="token style language-css" ><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>style</span><span class="token punctuation" >></span></span>\n <span class="token selector" >.my-drop-zone</span> <span class="token punctuation" >{</span> <span class="token property" >border</span><span class="token punctuation" >:</span> dotted 3px lightgray<span class="token punctuation" >;</span> <span class="token punctuation" >}</span>\n <span class="token selector" >.nv-file-over</span> <span class="token punctuation" >{</span> <span class="token property" >border</span><span class="token punctuation" >:</span> dotted 3px red<span class="token punctuation" >;</span> <span class="token punctuation" >}</span> <span class="token comment" spellcheck="true">/* Default class applied to drop zones on over */</span>\n <span class="token selector" >.another-file-over-class</span> <span class="token punctuation" >{</span> <span class="token property" >border</span><span class="token punctuation" >:</span> dotted 3px green<span class="token punctuation" >;</span> <span class="token punctuation" >}</span>\n\n <span class="token selector" >html, body</span> <span class="token punctuation" >{</span> <span class="token property" >height</span><span class="token punctuation" >:</span> 100%<span class="token punctuation" >;</span> <span class="token punctuation" >}</span>\n<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>style</span><span class="token punctuation" >></span></span></span>\n\n<span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>container<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>navbar navbar-default<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>navbar-header<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>a</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>navbar-brand<span class="token punctuation" >"</span></span> <span class="token attr-name" >href</span><span class="token punctuation" >></span></span>Angular2 File Upload<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>a</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>row<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>col-md-3<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>h3</span><span class="token punctuation" >></span></span>Select files<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>h3</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >ng2-file-drop</span>\n <span class="token attr-name" >[ngClass]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>{<span class="token punctuation" >\'</span>nv-file-over<span class="token punctuation" >\'</span>: hasBaseDropZoneOver}<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(file-over)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>fileOverBase($event)<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >[uploader]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>well my-drop-zone<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n Base drop zone\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >ng2-file-drop</span>\n <span class="token attr-name" >[ngClass]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>{<span class="token punctuation" >\'</span>another-file-over-class<span class="token punctuation" >\'</span>: hasAnotherDropZoneOver}<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(file-over)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>fileOverAnother($event)<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >[uploader]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>well my-drop-zone<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n Another drop zone\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n Multiple\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>input</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>file<span class="token punctuation" >"</span></span> <span class="token attr-name" >ng2-file-select</span> <span class="token attr-name" >[uploader]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader<span class="token punctuation" >"</span></span> <span class="token attr-name" >multiple</span> <span class="token punctuation" >/></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>br</span><span class="token punctuation" >/></span></span>\n\n Single\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>input</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>file<span class="token punctuation" >"</span></span> <span class="token attr-name" >ng2-file-select</span> <span class="token attr-name" >[uploader]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader<span class="token punctuation" >"</span></span> <span class="token punctuation" >/></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>col-md-9<span class="token punctuation" >"</span></span><span class="token style-attr language-css" ><span class="token attr-name" > <span class="token attr-name" >style</span></span><span class="token punctuation" >="</span><span class="token attr-value" ><span class="token property" >margin-bottom</span><span class="token punctuation" >:</span> 40px</span><span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>h3</span><span class="token punctuation" >></span></span>Upload queue<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>h3</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>p</span><span class="token punctuation" >></span></span>Queue length: {{ uploader?.queue?.length }}<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>p</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>table</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>table<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>thead</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>tr</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>th</span> <span class="token attr-name" >width</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>50%<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>Name<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>th</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>th</span><span class="token punctuation" >></span></span>Size<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>th</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>th</span><span class="token punctuation" >></span></span>Progress<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>th</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>th</span><span class="token punctuation" >></span></span>Status<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>th</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>th</span><span class="token punctuation" >></span></span>Actions<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>th</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>tr</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>thead</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>tbody</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>tr</span> <span class="token attr-name" >*ngFor</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>#item of uploader.queue<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>td</span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>strong</span><span class="token punctuation" >></span></span>{{ item?.file?.name }}<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>strong</span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>td</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>td</span> <span class="token attr-name" >*ngIf</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader.isHTML5<span class="token punctuation" >"</span></span> <span class="token attr-name" >nowrap</span><span class="token punctuation" >></span></span>{{ item?.file?.size/1024/1024 | number:\'.2\' }} MB<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>td</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>td</span> <span class="token attr-name" >*ngIf</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader.isHTML5<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progress<span class="token punctuation" >"</span></span><span class="token style-attr language-css" ><span class="token attr-name" > <span class="token attr-name" >style</span></span><span class="token punctuation" >="</span><span class="token attr-value" ><span class="token property" >margin-bottom</span><span class="token punctuation" >:</span> 0<span class="token punctuation" >;</span></span><span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progress-bar<span class="token punctuation" >"</span></span> <span class="token attr-name" >role</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progressbar<span class="token punctuation" >"</span></span> <span class="token attr-name" >[ngStyle]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>{ <span class="token punctuation" >\'</span>width<span class="token punctuation" >\'</span>: item.progress + <span class="token punctuation" >\'</span>%<span class="token punctuation" >\'</span> }<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>td</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>td</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>text-center<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >*ngIf</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.isSuccess<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>i</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-ok<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>i</span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >*ngIf</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.isCancel<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>i</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-ban-circle<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>i</span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >*ngIf</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.isError<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>i</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-remove<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>i</span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>td</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>td</span> <span class="token attr-name" >nowrap</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-success btn-xs<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.upload()<span class="token punctuation" >"</span></span> <span class="token attr-name" >[disabled]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.isReady || item.isUploading || item.isSuccess<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-upload<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Upload\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-warning btn-xs<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.cancel()<span class="token punctuation" >"</span></span> <span class="token attr-name" >[disabled]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>!item.isUploading<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-ban-circle<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Cancel\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-danger btn-xs<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>item.remove()<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-trash<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Remove\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>td</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>tr</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>tbody</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>table</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span><span class="token punctuation" >></span></span>\n Queue progress:\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progress<span class="token punctuation" >"</span></span><span class="token style-attr language-css" ><span class="token attr-name" > <span class="token attr-name" >style</span></span><span class="token punctuation" >="</span><span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progress-bar<span class="token punctuation" >"</span></span> <span class="token attr-name" >role</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>progressbar<span class="token punctuation" >"</span></span> <span class="token attr-name" >[ngStyle]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>{ <span class="token punctuation" >\'</span>width<span class="token punctuation" >\'</span>: uploader.progress + <span class="token punctuation" >\'</span>%<span class="token punctuation" >\'</span> }<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-success btn-s<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader.uploadAll()<span class="token punctuation" >"</span></span> <span class="token attr-name" >[disabled]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>!uploader.getNotUploadedItems().length<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-upload<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Upload all\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-warning btn-s<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader.cancelAll()<span class="token punctuation" >"</span></span> <span class="token attr-name" >[disabled]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>!uploader.isUploading<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-ban-circle<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Cancel all\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>button</span> <span class="token attr-name" >type</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>button<span class="token punctuation" >"</span></span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>btn btn-danger btn-s<span class="token punctuation" >"</span></span>\n <span class="token attr-name" >(click)</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>uploader.clearQueue()<span class="token punctuation" >"</span></span> <span class="token attr-name" >[disabled]</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>!uploader.queue.length<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>span</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>glyphicon glyphicon-trash<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span><span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>span</span><span class="token punctuation" >></span></span> Remove all\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>button</span><span class="token punctuation" >></span></span>\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n <span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n\n<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>\n';
|
||
},function(t,e){t.exports='<span class="token comment" spellcheck="true">/// <reference path="../../../tsd.d.ts" /></span>\n\n<span class="token keyword" >import</span> <span class="token punctuation" >{</span>Component<span class="token punctuation" >}</span> from <span class="token string" >\'angular2/core\'</span><span class="token punctuation" >;</span>\n<span class="token keyword" >import</span> <span class="token punctuation" >{</span>CORE_DIRECTIVES<span class="token punctuation" >,</span> FORM_DIRECTIVES<span class="token punctuation" >,</span> NgClass<span class="token punctuation" >,</span> NgStyle<span class="token punctuation" >}</span> from <span class="token string" >\'angular2/common\'</span><span class="token punctuation" >;</span>\n<span class="token keyword" >import</span> <span class="token punctuation" >{</span>FILE_UPLOAD_DIRECTIVES<span class="token punctuation" >,</span> FileUploader<span class="token punctuation" >}</span> from <span class="token string" >\'../../../ng2-file-upload\'</span><span class="token punctuation" >;</span>\n\n<span class="token comment" spellcheck="true">// webpack html imports</span>\n<span class="token keyword" >let</span> template <span class="token operator" >=</span> <span class="token function" >require</span><span class="token punctuation" >(</span><span class="token string" >\'./simple-demo.html\'</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n\n<span class="token comment" spellcheck="true">// const URL = \'/api/\';</span>\n<span class="token keyword" >const</span> URL <span class="token operator" >=</span> <span class="token string" >\'https://evening-anchorage-3159.herokuapp.com/api/\'</span><span class="token punctuation" >;</span>\n\n@<span class="token function" >Component</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>\n selector<span class="token punctuation" >:</span> <span class="token string" >\'simple-demo\'</span><span class="token punctuation" >,</span>\n template<span class="token punctuation" >:</span> template<span class="token punctuation" >,</span>\n directives<span class="token punctuation" >:</span> <span class="token punctuation" >[</span>FILE_UPLOAD_DIRECTIVES<span class="token punctuation" >,</span> NgClass<span class="token punctuation" >,</span> NgStyle<span class="token punctuation" >,</span> CORE_DIRECTIVES<span class="token punctuation" >,</span> FORM_DIRECTIVES<span class="token punctuation" >]</span>\n<span class="token punctuation" >}</span><span class="token punctuation" >)</span>\n<span class="token keyword" >export</span> <span class="token keyword" >class</span> <span class="token class-name" >SimpleDemo</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >private</span> uploader<span class="token punctuation" >:</span>FileUploader <span class="token operator" >=</span> <span class="token keyword" >new</span> <span class="token class-name" >FileUploader</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>url<span class="token punctuation" >:</span> URL<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>\n <span class="token keyword" >private</span> hasBaseDropZoneOver<span class="token punctuation" >:</span><span class="token keyword" >boolean</span> <span class="token operator" >=</span> <span class="token keyword" >false</span><span class="token punctuation" >;</span>\n <span class="token keyword" >private</span> hasAnotherDropZoneOver<span class="token punctuation" >:</span><span class="token keyword" >boolean</span> <span class="token operator" >=</span> <span class="token keyword" >false</span><span class="token punctuation" >;</span>\n\n <span class="token keyword" >private</span> <span class="token function" >fileOverBase</span><span class="token punctuation" >(</span>e<span class="token punctuation" >:</span><span class="token keyword" >any</span><span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >this</span><span class="token punctuation" >.</span>hasBaseDropZoneOver <span class="token operator" >=</span> e<span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span>\n\n <span class="token keyword" >private</span> <span class="token function" >fileOverAnother</span><span class="token punctuation" >(</span>e<span class="token punctuation" >:</span><span class="token keyword" >any</span><span class="token punctuation" >)</span> <span class="token punctuation" >{</span>\n <span class="token keyword" >this</span><span class="token punctuation" >.</span>hasAnotherDropZoneOver <span class="token operator" >=</span> e<span class="token punctuation" >;</span>\n <span class="token punctuation" >}</span>\n<span class="token punctuation" >}</span>\n'},function(t,e){t.exports='<style>\n .my-drop-zone { border: dotted 3px lightgray; }\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n .another-file-over-class { border: dotted 3px green; }\n\n html, body { height: 100%; }\n</style>\n\n<div class="container">\n\n <div class="navbar navbar-default">\n <div class="navbar-header">\n <a class="navbar-brand" href>Angular2 File Upload</a>\n </div>\n </div>\n\n <div class="row">\n\n <div class="col-md-3">\n\n <h3>Select files</h3>\n\n <div ng2-file-drop\n [ngClass]="{\'nv-file-over\': hasBaseDropZoneOver}"\n (file-over)="fileOverBase($event)"\n [uploader]="uploader"\n class="well my-drop-zone">\n Base drop zone\n </div>\n\n <div ng2-file-drop\n [ngClass]="{\'another-file-over-class\': hasAnotherDropZoneOver}"\n (file-over)="fileOverAnother($event)"\n [uploader]="uploader"\n class="well my-drop-zone">\n Another drop zone\n </div>\n\n Multiple\n <input type="file" ng2-file-select [uploader]="uploader" multiple /><br/>\n\n Single\n <input type="file" ng2-file-select [uploader]="uploader" />\n </div>\n\n <div class="col-md-9" style="margin-bottom: 40px">\n\n <h3>Upload queue</h3>\n <p>Queue length: {{ uploader?.queue?.length }}</p>\n\n <table class="table">\n <thead>\n <tr>\n <th width="50%">Name</th>\n <th>Size</th>\n <th>Progress</th>\n <th>Status</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="#item of uploader.queue">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td *ngIf="uploader.isHTML5" nowrap>{{ item?.file?.size/1024/1024 | number:\'.2\' }} MB</td>\n <td *ngIf="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" [ngStyle]="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span *ngIf="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span *ngIf="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span *ngIf="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs"\n (click)="item.upload()" [disabled]="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> Upload\n </button>\n <button type="button" class="btn btn-warning btn-xs"\n (click)="item.cancel()" [disabled]="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> Cancel\n </button>\n <button type="button" class="btn btn-danger btn-xs"\n (click)="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div>\n <div>\n Queue progress:\n <div class="progress" style="">\n <div class="progress-bar" role="progressbar" [ngStyle]="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s"\n (click)="uploader.uploadAll()" [disabled]="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> Upload all\n </button>\n <button type="button" class="btn btn-warning btn-s"\n (click)="uploader.cancelAll()" [disabled]="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> Cancel all\n </button>\n <button type="button" class="btn btn-danger btn-s"\n (click)="uploader.clearQueue()" [disabled]="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> Remove all\n </button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n'},,,,,,,,,,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(260),p=n(244),c="File Upload",l=n(228),u=[{heading:"Simple",ts:n(232),html:n(231),js:n(230)}],h="";u.forEach(function(t){h+='\n <tab heading="'+t.heading+'" (select)="select($event)">\n <div class="card card-block panel panel-default panel-body">\n\n <'+t.heading.toLowerCase()+"-demo *ngIf=\"currentHeading === '"+t.heading+"'\"></"+t.heading.toLowerCase()+'-demo>\n\n <br>\n\n <div class="row" style="margin: 0px;">\n <tabset>\n <tab heading="Markup">\n <div class="card card-block panel panel-default panel-body">\n <pre class="language-html"><code class="language-html" ng-non-bindable>'+t.html+'</code></pre>\n </div>\n </tab>\n <tab heading="TypeScript">\n <div class="card card-block panel panel-default panel-body">\n <pre class="language-typescript"><code class="language-typescript" ng-non-bindable>'+t.ts+'</code></pre>\n </div>\n </tab>\n <tab heading="Backend Demo">\n <div class="card card-block panel panel-default panel-body">\n <pre class="language-javascript"><code class="language-javascript" ng-non-bindable>'+t.js+"</code></pre>\n </div>\n </tab>\n </tabset>\n </div>\n </div>\n </tab>\n "});var d=function(){function t(){this.currentHeading="Simple"}return t.prototype.select=function(t){t.heading&&(this.currentHeading=t.heading)},t=s([o.Component({selector:"file-upload-section",template:'\n <section id="'+c.toLowerCase()+'">\n <div class="row">\n <tabset>\n\n '+h+'\n\n </tabset>\n </div>\n\n <div class="row">\n <h2>API</h2>\n <div class="card card-block panel panel-default panel-body">'+l+"</div>\n </div>\n </section>\n ",directives:[p.SimpleDemo,r.TAB_DIRECTIVES,i.CORE_DIRECTIVES]}),a("design:paramtypes",[])],t)}();e.FileUploadSection=d},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(99),p=n(233),c="https://evening-anchorage-3159.herokuapp.com/api/",l=function(){function t(){this.uploader=new r.FileUploader({url:c}),this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1}return t.prototype.fileOverBase=function(t){this.hasBaseDropZoneOver=t},t.prototype.fileOverAnother=function(t){this.hasAnotherDropZoneOver=t},t=s([o.Component({selector:"simple-demo",template:p,directives:[r.FILE_UPLOAD_DIRECTIVES,i.NgClass,i.NgStyle,i.CORE_DIRECTIVES,i.FORM_DIRECTIVES]}),a("design:paramtypes",[])],t)}();e.SimpleDemo=l},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=n(167),c=function(){function t(){this.addPanelGroupClass=!0,this.groups=[]}return t.prototype.closeOtherGroups=function(t){this.closeOthers&&this.groups.forEach(function(e){e!==t&&(e.isOpen=!1)})},t.prototype.addGroup=function(t){this.groups.push(t)},t.prototype.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.slice(e,1)},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"closeOthers",void 0),s([i.HostBinding("class.panel-group"),a("design:type",Object)],t.prototype,"addPanelGroupClass",void 0),t=s([i.Component({selector:"accordion",template:"<ng-content></ng-content>"}),a("design:paramtypes",[])],t)}();e.Accordion=c;var l=function(){function t(t){this.viewRef=t}return t.prototype.ngOnInit=function(){this.accordionTransclude&&this.viewRef.createEmbeddedView(this.accordionTransclude)},s([i.Input(),a("design:type",i.TemplateRef)],t.prototype,"accordionTransclude",void 0),t=s([i.Directive({selector:"[accordionTransclude]"}),o(0,i.Inject(i.ViewContainerRef)),a("design:paramtypes",[i.ViewContainerRef])],t)}();e.AccordionTransclude=l;var u=function(){function t(t){this.accordion=t}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},set:function(t){this._isOpen=t,t&&this.accordion.closeOtherGroups(this)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.panelClass=this.panelClass||"panel-default",this.accordion.addGroup(this)},t.prototype.ngOnDestroy=function(){this.accordion.removeGroup(this)},t.prototype.toggleOpen=function(t){t.preventDefault(),this.isDisabled||(this.isOpen=!this.isOpen)},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),s([i.Input(),a("design:type",String)],t.prototype,"heading",void 0),s([i.Input(),a("design:type",String)],t.prototype,"panelClass",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"isDisabled",void 0),s([i.HostBinding("class.panel-open"),i.Input(),a("design:type",Boolean)],t.prototype,"isOpen",null),t=s([i.Component({selector:"accordion-group",directives:[p.Collapse,l,r.NgClass],template:'\n <div class="panel" [ngClass]="panelClass">\n <div class="panel-heading" (click)="toggleOpen($event)">\n <h4 class="panel-title">\n <a href tabindex="0" class="accordion-toggle">\n <span [ngClass]="{\'text-muted\': isDisabled}"\n [accordionTransclude]="headingTemplate">{{heading}}</span>\n </a>\n </h4>\n </div>\n <div class="panel-collapse collapse" [collapse]="!isOpen">\n <div class="panel-body">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n '}),a("design:paramtypes",[c])],t)}();e.AccordionGroup=u;var h=function(){function t(t,e){this.group=t,this.templateRef=e,t.headingTemplate=e}return t=s([i.Directive({selector:"[accordion-heading]"}),a("design:paramtypes",[u,i.TemplateRef])],t)}();e.AccordionHeading=h,e.ACCORDION_DIRECTIVES=[c,u,h],e.accordion=[c,u,h]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r='\n <div class="alert" role="alert" [ngClass]="classes" *ngIf="!closed">\n <button *ngIf="dismissible" type="button" class="close" (click)="onClose($event)">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n <ng-content></ng-content>\n </div>\n ',p=function(){function t(t){this.el=t,this.type="warning",this.close=new o.EventEmitter,this.classes=[],this.dismissible=this.dismissible||t.nativeElement.getAttribute("(close)")}return t.prototype.ngOnInit=function(){var t=this;this.classes[0]="alert-"+this.type,this.dismissible?this.classes[1]="alert-dismissible":this.classes.length=1,this.dismissOnTimeout&&setTimeout(function(){return t.onClose()},this.dismissOnTimeout)},t.prototype.onClose=function(){this.close.next(this),this.closed=!0},s([o.Input(),a("design:type",String)],t.prototype,"type",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"dismissible",void 0),s([o.Input(),a("design:type",Number)],t.prototype,"dismissOnTimeout",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"close",void 0),t=s([o.Component({selector:"alert",directives:[i.NgIf,i.NgClass],template:r}),a("design:paramtypes",[o.ElementRef])],t)}();e.Alert=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t){this.cd=t,this.state=!1,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return t.prototype.onClick=function(){this.toggle(!this.state),this.cd.viewToModelUpdate(this.value)},t.prototype.ngOnInit=function(){this.toggle(this.trueValue===this.value)},Object.defineProperty(t.prototype,"trueValue",{get:function(){return"undefined"!=typeof this.btnCheckboxTrue?this.btnCheckboxTrue:!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"falseValue",{get:function(){return"undefined"!=typeof this.btnCheckboxFalse?this.btnCheckboxFalse:!1},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){this.state=t,this.value=this.state?this.trueValue:this.falseValue},t.prototype.writeValue=function(t){this.state=this.trueValue===t,this.value=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",Object)],t.prototype,"btnCheckboxTrue",void 0),s([i.Input(),a("design:type",Object)],t.prototype,"btnCheckboxFalse",void 0),s([i.HostBinding("class.active"),a("design:type",Boolean)],t.prototype,"state",void 0),s([i.HostListener("click"),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"onClick",null),t=s([i.Directive({selector:"[btnCheckbox][ngModel]"}),o(0,i.Self()),a("design:paramtypes",[r.NgModel])],t)}();e.ButtonCheckbox=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t,e){this.cd=t,this.el=e,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.btnRadio===this.value},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){return this.uncheckable&&this.btnRadio===this.value?this.cd.viewToModelUpdate(null):void this.cd.viewToModelUpdate(this.btnRadio)},t.prototype.ngOnInit=function(){this.uncheckable="undefined"!=typeof this.uncheckable},Object.defineProperty(t.prototype,"value",{get:function(){return this.cd.viewModel},set:function(t){this.cd.viewModel=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",String)],t.prototype,"btnRadio",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"uncheckable",void 0),s([i.HostBinding("class.active"),a("design:type",Object)],t.prototype,"isActive",null),s([i.HostListener("click"),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"onClick",null),t=s([i.Directive({selector:"[btnRadio][ngModel]"}),o(0,i.Self()),a("design:paramtypes",[r.NgModel,i.ElementRef])],t)}();e.ButtonRadio=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(100);!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.NEXT=1]="NEXT",t[t.PREV=2]="PREV"}(e.Direction||(e.Direction={}));var p=e.Direction,c=(h={},h[r.Ng2BootstrapTheme.BS4]='\n <a class="left carousel-control" (click)="prev()" [hidden]="!slides.length">\n <span class="icon-prev" aria-hidden="true"></span>\n <span class="sr-only">Previous</span>\n </a>\n <a class="right carousel-control" (click)="next()" [hidden]="!slides.length">\n <span class="icon-next" aria-hidden="true"></span>\n <span class="sr-only">Next</span>\n </a>\n ',h[r.Ng2BootstrapTheme.BS3]='\n <a class="left carousel-control" (click)="prev()" [hidden]="!slides.length">\n <span class="glyphicon glyphicon-chevron-left"></span>\n </a>\n <a class="right carousel-control" (click)="next()" [hidden]="!slides.length">\n <span class="glyphicon glyphicon-chevron-right"></span>\n </a>\n ',h),l=function(){function t(){this.slides=[],this.destroyed=!1}return Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval},set:function(t){this._interval=t,this.restartTimer()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed=!0},t.prototype.select=function(t,e){void 0===e&&(e=p.UNKNOWN);var n=t.index;e===p.UNKNOWN&&(e=n>this.getCurrentIndex()?p.NEXT:p.PREV),t&&t!==this.currentSlide&&this.goNext(t,e)},t.prototype.goNext=function(t,e){this.destroyed||(t.direction=e,t.active=!0,this.currentSlide&&(this.currentSlide.direction=e,this.currentSlide.active=!1),this.currentSlide=t,this.restartTimer())},t.prototype.getSlideByIndex=function(t){for(var e=this.slides.length,n=0;e>n;++n)if(this.slides[n].index===t)return this.slides[n]},t.prototype.getCurrentIndex=function(){return this.currentSlide?this.currentSlide.index:0},t.prototype.next=function(){var t=(this.getCurrentIndex()+1)%this.slides.length;return 0===t&&this.noWrap?void this.pause():this.select(this.getSlideByIndex(t),p.NEXT)},t.prototype.prev=function(){var t=this.getCurrentIndex()-1<0?this.slides.length-1:this.getCurrentIndex()-1;return this.noWrap&&t===this.slides.length-1?void this.pause():this.select(this.getSlideByIndex(t),p.PREV)},t.prototype.restartTimer=function(){var t=this;this.resetTimer();var e=+this.interval;!isNaN(e)&&e>0&&(this.currentInterval=setInterval(function(){var e=+t.interval;t.isPlaying&&!isNaN(t.interval)&&e>0&&t.slides.length?t.next():t.pause()},e))},t.prototype.resetTimer=function(){this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=null)},t.prototype.play=function(){this.isPlaying||(this.isPlaying=!0,this.restartTimer())},t.prototype.pause=function(){this.noPause||(this.isPlaying=!1,this.resetTimer())},t.prototype.addSlide=function(t){t.index=this.slides.length,this.slides.push(t),1===this.slides.length||t.active?(this.select(this.slides[this.slides.length-1]),1===this.slides.length&&this.play()):t.active=!1},t.prototype.removeSlide=function(t){if(this.slides.splice(t.index,1),0===this.slides.length)return void(this.currentSlide=null);for(var e=0;e<this.slides.length;e++)this.slides[e].index=e},s([o.Input(),a("design:type",Boolean)],t.prototype,"noWrap",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"noPause",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"noTransition",void 0),s([o.Input(),a("design:type",Number)],t.prototype,"interval",null),t=s([o.Component({selector:"carousel",directives:[i.NgClass,i.NgFor],template:'\n <div (mouseenter)="pause()" (mouseleave)="play()" class="carousel slide">\n <ol class="carousel-indicators" [hidden]="slides.length <= 1">\n <li *ngFor="#slidez of slides" [ngClass]="{active: slidez.active === true}" (click)="select(slidez)"></li>\n </ol>\n <div class="carousel-inner"><ng-content></ng-content></div>\n '+c[r.Ng2BootstrapConfig.theme]+"\n </div>\n "}),a("design:paramtypes",[])],t)}();e.Carousel=l;var u=function(){function t(t){this.carousel=t,this.addClass=!0}return t.prototype.ngOnInit=function(){this.carousel.addSlide(this)},t.prototype.ngOnDestroy=function(){this.carousel.removeSlide(this)},s([o.Input(),a("design:type",Number)],t.prototype,"index",void 0),s([o.Input(),a("design:type",Number)],t.prototype,"direction",void 0),s([o.HostBinding("class.active"),o.Input(),a("design:type",Boolean)],t.prototype,"active",void 0),s([o.HostBinding("class.item"),o.HostBinding("class.carousel-item"),a("design:type",Boolean)],t.prototype,"addClass",void 0),t=s([o.Component({selector:"slide",directives:[i.NgClass],template:'\n <div [ngClass]="{active: active}" class="item text-center">\n <ng-content></ng-content>\n </div>\n '}),a("design:paramtypes",[l])],t)}();e.Slide=u,e.CAROUSEL_DIRECTIVES=[l,u],e.carousel=[l,u];var h},function(t,e,n){var s=n(60),a=n(169),o=n(171);e.DROPDOWN_DIRECTIVES=[s.Dropdown,a.DropdownMenu,o.DropdownToggle],e.dropdown=[s.Dropdown,a.DropdownMenu,o.DropdownToggle]},function(t,e,n){var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},r=n(3),p=n(7),c={maxSize:void 0,itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0},l='\n <ul class="pagination" [ngClass]="classMap">\n <li class="pagination-first page-item"\n *ngIf="boundaryLinks"\n [class.disabled]="noPrevious()||disabled">\n <a class="page-link" href (click)="selectPage(1, $event)">{{getText(\'first\')}}</a>\n </li>\n\n <li class="pagination-prev page-item"\n *ngIf="directionLinks"\n [class.disabled]="noPrevious()||disabled">\n <a class="page-link" href (click)="selectPage(page - 1, $event)">{{getText(\'previous\')}}</a>\n </li>\n\n <li *ngFor="#pg of pages"\n [class.active]="pg.active"\n [class.disabled]="disabled&&!pg.active"\n class="pagination-page page-item">\n <a class="page-link" href (click)="selectPage(pg.number, $event)">{{pg.text}}</a>\n </li>\n\n <li class="pagination-next page-item"\n *ngIf="directionLinks"\n [class.disabled]="noNext()">\n <a class="page-link" href (click)="selectPage(page + 1, $event)">{{getText(\'next\')}}</a></li>\n\n <li class="pagination-last page-item"\n *ngIf="boundaryLinks"\n [class.disabled]="noNext()">\n <a class="page-link" href (click)="selectPage(totalPages, $event)">{{getText(\'last\')}}</a></li>\n </ul>\n ',u=function(){function t(t,e,n){this.cd=t,this.renderer=e,this.elementRef=n,this.numPages=new r.EventEmitter,this.pageChanged=new r.EventEmitter,this.inited=!1,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this,this.config=this.config||c}return Object.defineProperty(t.prototype,"itemsPerPage",{get:function(){return this._itemsPerPage},set:function(t){this._itemsPerPage=t,this.totalPages=this.calculateTotalPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalItems",{get:function(){return this._totalItems},set:function(t){this._totalItems=t,this.totalPages=this.calculateTotalPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalPages",{get:function(){return this._totalPages},set:function(t){this._totalPages=t,this.numPages.emit(t),this.inited&&this.selectPage(this.page)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this._page},set:function(t){this._page=t>this.totalPages?this.totalPages:t||1,this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.classMap=this.elementRef.nativeElement.getAttribute("class")||"",this.maxSize="undefined"!=typeof this.maxSize?this.maxSize:c.maxSize,this.rotate="undefined"!=typeof this.rotate?this.rotate:c.rotate,
|
||
this.boundaryLinks="undefined"!=typeof this.boundaryLinks?this.boundaryLinks:c.boundaryLinks,this.directionLinks="undefined"!=typeof this.directionLinks?this.directionLinks:c.directionLinks,this.itemsPerPage="undefined"!=typeof this.itemsPerPage?this.itemsPerPage:c.itemsPerPage,this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.page=this.cd.value,this.inited=!0},t.prototype.writeValue=function(t){this.page=t,this.pages=this.getPages(this.page,this.totalPages)},t.prototype.selectPage=function(t,e){if(e&&e.preventDefault(),!this.disabled){if(e&&e.target){var n=e.target;n.blur()}this.writeValue(t),this.cd.viewToModelUpdate(this.page)}},t.prototype.getText=function(t){return this[t+"Text"]||c[t+"Text"]},t.prototype.noPrevious=function(){return 1===this.page},t.prototype.noNext=function(){return this.page===this.totalPages},t.prototype.makePage=function(t,e,n){return{number:t,text:e,active:n}},t.prototype.getPages=function(t,e){var n=[],s=1,a=e,o="undefined"!=typeof this.maxSize&&this.maxSize<e;o&&(this.rotate?(s=Math.max(t-Math.floor(this.maxSize/2),1),a=s+this.maxSize-1,a>e&&(a=e,s=a-this.maxSize+1)):(s=(Math.ceil(t/this.maxSize)-1)*this.maxSize+1,a=Math.min(s+this.maxSize-1,e)));for(var i=s;a>=i;i++){var r=this.makePage(i,i.toString(),i===t);n.push(r)}if(o&&!this.rotate){if(s>1){var p=this.makePage(s-1,"...",!1);n.unshift(p)}if(e>a){var c=this.makePage(a+1,"...",!1);n.push(c)}}return n},t.prototype.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(t||0,1)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},a([r.Input(),o("design:type",Number)],t.prototype,"maxSize",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"boundaryLinks",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"directionLinks",void 0),a([r.Input(),o("design:type",String)],t.prototype,"firstText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"previousText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"nextText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"lastText",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"rotate",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"disabled",void 0),a([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"numPages",void 0),a([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"pageChanged",void 0),a([r.Input(),o("design:type",Object)],t.prototype,"itemsPerPage",null),a([r.Input(),o("design:type",Number)],t.prototype,"totalItems",null),t=a([r.Component({selector:"pagination[ngModel]",template:l,directives:[p.NgFor,p.NgIf]}),i(0,r.Self()),o("design:paramtypes",[p.NgModel,r.Renderer,r.ElementRef])],t)}();e.Pagination=u;var h={itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0},d='\n <ul class="pager">\n <li [class.disabled]="noPrevious()" [class.previous]="align" [ngClass]="{\'pull-right\': align}">\n <a href (click)="selectPage(page - 1, $event)">{{getText(\'previous\')}}</a>\n </li>\n <li [class.disabled]="noNext()" [class.next]="align" [ngClass]="{\'pull-right\': align}">\n <a href (click)="selectPage(page + 1, $event)">{{getText(\'next\')}}</a>\n </li>\n </ul>\n',f=function(t){function e(e,n,s){t.call(this,e,n,s),this.config=h}return s(e,t),e=a([r.Component({selector:"pager[ngModel]",properties:["align","totalItems","itemsPerPage","previousText","nextText"],template:d,directives:[p.NgClass]}),i(0,r.Self()),o("design:paramtypes",[p.NgModel,r.Renderer,r.ElementRef])],e)}(u);e.Pager=f,e.PAGINATION_DIRECTIVES=[u,f],e.pagination=[u,f]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p={animate:!0,max:100},c=function(){function t(){this.addClass="progress",this.bars=[]}return Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=t,this.bars.forEach(function(t){t.recalculatePercentage()})},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.animate=this.animate!==!1,this.max="number"==typeof this.max?this.max:p.max},t.prototype.addBar=function(t){this.animate||(t.transition="none"),this.bars.push(t)},t.prototype.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)},s([i.Input(),a("design:type",Boolean)],t.prototype,"animate",void 0),s([i.HostBinding("attr.max"),i.Input(),a("design:type",Number)],t.prototype,"max",null),s([i.HostBinding("class"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([i.Directive({selector:"bs-progress, [progress]"}),a("design:paramtypes",[])],t)}();e.Progress=c;var l=function(){function t(t){this.progress=t,this.percent=0}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){(t||0===t)&&(this._value=t,this.recalculatePercentage())},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.progress.addBar(this)},t.prototype.ngOnDestroy=function(){this.progress.removeBar(this)},t.prototype.recalculatePercentage=function(){this.percent=+(100*this.value/this.progress.max).toFixed(2);var t=this.progress.bars.reduce(function(t,e){return t+e.percent},0);t>100&&(this.percent-=t-100)},s([i.Input(),a("design:type",String)],t.prototype,"type",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"value",null),t=s([i.Component({selector:"bar, [bar]",directives:[r.NgClass,r.NgStyle],template:'\n <div class="progress-bar"\n style="min-width: 0;"\n role="progressbar"\n [ngClass]="type && \'progress-bar-\' + type"\n [ngStyle]="{width: (percent < 100 ? percent : 100) + \'%\', transition: transition}"\n aria-valuemin="0"\n [attr.aria-valuenow]="value"\n [attr.aria-valuetext]="percent.toFixed(0) + \'%\'"\n [attr.aria-valuemax]="max"\n ><ng-content></ng-content></div>\n'}),o(0,i.Host()),a("design:paramtypes",[c])],t)}();e.Bar=l;var u=function(){function t(){}return s([i.Input(),a("design:type",Boolean)],t.prototype,"animate",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"max",void 0),s([i.Input(),a("design:type",String)],t.prototype,"type",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"value",void 0),t=s([i.Component({selector:"progressbar, [progressbar]",directives:[c,l],template:'\n <div progress [animate]="animate" [max]="max">\n <bar [type]="type" [value]="value">\n <ng-content></ng-content>\n </bar>\n </div>\n '}),a("design:paramtypes",[])],t)}();e.Progressbar=u,e.PROGRESSBAR_DIRECTIVES=[c,l,u],e.progressbar=[c,l,u]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t){this.cd=t,this.onHover=new i.EventEmitter,this.onLeave=new i.EventEmitter,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return t.prototype.onKeydown=function(t){if(-1!==[37,38,39,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=38===t.which||39===t.which?1:-1;this.rate(this.value+e)}},t.prototype.ngOnInit=function(){this.max="undefined"!=typeof this.max?this.max:5,this.readonly=this.readonly===!0,this.stateOn="undefined"!=typeof this.stateOn?this.stateOn:"glyphicon-star",this.stateOff="undefined"!=typeof this.stateOff?this.stateOff:"glyphicon-star-empty",this.titles="undefined"!=typeof this.titles&&this.titles.length>0?this.titles:["one","two","three","four","five"],this.range=this.buildTemplateObjects(this.ratingStates,this.max)},t.prototype.writeValue=function(t){return t%1!==t?(this.value=Math.round(t),void(this.preValue=t)):(this.preValue=t,void(this.value=t))},t.prototype.buildTemplateObjects=function(t,e){t=t||[];for(var n=t.length||e,s=[],a=0;n>a;a++)s.push(Object.assign({index:a,stateOn:this.stateOn,stateOff:this.stateOff,title:this.titles[a]||a+1},t[a]||{}));return s},t.prototype.rate=function(t){!this.readonly&&t>=0&&t<=this.range.length&&(this.writeValue(t),this.cd.viewToModelUpdate(t))},t.prototype.enter=function(t){this.readonly||(this.value=t,this.onHover.next(t))},t.prototype.reset=function(){this.value=this.preValue,this.onLeave.next(this.value)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",Number)],t.prototype,"max",void 0),s([i.Input(),a("design:type",String)],t.prototype,"stateOn",void 0),s([i.Input(),a("design:type",String)],t.prototype,"stateOff",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"readonly",void 0),s([i.Input(),a("design:type",Array)],t.prototype,"titles",void 0),s([i.Input(),a("design:type",Array)],t.prototype,"ratingStates",void 0),s([i.Output(),a("design:type",i.EventEmitter)],t.prototype,"onHover",void 0),s([i.Output(),a("design:type",i.EventEmitter)],t.prototype,"onLeave",void 0),s([i.HostListener("keydown",["$event"]),a("design:type",Function),a("design:paramtypes",[KeyboardEvent]),a("design:returntype",void 0)],t.prototype,"onKeydown",null),t=s([i.Component({selector:"rating[ngModel]",directives:[r.NgFor],template:'\n <span (mouseleave)="reset()" (keydown)="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" [attr.aria-valuemax]="range.length" [attr.aria-valuenow]="value">\n <template ngFor #r [ngForOf]="range" #index="index">\n <span class="sr-only">({{ index < value ? \'*\' : \' \' }})</span>\n <i (mouseenter)="enter(index + 1)" (click)="rate(index + 1)" class="glyphicon" [ngClass]="index < value ? r.stateOn : r.stateOff" [title]="r.title" ></i>\n </template>\n </span>\n '}),o(0,i.Self()),a("design:paramtypes",[r.NgModel])],t)}();e.Rating=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(168),p=function(){function t(){this.tabs=[],this.classMap={}}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"justified",{get:function(){return this._justified},set:function(t){this._justified=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.setClassMap()},enumerable:!0,configurable:!0}),t.prototype.setClassMap=function(){this.classMap=(t={"nav-stacked":this.vertical,"nav-justified":this.justified},t["nav-"+(this.type||"tabs")]=!0,t);var t},t.prototype.ngOnInit=function(){this.type="undefined"!==this.type?this.type:"tabs"},t.prototype.addTab=function(t){this.tabs.push(t),t.active=1===this.tabs.length&&t.active!==!1},t.prototype.removeTab=function(t){var e=this.tabs.indexOf(t);if(-1!==e){if(t.active&&this.tabs.length>1){var n=e===this.tabs.length-1?e-1:e+1;this.tabs[n].active=!0}this.tabs.slice(e,1)}},s([o.Input(),a("design:type",Object)],t.prototype,"vertical",null),s([o.Input(),a("design:type",Object)],t.prototype,"justified",null),s([o.Input(),a("design:type",Object)],t.prototype,"type",null),t=s([o.Component({selector:"tabset",directives:[i.NgClass,r.NgTransclude],template:'\n <ul class="nav" [ngClass]="classMap" (click)="$event.preventDefault()">\n <li *ngFor="#tabz of tabs" class="nav-item" [ngClass]="{active: tabz.active, disabled: tabz.disabled}">\n <a href class="nav-link" [ngClass]="{active: tabz.active, disabled: tabz.disabled}" (click)="tabz.active = true">\n <span [ngTransclude]="tabz.headingRef">{{tabz.heading}}</span>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <ng-content></ng-content>\n </div>\n '}),a("design:paramtypes",[])],t)}();e.Tabset=p;var c=function(){function t(t){this.tabset=t,this.select=new o.EventEmitter,this.deselect=new o.EventEmitter,this.addClass=!0,this.tabset.addTab(this)}return Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){var e=this;return this.disabled&&t||!t?(t||(this._active=t),void this.deselect.emit(this)):(this._active=t,this.select.emit(this),void this.tabset.tabs.forEach(function(t){t!==e&&(t.active=!1)}))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){return!0},t.prototype.ngOnInit=function(){},t.prototype.ngOnDestroy=function(){this.tabset.removeTab(this)},s([o.Input(),a("design:type",String)],t.prototype,"heading",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"disabled",void 0),s([o.HostBinding("class.active"),o.Input(),a("design:type",Object)],t.prototype,"active",null),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"select",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"deselect",void 0),s([o.HostBinding("class.tab-pane"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([o.Directive({selector:"tab, [tab]"}),a("design:paramtypes",[p])],t)}();e.Tab=c;var l=function(){function t(t,e){this.templateRef=t,e.headingRef=t}return t=s([o.Directive({selector:"[tab-heading]"}),a("design:paramtypes",[o.TemplateRef,c])],t)}();e.TabHeading=l,e.TAB_DIRECTIVES=[c,l,p],e.tabs=[c,l,p]},function(t,e,n){function s(t){return"undefined"!=typeof t}function a(t,e,n){return e(t)?t:n}function o(t,e){var n=new Date(t.getTime()+6e4*e),s=new Date(t);return s.setHours(n.getHours(),n.getMinutes()),s}var i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},c=n(3),l=n(7);e.timepickerConfig={hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,min:void 0,max:void 0};var u=function(){function t(t){this.cd=t,this.meridians=["AM","PM"],this._selected=new Date,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return Object.defineProperty(t.prototype,"showMeridian",{get:function(){return this._showMeridian},set:function(t){return this._showMeridian=t,void this.updateTemplate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){t&&(this._selected=t,this.updateTemplate(),this.cd.viewToModelUpdate(this.selected))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.meridians=a(this.meridians,s,e.timepickerConfig.meridians)||["AM","PM"],this.mousewheel=a(this.mousewheel,s,e.timepickerConfig.mousewheel),this.mousewheel&&this.setupMousewheelEvents(),this.arrowkeys=a(this.arrowkeys,s,e.timepickerConfig.arrowkeys),this.arrowkeys&&this.setupArrowkeyEvents(),this.readonlyInput=a(this.readonlyInput,s,e.timepickerConfig.readonlyInput),this.setupInputEvents(),this.hourStep=a(this.hourStep,s,e.timepickerConfig.hourStep),this.minuteStep=a(this.minuteStep,s,e.timepickerConfig.minuteStep),this.min=a(this.min,s,e.timepickerConfig.min),this.max=a(this.max,s,e.timepickerConfig.max),this.showMeridian=a(this.showMeridian,s,e.timepickerConfig.showMeridian),this.showSpinners=a(this.showSpinners,s,e.timepickerConfig.showSpinners)},t.prototype.writeValue=function(t){return t!==this.selected?t&&t instanceof Date?void(this.selected=t):void(this.selected=t?new Date(t):null):void 0},t.prototype.refresh=function(t){this.updateTemplate(),this.cd.viewToModelUpdate(this.selected)},t.prototype.updateTemplate=function(t){var e=this.selected.getHours(),n=this.selected.getMinutes();this.showMeridian&&(e=0===e||12===e?12:e%12),this.hours=this.pad(e),this.minutes=this.pad(n),this.meridian=this.selected.getHours()<12?this.meridians[0]:this.meridians[1]},t.prototype.getHoursFromTemplate=function(){var t=parseInt(this.hours,10),e=this.showMeridian?t>0&&13>t:t>=0&&24>t;return e?(this.showMeridian&&(12===t&&(t=0),this.meridian===this.meridians[1]&&(t+=12)),t):void 0},t.prototype.getMinutesFromTemplate=function(){var t=parseInt(this.minutes,10);return t>=0&&60>t?t:void 0},t.prototype.pad=function(t){return s(t)&&t.toString().length<2?"0"+t:t.toString()},t.prototype.setupMousewheelEvents=function(){},t.prototype.setupArrowkeyEvents=function(){},t.prototype.setupInputEvents=function(){},t.prototype.updateHours=function(){if(!this.readonlyInput){var t=this.getHoursFromTemplate(),e=this.getMinutesFromTemplate();!s(t)||!s(e),this.selected.setHours(t),this.selected<this.min||this.selected>this.max||this.refresh("h")}},t.prototype.hoursOnBlur=function(t){this.readonlyInput||!this.invalidHours&&parseInt(this.hours,10)<10&&(this.hours=this.pad(this.hours))},t.prototype.updateMinutes=function(){if(!this.readonlyInput){var t=this.getMinutesFromTemplate(),e=this.getHoursFromTemplate();!s(t)||!s(e),this.selected.setMinutes(t),this.selected<this.min||this.selected>this.max||this.refresh("m")}},t.prototype.minutesOnBlur=function(t){this.readonlyInput||!this.invalidMinutes&&parseInt(this.minutes,10)<10&&(this.minutes=this.pad(this.minutes))},t.prototype.noIncrementHours=function(){var t=o(this.selected,60*this.hourStep);return t>this.max||t<this.selected&&t<this.min},t.prototype.noDecrementHours=function(){var t=o(this.selected,60*-this.hourStep);return t<this.min||t>this.selected&&t>this.max},t.prototype.noIncrementMinutes=function(){var t=o(this.selected,this.minuteStep);return t>this.max||t<this.selected&&t<this.min},t.prototype.noDecrementMinutes=function(){var t=o(this.selected,-this.minuteStep);return t<this.min||t>this.selected&&t>this.max},t.prototype.addMinutesToSelected=function(t){this.selected=o(this.selected,t),this.refresh()},t.prototype.noToggleMeridian=function(){return this.selected.getHours()<13?o(this.selected,720)>this.max:o(this.selected,-720)<this.min},t.prototype.incrementHours=function(){this.noIncrementHours()||this.addMinutesToSelected(60*this.hourStep)},t.prototype.decrementHours=function(){this.noDecrementHours()||this.addMinutesToSelected(60*-this.hourStep)},t.prototype.incrementMinutes=function(){this.noIncrementMinutes()||this.addMinutesToSelected(this.minuteStep)},t.prototype.decrementMinutes=function(){this.noDecrementMinutes()||this.addMinutesToSelected(-this.minuteStep)},t.prototype.toggleMeridian=function(){if(!this.noToggleMeridian()){var t=this.selected.getHours()<12?1:-1;this.addMinutesToSelected(720*t)}},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},i([c.Input(),r("design:type",Number)],t.prototype,"hourStep",void 0),i([c.Input(),r("design:type",Number)],t.prototype,"minuteStep",void 0),i([c.Input(),r("design:type",Boolean)],t.prototype,"readonlyInput",void 0),i([c.Input(),r("design:type",Boolean)],t.prototype,"mousewheel",void 0),i([c.Input(),r("design:type",Boolean)],t.prototype,"arrowkeys",void 0),i([c.Input(),r("design:type",Boolean)],t.prototype,"showSpinners",void 0),i([c.Input(),r("design:type",Date)],t.prototype,"min",void 0),i([c.Input(),r("design:type",Date)],t.prototype,"max",void 0),i([c.Input(),r("design:type",Array)],t.prototype,"meridians",void 0),i([c.Input(),r("design:type",Object)],t.prototype,"showMeridian",null),t=i([c.Component({selector:"timepicker[ngModel]",directives:[l.NgClass],template:'\n <table>\n <tbody>\n <tr class="text-center" [ngClass]="{hidden: !showSpinners}">\n <td><a (click)="incrementHours()" [ngClass]="{disabled: noIncrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td> </td>\n <td><a (click)="incrementMinutes()" [ngClass]="{disabled: noIncrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td [ngClass]="{hidden: !showMeridian}" [hidden]="!showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group" [ngClass]="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" [(ngModel)]="hours" (change)="updateHours()" class="form-control text-center" [readonly]="readonlyInput" (blur)="hoursOnBlur($event)" maxlength="2">\n </td>\n <td>:</td>\n <td class="form-group" [ngClass]="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" [(ngModel)]="minutes" (change)="updateMinutes()" class="form-control text-center" [readonly]="readonlyInput" (blur)="minutesOnBlur($event)" maxlength="2">\n </td>\n <td [ngClass]="{hidden: !showMeridian}" [hidden]="!showMeridian"><button type="button" [ngClass]="{disabled: noToggleMeridian()}" class="btn btn-default text-center" (click)="toggleMeridian()">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" [ngClass]="{hidden: !showSpinners}">\n <td><a (click)="decrementHours()" [ngClass]="{disabled: noDecrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td> </td>\n <td><a (click)="decrementMinutes()" [ngClass]="{disabled: noDecrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td [ngClass]="{hidden: !showMeridian}" [hidden]="!showMeridian"></td>\n </tr>\n </tbody>\n </table>\n '}),p(0,c.Self()),r("design:paramtypes",[l.NgModel])],t)}();e.Timepicker=u},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(3),p=n(101),c=function(){function t(t){Object.assign(this,t)}return t}(),l=function(){function t(t,e){this.element=t,Object.assign(this,e),this.classMap={"in":!1},this.classMap[e.placement]=!0}return t.prototype.position=function(t){this.display="block",this.top="0px",this.left="0px";var e=p.positionService.positionElements(t.nativeElement,this.element.nativeElement.children[0],this.placement,this.appendToBody);this.top=e.top+"px",this.left=e.left+"px",this.classMap["in"]=!0},t=s([o.Component({selector:"tooltip-container",directives:[i.NgClass,i.NgStyle],template:'\n <div class="tooltip" role="tooltip"\n [ngStyle]="{top: top, left: left, display: display}"\n [ngClass]="classMap" >\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner">\n {{content}}\n </div>\n </div>'}),a("design:paramtypes",[o.ElementRef,c])],t)}(),u=function(){function t(t,e){this.element=t,this.loader=e,this.placement="top",this.visible=!1}return t.prototype.ngOnInit=function(){},t.prototype.show=function(){var t=this;if(!this.visible){this.visible=!0;var e=new c({content:this.content,placement:this.placement}),n=r.Injector.resolve([r.bind(c).toValue(e)]);this.tooltip=this.loader.loadNextToLocation(l,this.element,n).then(function(e){return e.instance.position(t.element),e})}},t.prototype.hide=function(){this.visible&&(this.visible=!1,this.tooltip.then(function(t){return t.dispose(),t}))},s([o.Input("tooltip"),a("design:type",String)],t.prototype,"content",void 0),s([o.Input("tooltip-placement"),a("design:type",String)],t.prototype,"placement",void 0),s([o.Input("tooltip-isOpen"),a("design:type",Boolean)],t.prototype,"isOpen",void 0),s([o.Input("tooltip-enable"),a("design:type",Boolean)],t.prototype,"enable",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"appendToBody",void 0),s([o.HostListener("focusin",["$event","$target"]),o.HostListener("mouseenter",["$event","$target"]),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"show",null),s([o.HostListener("focusout",["$event","$target"]),o.HostListener("mouseleave",["$event","$target"]),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"hide",null),t=s([o.Directive({selector:"[tooltip]"}),a("design:paramtypes",[o.ElementRef,o.DynamicComponentLoader])],t)}();e.Tooltip=u,e.TOOLTIP_DIRECTIVES=[u,l],e.tooltip=[u,l]},function(t,e){e.latinMap={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u",
|
||
"ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"}},function(t,e,n){var s=n(257),a=function(){function t(){}return t.latinize=function(e){return e.replace(/[^A-Za-z0-9\[\] ]/g,function(e){return t.latinMap[e]||e})},t.escapeRegexp=function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},t.tokenize=function(t,e,n){void 0===e&&(e=" "),void 0===n&&(n="");for(var s,a="(?:["+n+"])([^"+n+"]+)(?:["+n+"])|([^"+e+"]+)",o=t.split(new RegExp(a,"g")),i=[],r=o.length,p=new RegExp("["+n+"]+","g"),c=0;r>c;c+=1)s=o[c],s&&s.length&&s!==e&&i.push(s.replace(p,""));return i},t.latinMap=s.latinMap,t}();e.TypeaheadUtils=a},function(t,e,n){function s(t,e,n,s){t.setElementProperty(e,n,s)}var a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(3),r=n(7),p=n(3),c=n(100),l=n(101),u=n(258),h=(g={},g[c.Ng2BootstrapTheme.BS4]='\n <div class="dropdown-menu"\n [ngStyle]="{top: top, left: left, display: display}"\n style="display: block">\n <a href="#"\n *ngFor="#match of matches"\n (click)="selectMatch(match, $event)"\n [ngClass]="{active: isActive(match) }"\n (mouseenter)="selectActive(match)"\n class="dropdown-item"\n [innerHtml]="hightlight(match, query)"></a>\n </div>\n ',g[c.Ng2BootstrapTheme.BS3]='\n <ul class="dropdown-menu"\n [ngStyle]="{top: top, left: left, display: display}"\n style="display: block">\n <li *ngFor="#match of matches"\n [ngClass]="{active: isActive(match) }"\n (mouseenter)="selectActive(match)">\n <a href="#" (click)="selectMatch(match, $event)" tabindex="-1" [innerHtml]="hightlight(match, query)"></a>\n </li>\n </ul>\n ',g),d=function(){function t(t){Object.assign(this,t)}return t}();e.TypeaheadOptions=d;var f=function(){function t(t,e){this.element=t,this._matches=[],Object.assign(this,e)}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._matches},set:function(t){this._matches=t,this._matches.length>0&&(this._active=this._matches[0])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{set:function(t){this._field=t},enumerable:!0,configurable:!0}),t.prototype.position=function(t){this.display="block",this.top="0px",this.left="0px";var e=l.positionService.positionElements(t.nativeElement,this.element.nativeElement.children[0],this.placement,!1);this.top=e.top+"px",this.left=e.left+"px"},t.prototype.selectActiveMatch=function(){this.selectMatch(this._active)},t.prototype.prevActiveMatch=function(){var t=this.matches.indexOf(this._active);this._active=this.matches[0>t-1?this.matches.length-1:t-1]},t.prototype.nextActiveMatch=function(){var t=this.matches.indexOf(this._active);this._active=this.matches[t+1>this.matches.length-1?0:t+1]},t.prototype.selectActive=function(t){this._active=t},t.prototype.isActive=function(t){return this._active===t},t.prototype.selectMatch=function(t,e){return void 0===e&&(e=null),e&&(e.stopPropagation(),e.preventDefault()),this.parent.changeModel(t),this.parent.typeaheadOnSelect.next({item:t}),!1},t.prototype.hightlight=function(t,e){var n,s,a=("object"==typeof t&&this._field?t[this._field]:t).toString(),o=(this.parent.latinize?u.TypeaheadUtils.latinize(a):a).toLowerCase();if("object"==typeof e)for(var i=e.length,r=0;i>r;r+=1)n=o.indexOf(e[r]),s=e[r].length,n>=0&&s>0&&(a=a.substring(0,n)+"<strong>"+a.substring(n,n+s)+"</strong>"+a.substring(n+s),o=o.substring(0,n)+" "+" ".repeat(s)+" "+o.substring(n+s));else e&&(n=o.indexOf(e),s=e.length,n>=0&&s>0&&(a=a.substring(0,n)+"<strong>"+a.substring(n,n+s)+"</strong>"+a.substring(n+s)));return a},t=a([i.Component({selector:"typeahead-container",directives:[r.CORE_DIRECTIVES],template:h[c.Ng2BootstrapConfig.theme],encapsulation:i.ViewEncapsulation.None}),o("design:paramtypes",[i.ElementRef,d])],t)}();e.TypeaheadContainer=f;var m=function(){function t(t,e,n,s){this.cd=t,this.element=e,this.renderer=n,this.loader=s,this.typeaheadLoading=new i.EventEmitter,this.typeaheadNoResults=new i.EventEmitter,this.typeaheadOnSelect=new i.EventEmitter,this.latinize=!0,this.singleWords=!0,this.async=null,this.wordDelimiters=" ",this.phraseDelimiters="'\"",this._matches=[],this.placement="bottom-left"}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._matches},enumerable:!0,configurable:!0}),t.prototype.debounce=function(t,e){var n,s,a,o=e;return function(){s=[].slice.call(arguments,0),a=Date.now(),e=this.container?o:this.waitMs;var i=function(){var o=Date.now()-a;e>o?n=setTimeout(i,e-o):(n=null,t.apply(this,s))};n||(n=setTimeout(i,e))}},t.prototype.processMatches=function(){if(this._matches=[],this.cd.model.toString().length>=this.minLength){var t=(this.latinize?u.TypeaheadUtils.latinize(this.cd.model):this.cd.model).toString().toLowerCase();t=this.singleWords?u.TypeaheadUtils.tokenize(t,this.wordDelimiters,this.phraseDelimiters):t;for(var e=0;e<this.source.length;e++){var n=void 0;if("object"==typeof this.source[e]&&this.source[e][this.field]&&(n=this.latinize?u.TypeaheadUtils.latinize(this.source[e][this.field].toString()):this.source[e][this.field].toString()),"string"==typeof this.source[e]&&(n=this.latinize?u.TypeaheadUtils.latinize(this.source[e].toString()):this.source[e].toString()),n){if(this.testMatch(n.toLowerCase(),t)&&(this._matches.push(this.source[e]),this._matches.length>this.optionsLimit-1))break}else console.log("Invalid match type",typeof this.source[e],this.field)}}},t.prototype.testMatch=function(t,e){var n;if("object"==typeof e){n=e.length;for(var s=0;n>s;s+=1)if(e[s].length>0&&t.indexOf(e[s])<0)return!1;return!0}return t.indexOf(e)>=0},t.prototype.finalizeAsyncCall=function(){if(this.typeaheadLoading.next(!1),this.typeaheadNoResults.next(this.cd.model.toString().length>=this.minLength&&this.matches.length<=0),this.cd.model.toString().length<=0||this._matches.length<=0)return void this.hide();if(this.container&&this._matches.length>0){var t=(this.latinize?u.TypeaheadUtils.latinize(this.cd.model):this.cd.model).toString().toLowerCase();this.container.query=this.singleWords?u.TypeaheadUtils.tokenize(t,this.wordDelimiters,this.phraseDelimiters):t,this.container.matches=this._matches}!this.container&&this._matches.length>0&&this.show(this._matches)},t.prototype.ngOnInit=function(){var t=this;this.optionsLimit=this.optionsLimit||20,this.minLength=this.minLength||1,this.waitMs=this.waitMs||0,null===this.async&&"function"!=typeof this.source&&(this.async=!1),"function"==typeof this.source&&(this.async=!0),this.async===!0&&(this.debouncer=this.debounce(function(){"function"==typeof t.source&&t.source().then(function(e){if(t._matches=[],t.cd.model.toString().length>=t.minLength)for(var n=0;n<e.length&&(t._matches.push(e[n]),!(t._matches.length>t.optionsLimit-1));n++);t.finalizeAsyncCall()}),"object"==typeof t.source&&t.source.length&&(t.processMatches(),t.finalizeAsyncCall())},100))},t.prototype.onChange=function(t){if(this.container){if(27===t.keyCode)return void this.hide();if(38===t.keyCode)return void this.container.prevActiveMatch();if(40===t.keyCode)return void this.container.nextActiveMatch();if(13===t.keyCode)return void this.container.selectActiveMatch()}this.typeaheadLoading.next(!0),this.async===!0&&this.debouncer(),this.async===!1&&(this.processMatches(),this.finalizeAsyncCall())},t.prototype.changeModel=function(t){var e=("object"==typeof t&&this.field?t[this.field]:t).toString();this.cd.viewToModelUpdate(e),s(this.renderer,this.element,"value",e),this.hide()},t.prototype.show=function(t){var e=this,n=new d({placement:this.placement,animation:!1}),s=p.Injector.resolve([p.bind(d).toValue(n)]);this.popup=this.loader.loadNextToLocation(f,this.element,s).then(function(n){n.instance.position(e.element),e.container=n.instance,e.container.parent=e;var s=(e.latinize?u.TypeaheadUtils.latinize(e.cd.model):e.cd.model).toString().toLowerCase();return e.container.query=e.singleWords?u.TypeaheadUtils.tokenize(s,e.wordDelimiters,e.phraseDelimiters):s,e.container.matches=t,e.container.field=e.field,e.element.nativeElement.focus(),n})},t.prototype.hide=function(){var t=this;this.container&&this.popup.then(function(e){return e.dispose(),t.container=null,e})},t=a([i.Directive({selector:"typeahead, [typeahead]",properties:["source:typeahead","appendToBody:typeaheadAppendToBody","editable:typeaheadEditable","focusFirst:typeaheadFocusFirst","inputFormatter:typeaheadInputFormatter","minLength:typeaheadMinLength","selectOnExact:typeaheadSelectOnExact","templateUrl:typeaheadTemplateUrl","popupTemplateUrl:typeaheadPopupTemplateUrl","waitMs:typeaheadWaitMs","optionsLimit:typeaheadOptionsLimit","selectOnBlur:typeaheadSelectOnBlur","focusOnSelect:typeaheadFocusOnSelect","field:typeaheadOptionField","async:typeaheadAsync","latinize:typeaheadLatinize","singleWords:typeaheadSingleWords","wordDelimiters:typeaheadWordDelimiters","phraseDelimiters:typeaheadPhraseDelimiters"],events:["typeaheadLoading","typeaheadNoResults","typeaheadOnSelect"],host:{"(keyup)":"onChange($event)"}}),o("design:paramtypes",[r.NgModel,i.ElementRef,i.Renderer,i.DynamicComponentLoader])],t)}();e.Typeahead=m;var g},function(t,e,n){function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(245)),s(n(246)),s(n(248)),s(n(247)),s(n(250)),s(n(60)),s(n(169)),s(n(170)),s(n(171)),s(n(249)),s(n(167)),s(n(251)),s(n(252)),s(n(253)),s(n(254)),s(n(255)),s(n(256)),s(n(259)),s(n(101)),s(n(168)),s(n(100))}]);
|
||
//# sourceMappingURL=angular2-file-upload-demo.js.map
|