├── .gitignore
├── .jshintrc
├── Gruntfile.js
├── LICENSE
├── README.md
├── angular-notify.css
├── angular-notify.html
├── angular-notify.js
├── bower.json
├── bower_components
└── angular
│ ├── .bower.json
│ ├── README.md
│ ├── angular-csp.css
│ ├── angular.js
│ ├── angular.min.js
│ ├── angular.min.js.gzip
│ ├── angular.min.js.map
│ ├── bower.json
│ ├── index.js
│ └── package.json
├── demo
├── demo.js
├── gh-fork-ribbon.css
├── gmail-template.html
└── index.html
├── dist
├── angular-notify.css
├── angular-notify.js
├── angular-notify.min.css
├── angular-notify.min.js
└── index.js
├── index.js
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 |
10 | pids
11 | logs
12 | results
13 |
14 | npm-debug.log
15 |
16 | node_modules
17 | .DS_Store
18 |
19 | temp
--------------------------------------------------------------------------------
/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "eqeqeq": true,
4 | "immed": true,
5 | "latedef": true,
6 | "newcap": true,
7 | "noarg": true,
8 | "sub": true,
9 | "undef": true,
10 | "boss": true,
11 | "eqnull": true,
12 | "browser": true,
13 | "smarttabs": true,
14 | "globals": {
15 | "jQuery": true,
16 | "angular": true,
17 | "console": true,
18 | "$": true,
19 | "_": true,
20 | "moment": true,
21 | "describe": true,
22 | "beforeEach": true,
23 | "module": true,
24 | "inject": true,
25 | "it": true,
26 | "expect": true
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Gruntfile.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = function (grunt) {
4 |
5 | require('load-grunt-tasks')(grunt);
6 |
7 | grunt.initConfig({
8 | connect: {
9 | main: {
10 | options: {
11 | port: 9001
12 | }
13 | }
14 | },
15 | watch: {
16 | main: {
17 | options: {
18 | livereload: true,
19 | livereloadOnError: false,
20 | spawn: false
21 | },
22 | files: ['angular-notify.css','angular-notify.html','angular-notify.js','dist/**/*','demo/**/*'],
23 | tasks: ['jshint','build']
24 | }
25 | },
26 | jshint: {
27 | main: {
28 | options: {
29 | jshintrc: '.jshintrc'
30 | },
31 | src: 'angular-notify.js'
32 | }
33 | },
34 | jasmine: {
35 | unit: {
36 | src: [''],
37 | options: {
38 | specs: 'test/unit/*.js'
39 | }
40 | }
41 | },
42 | copy: {
43 | main: {
44 | files: [
45 | {src:'angular-notify.css',dest:'dist/'},
46 | {src:'index.js',dest:'dist/'}
47 | ]
48 | }
49 | },
50 | ngtemplates: {
51 | main: {
52 | options: {
53 | module:'cgNotify',
54 | base:''
55 | },
56 | src:'angular-notify.html',
57 | dest: 'temp/templates.js'
58 | }
59 | },
60 | concat: {
61 | main: {
62 | src: ['angular-notify.js', 'temp/templates.js'],
63 | dest: 'dist/angular-notify.js'
64 | }
65 | },
66 | uglify: {
67 | main: {
68 | files: [
69 | {src:'dist/angular-notify.js',dest:'dist/angular-notify.min.js'}
70 | ]
71 | }
72 | },
73 | cssmin: {
74 | main: {
75 | files: {
76 | 'dist/angular-notify.min.css': 'dist/angular-notify.css'
77 | }
78 | }
79 | }
80 | });
81 |
82 | grunt.registerTask('serve', ['jshint','connect', 'watch']);
83 | grunt.registerTask('build',['ngtemplates','concat','uglify','copy','cssmin']);
84 | grunt.registerTask('test',['build','jasmine']);
85 |
86 | };
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2013 Chris Gross
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #angular-notify
2 |
3 | >A minimalistic (and extensible) notification service for Angular.
4 |
5 | [Live Demo](http://cgross.github.io/angular-notify/demo/)
6 |
7 | Supports IE 10, and recent versions of FF and Chrome.
8 |
9 | ## Getting Started
10 |
11 | Install with Bower, npm, or download the the files directly from the dist folder in the repo.
12 |
13 | ```bash
14 | bower install angular-notify --save
15 | npm install @cgross/angular-notify`
16 | ```
17 |
18 | Add `dist/angular-notify.js` and `dist/angular-notify.css` to your index.html.
19 |
20 | Add `cgNotify` as a module dependency for your module.
21 |
22 | ```js
23 | angular.module('your_app', ['cgNotify']);
24 | ```
25 |
26 | Then inject and use the `notify` service.
27 |
28 | ```js
29 | function myController($scope,notify){ // <-- Inject notify
30 |
31 | notify('Your notification message'); // <-- Call notify with your message
32 |
33 | notify({ message:'My message', templateUrl:'my_template.html'} );
34 |
35 | }
36 | ```
37 |
38 | ## Options
39 |
40 |
41 | ### notify(String|Object)
42 |
43 | The `notify` function can either be passed a string or an object. When passing an object, the object parameters can be:
44 |
45 | * `message` - Required. The message to show.
46 | * `duration` - Optional. The duration (in milliseconds) of message. A duration of 0 will prevent messages from closing automatically.
47 | * `templateUrl` - Optional. A custom template for the UI of the message.
48 | * `classes` - Optional. A list of custom CSS classes to apply to the message element.
49 | * `messageTemplate` - Optional. A string containing any valid Angular HTML which will be shown instead of the regular `message` text. The string must contain one root element like all valid Angular HTML templates (so wrap everything in a ``).
50 | * `scope` - Optional. A valid Angular scope object. The scope of the template will be created by calling `$new()` on this scope.
51 | * `position` - Optional. `center`, `left` and `right` are the only acceptable values.
52 | * `container` - Optional. Element that contains each notification. Defaults to `document.body`.
53 |
54 | This function will return an object with a `close()` method and a `message` property.
55 |
56 | ### notify.config(Object)
57 |
58 | Call `config` to set the default configuration options for angular-notify. The following options may be specified in the given object:
59 |
60 | * `duration` - The default duration (in milliseconds) of each message. A duration of 0 will prevent messages from closing automatically.
61 | * `startTop` - The Y pixel value where messages will be shown.
62 | * `verticalSpacing` - The number of pixels that should be reserved between messages vertically.
63 | * `templateUrl` - The default message template.
64 | * `position` - The default position of each message. `center`, `left` and `right` are the supported values.
65 | * `container` - The default element that contains each notification. Defaults to `document.body`.
66 | * `maximumOpen` - The maximum number of total notifications that can be visible at one time. Older notifications will be closed when the maximum is reached.
67 |
68 | ### notify.closeAll()
69 |
70 | Closes all currently open notifications.
71 |
72 | ## Providing Custom Templates
73 |
74 | Angular-notify comes with a very simplistic default notification template. You are encouraged to create your own template and style it appropriate to your application. Templates can also contain more advanced features like buttons or links. The message templates are full Angular partials that have a scope (and a controller if you use `ng-controller="YourCtrl"`).
75 |
76 | The scope for the partial will either be descended from `$rootScope` or the scope specified in the `notify({...})` options. The template scope will be augmented with a `$message` property, a `$classes` property, and a special `$close()` function that you may use to close the notification.
77 |
78 | The `messageTemplate` property is also included on the scope as `$messageTemplate`. To ensure your custom template works with the `messageTemplate` option, your template should hide the normal text if `$messageTemplate` contains a value, and should have an element with the `cg-notify-message-template` class. The element with the `cg-notify-message-template` class will have the compiled template appended to it automatically.
79 |
80 |
81 | ## Release History
82 | * v2.5.1 - 01/05/2017
83 | * Fixed for Angular 1.6 promise method changes.
84 | * Published to NPM.
85 | * v2.5.0 - 04/12/2015
86 | * New `duration` property per notification.
87 | * New `position` property per notification.
88 | * Fix for DOM elements not being removed.
89 | * New `maximumOpen` config option.
90 | * Bump Angular dependency to 1.3.
91 | * v2.0.2 - 09/06/2014
92 | * Default template redesigned with a Bootstrap look and feel. Default template now also includes a close button.
93 | * Default message location is now the top center.
94 | * Default message duration is now 10 seconds.
95 | * Default verticalSpacing is now 15px.
96 | * The `template` option was renamed to `templateUrl`.
97 | * New `messageTemplate` option added.
98 | * New `classes` option added.
99 | * Fixed an issue causing a message with multiple lines of text to be placed into the visible area too soon.
100 | * Fixed #4 (config() not correctly setting startTop)
101 | * v1.1.0 - 5/18/2014 - Added return value allowing for closing and updating of message.
102 | * v1.0.0 - 4/16/2014 - Significant refactoring.
103 | * JQuery is no longer a required dependency.
104 | * [Breaking Change] Configure the default template using `config()` now instead of the `cgNotifyTemplate` value.
105 | * [Breaking Change] The `verticalSpacing` parameter should no longer include the height of the notification element.
106 | * [Breaking Change] The `scope` options must now be a valid Angular scope.
107 | * [Breaking Change] The duration of the notifications is now based on a `duration` config property and does not rely on the delay attribute of the CSS transition.
108 | * Messages can now word wrap if you use a `max-width` css value.
109 | * The scope for templates now includes a `$close()` function.
110 | * New `notify.closeAll()` method.
111 | * v0.2.0 - Adding custom templates ability, fixed FF bug.
112 | * v0.1.0 - Initial release.
113 |
--------------------------------------------------------------------------------
/angular-notify.css:
--------------------------------------------------------------------------------
1 | .cg-notify-message {
2 | position:fixed;
3 | top:0px;
4 | z-index: 9999;
5 | max-width:400px;
6 | text-align: center;
7 |
8 | background-color: #d9edf7;
9 | color: #31708f;
10 | padding: 15px;
11 | border: 1px solid #bce8f1;
12 | border-radius: 4px;
13 |
14 | -webkit-transition: top 0.5s ease-out,opacity 0.2s ease-out;
15 | -moz-transition: top 0.5s ease-out,opacity 0.2s ease-out;
16 | -o-transition: top 0.5s ease-out,opacity 0.2s ease-out;
17 | transition: top 0.5s ease-out,opacity 0.2s ease-out;
18 |
19 | visibility:hidden;
20 |
21 | -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
22 | box-shadow: 0 6px 12px rgba(0,0,0,.175);
23 | }
24 |
25 | .cg-notify-message-center {
26 | left:50%;
27 | }
28 |
29 | .cg-notify-message-left {
30 | left:15px;
31 | }
32 |
33 | .cg-notify-message-right {
34 | right:15px;
35 | }
36 |
37 | .cg-notify-message a {
38 | font-weight:bold;
39 | color:inherit;
40 | }
41 |
42 | .cg-notify-message a:hover {
43 | color:inherit;
44 | }
45 |
46 | .cg-notify-close {
47 | -webkit-appearance: none;
48 | padding: 0;
49 | cursor: pointer;
50 | background: 0 0;
51 | border: 0;
52 | font-size: 21px;
53 | font-weight: 700;
54 | line-height: 1;
55 | color: #000;
56 | text-shadow: 0 1px 0 #fff;
57 | filter: alpha(opacity=20);
58 | opacity: .2;
59 |
60 | position: absolute;
61 | top: 0px;
62 | right: 3px;
63 | line-height: 15px;
64 | }
65 |
66 | .cg-notify-close:hover, .cg-notify-close:focus {
67 | color: #000;
68 | text-decoration: none;
69 | cursor: pointer;
70 | filter: alpha(opacity=50);
71 | opacity: .5;
72 | }
73 |
74 | .cg-notify-sr-only {
75 | position: absolute;
76 | width: 1px;
77 | height: 1px;
78 | padding: 0;
79 | margin: -1px;
80 | overflow: hidden;
81 | clip: rect(0,0,0,0);
82 | border: 0;
83 | }
--------------------------------------------------------------------------------
/angular-notify.html:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 | {{$message}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
19 |
20 |
--------------------------------------------------------------------------------
/angular-notify.js:
--------------------------------------------------------------------------------
1 | angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','$templateCache','$rootScope',
2 | function($timeout,$http,$compile,$templateCache,$rootScope){
3 |
4 | var startTop = 10;
5 | var verticalSpacing = 15;
6 | var defaultDuration = 10000;
7 | var defaultTemplateUrl = 'angular-notify.html';
8 | var position = 'center';
9 | var container = document.body;
10 | var maximumOpen = 0;
11 |
12 | var messageElements = [];
13 | var openNotificationsScope = [];
14 |
15 | var notify = function(args){
16 |
17 | if (typeof args !== 'object'){
18 | args = {message:args};
19 | }
20 |
21 | args.duration = args.duration ? args.duration : defaultDuration;
22 | args.templateUrl = args.templateUrl ? args.templateUrl : defaultTemplateUrl;
23 | args.container = args.container ? args.container : container;
24 | args.classes = args.classes ? args.classes : '';
25 |
26 | var scope = args.scope ? args.scope.$new() : $rootScope.$new();
27 | scope.$position = args.position ? args.position : position;
28 | scope.$message = args.message;
29 | scope.$classes = args.classes;
30 | scope.$messageTemplate = args.messageTemplate;
31 |
32 | if (maximumOpen > 0) {
33 | var numToClose = (openNotificationsScope.length + 1) - maximumOpen;
34 | for (var i = 0; i < numToClose; i++) {
35 | openNotificationsScope[i].$close();
36 | }
37 | }
38 |
39 | $http.get(args.templateUrl,{cache: $templateCache}).then(function(template){
40 |
41 | var templateElement = $compile(template.data)(scope);
42 | templateElement.bind('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function(e){
43 | if (e.propertyName === 'opacity' || e.currentTarget.style.opacity === 0 ||
44 | (e.originalEvent && e.originalEvent.propertyName === 'opacity')){
45 |
46 | templateElement.remove();
47 | messageElements.splice(messageElements.indexOf(templateElement),1);
48 | openNotificationsScope.splice(openNotificationsScope.indexOf(scope),1);
49 | layoutMessages();
50 | }
51 | });
52 |
53 | if (args.messageTemplate){
54 | var messageTemplateElement;
55 | for (var i = 0; i < templateElement.children().length; i ++){
56 | if (angular.element(templateElement.children()[i]).hasClass('cg-notify-message-template')){
57 | messageTemplateElement = angular.element(templateElement.children()[i]);
58 | break;
59 | }
60 | }
61 | if (messageTemplateElement){
62 | messageTemplateElement.append($compile(args.messageTemplate)(scope));
63 | } else {
64 | throw new Error('cgNotify could not find the .cg-notify-message-template element in '+args.templateUrl+'.');
65 | }
66 | }
67 |
68 | angular.element(args.container).append(templateElement);
69 | messageElements.push(templateElement);
70 |
71 | if (scope.$position === 'center'){
72 | $timeout(function(){
73 | scope.$centerMargin = '-' + (templateElement[0].offsetWidth /2) + 'px';
74 | });
75 | }
76 |
77 | scope.$close = function(){
78 | templateElement.css('opacity',0).attr('data-closing','true');
79 | layoutMessages();
80 | };
81 |
82 | var layoutMessages = function(){
83 | var j = 0;
84 | var currentY = startTop;
85 | for(var i = messageElements.length - 1; i >= 0; i --){
86 | var shadowHeight = 10;
87 | var element = messageElements[i];
88 | var height = element[0].offsetHeight;
89 | var top = currentY + height + shadowHeight;
90 | if (element.attr('data-closing')){
91 | top += 20;
92 | } else {
93 | currentY += height + verticalSpacing;
94 | }
95 | element.css('top',top + 'px').css('margin-top','-' + (height+shadowHeight) + 'px').css('visibility','visible');
96 | j ++;
97 | }
98 | };
99 |
100 | $timeout(function(){
101 | layoutMessages();
102 | });
103 |
104 | if (args.duration > 0){
105 | $timeout(function(){
106 | scope.$close();
107 | },args.duration);
108 | }
109 |
110 | }, function(data) {
111 | throw new Error('Template specified for cgNotify ('+args.templateUrl+') could not be loaded. ' + data);
112 | });
113 |
114 | var retVal = {};
115 |
116 | retVal.close = function(){
117 | if (scope.$close){
118 | scope.$close();
119 | }
120 | };
121 |
122 | Object.defineProperty(retVal,'message',{
123 | get: function(){
124 | return scope.$message;
125 | },
126 | set: function(val){
127 | scope.$message = val;
128 | }
129 | });
130 |
131 | openNotificationsScope.push(scope);
132 |
133 | return retVal;
134 |
135 | };
136 |
137 | notify.config = function(args){
138 | startTop = !angular.isUndefined(args.startTop) ? args.startTop : startTop;
139 | verticalSpacing = !angular.isUndefined(args.verticalSpacing) ? args.verticalSpacing : verticalSpacing;
140 | defaultDuration = !angular.isUndefined(args.duration) ? args.duration : defaultDuration;
141 | defaultTemplateUrl = args.templateUrl ? args.templateUrl : defaultTemplateUrl;
142 | position = !angular.isUndefined(args.position) ? args.position : position;
143 | container = args.container ? args.container : container;
144 | maximumOpen = args.maximumOpen ? args.maximumOpen : maximumOpen;
145 | };
146 |
147 | notify.closeAll = function(){
148 | for(var i = messageElements.length - 1; i >= 0; i --){
149 | var element = messageElements[i];
150 | element.css('opacity',0);
151 | }
152 | };
153 |
154 | return notify;
155 | }
156 | ]);
157 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular-notify",
3 | "main": [
4 | "dist/angular-notify.js",
5 | "dist/angular-notify.css"
6 | ],
7 | "version": "2.5.1",
8 | "homepage": "https://github.com/cgross/angular-notify",
9 | "authors": [
10 | "Chris Gross "
11 | ],
12 | "description": "A minimalistic notification service for Angular.",
13 | "keywords": [
14 | "angular",
15 | "notify",
16 | "notifications"
17 | ],
18 | "license": "MIT",
19 | "ignore": [
20 | "**/.*",
21 | "node_modules",
22 | "bower_components",
23 | "test",
24 | "tests",
25 | "temp",
26 | "./angular-notify.css",
27 | "./angular-notify.html",
28 | "./angular-notify.js",
29 | "Gruntfile.js",
30 | "package.json",
31 | "demo"
32 | ],
33 | "dependencies": {
34 | "angular": ">=1.3"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/bower_components/angular/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular",
3 | "version": "1.3.15",
4 | "main": "./angular.js",
5 | "ignore": [],
6 | "dependencies": {},
7 | "homepage": "https://github.com/angular/bower-angular",
8 | "_release": "1.3.15",
9 | "_resolution": {
10 | "type": "version",
11 | "tag": "v1.3.15",
12 | "commit": "ba7abcfa409ba852146e6ba206693cf7bac3e359"
13 | },
14 | "_source": "git://github.com/angular/bower-angular.git",
15 | "_target": "~1.3",
16 | "_originalSource": "angular"
17 | }
--------------------------------------------------------------------------------
/bower_components/angular/README.md:
--------------------------------------------------------------------------------
1 | # packaged angular
2 |
3 | This repo is for distribution on `npm` and `bower`. The source for this module is in the
4 | [main AngularJS repo](https://github.com/angular/angular.js).
5 | Please file issues and pull requests against that repo.
6 |
7 | ## Install
8 |
9 | You can install this package either with `npm` or with `bower`.
10 |
11 | ### npm
12 |
13 | ```shell
14 | npm install angular
15 | ```
16 |
17 | Then add a `
21 | ```
22 |
23 | Or `require('angular')` from your code.
24 |
25 | ### bower
26 |
27 | ```shell
28 | bower install angular
29 | ```
30 |
31 | Then add a `
35 | ```
36 |
37 | ## Documentation
38 |
39 | Documentation is available on the
40 | [AngularJS docs site](http://docs.angularjs.org/).
41 |
42 | ## License
43 |
44 | The MIT License
45 |
46 | Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
47 |
48 | Permission is hereby granted, free of charge, to any person obtaining a copy
49 | of this software and associated documentation files (the "Software"), to deal
50 | in the Software without restriction, including without limitation the rights
51 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
52 | copies of the Software, and to permit persons to whom the Software is
53 | furnished to do so, subject to the following conditions:
54 |
55 | The above copyright notice and this permission notice shall be included in
56 | all copies or substantial portions of the Software.
57 |
58 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
59 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
61 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
62 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
63 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
64 | THE SOFTWARE.
65 |
--------------------------------------------------------------------------------
/bower_components/angular/angular-csp.css:
--------------------------------------------------------------------------------
1 | /* Include this file in your html if you are using the CSP mode. */
2 |
3 | @charset "UTF-8";
4 |
5 | [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
6 | .ng-cloak, .x-ng-cloak,
7 | .ng-hide:not(.ng-hide-animate) {
8 | display: none !important;
9 | }
10 |
11 | ng\:form {
12 | display: block;
13 | }
14 |
--------------------------------------------------------------------------------
/bower_components/angular/angular.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | AngularJS v1.3.15
3 | (c) 2010-2014 Google, Inc. http://angularjs.org
4 | License: MIT
5 | */
6 | (function(Q,W,t){'use strict';function R(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.15/"+(b?b+"/":"")+a;for(a=1;a").append(b).html();try{return b[0].nodeType===pb?z(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+z(b)})}catch(d){return z(c)}}function rc(b){try{return decodeURIComponent(b)}catch(a){}}
15 | function sc(b){var a={},c,d;r((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=rc(c[0]),y(d)&&(b=y(c[1])?rc(c[1]):!0,tc.call(a,d)?H(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Pb(b){var a=[];r(b,function(b,d){H(b)?r(b,function(b){a.push(Ea(d,!0)+(!0===b?"":"="+Ea(b,!0)))}):a.push(Ea(d,!0)+(!0===b?"":"="+Ea(b,!0)))});return a.length?a.join("&"):""}function qb(b){return Ea(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ea(b,a){return encodeURIComponent(b).replace(/%40/gi,
16 | "@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Id(b,a){var c,d,e=rb.length;b=A(b);for(d=0;d/,">"));}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);c.debugInfoEnabled&&a.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);a.unshift("ng");d=ab(a,c.strictDi);d.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",
18 | d);c(b)(a)})}]);return d},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;Q&&e.test(Q.name)&&(c.debugInfoEnabled=!0,Q.name=Q.name.replace(e,""));if(Q&&!f.test(Q.name))return d();Q.name=Q.name.replace(f,"");ca.resumeBootstrap=function(b){r(b,function(b){a.push(b)});return d()};G(ca.resumeDeferredBootstrap)&&ca.resumeDeferredBootstrap()}function Kd(){Q.name="NG_ENABLE_DEBUG_INFO!"+Q.name;Q.location.reload()}function Ld(b){b=ca.element(b).injector();if(!b)throw Ja("test");return b.get("$$testability")}
19 | function vc(b,a){a=a||"_";return b.replace(Md,function(b,d){return(d?a:"")+b.toLowerCase()})}function Nd(){var b;wc||((ta=Q.jQuery)&&ta.fn.on?(A=ta,w(ta.fn,{scope:Ka.scope,isolateScope:Ka.isolateScope,controller:Ka.controller,injector:Ka.injector,inheritedData:Ka.inheritedData}),b=ta.cleanData,ta.cleanData=function(a){var c;if(Qb)Qb=!1;else for(var d=0,e;null!=(e=a[d]);d++)(c=ta._data(e,"events"))&&c.$destroy&&ta(e).triggerHandler("$destroy");b(a)}):A=T,ca.element=A,wc=!0)}function Rb(b,a,c){if(!b)throw Ja("areq",
20 | a||"?",c||"required");return b}function sb(b,a,c){c&&H(b)&&(b=b[b.length-1]);Rb(G(b),a,"not a function, got "+(b&&"object"===typeof b?b.constructor.name||"Object":typeof b));return b}function La(b,a){if("hasOwnProperty"===b)throw Ja("badname",a);}function xc(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,g=0;g$2>")+d[2];for(d=d[0];d--;)c=c.lastChild;f=Ya(f,c.childNodes);c=e.firstChild;c.textContent=""}else f.push(a.createTextNode(b));e.textContent="";e.innerHTML="";r(f,function(a){e.appendChild(a)});
27 | return e}function T(b){if(b instanceof T)return b;var a;C(b)&&(b=N(b),a=!0);if(!(this instanceof T)){if(a&&"<"!=b.charAt(0))throw Tb("nosel");return new T(b)}if(a){a=W;var c;b=(c=gf.exec(b))?[a.createElement(c[1])]:(c=Hc(b,a))?c.childNodes:[]}Ic(this,b)}function Ub(b){return b.cloneNode(!0)}function wb(b,a){a||xb(b);if(b.querySelectorAll)for(var c=b.querySelectorAll("*"),d=0,e=c.length;d 4096 bytes)!"));else{if(p.cookie!==y)for(y=p.cookie,d=y.split("; "),fa={},f=0;fk&&this.remove(q.key),b},get:function(a){if(k").parent()[0])});var f=S(a,b,a,c,d,e);D.$$addScopeClass(a);
50 | var g=null;return function(b,c,d){Rb(b,"scope");d=d||{};var e=d.parentBoundTranscludeFn,h=d.transcludeControllers;d=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==va(d)&&d.toString().match(/SVG/)?"svg":"html":"html");d="html"!==g?A(Xb(g,A("